diff --git a/appsec/tests/extension/push_params_block_02.phpt b/appsec/tests/extension/push_params_block_02.phpt index 322dabd862..a1587486ba 100644 --- a/appsec/tests/extension/push_params_block_02.phpt +++ b/appsec/tests/extension/push_params_block_02.phpt @@ -33,13 +33,12 @@ class SomeIntegration { $integration = new SomeIntegration(); $integration->init(); -echo PHP_EOL; var_dump(ltrim(" Calling wrapped function")); var_dump("THIS SHOULD NOT GET IN THE OUTPUT"); ?> --EXPECTHEADERS-- Status: 404 Not Found -Content-type: text/html; charset=UTF-8 +Content-type: text/html;charset=UTF-8 --EXPECTF-- You've been blocked

Sorry, you cannot access this page. Please contact the customer service team.

\ No newline at end of file diff --git a/zend_abstract_interface/symbols/call.c b/zend_abstract_interface/symbols/call.c index 07c90843f5..c222473caf 100644 --- a/zend_abstract_interface/symbols/call.c +++ b/zend_abstract_interface/symbols/call.c @@ -103,6 +103,9 @@ static inline int zai_symbol_try_call(zend_fcall_info *fci, zend_fcall_info_cach ret = zend_call_function(fci, fcc); } zend_catch { ret = 2; + if (PG(last_error_message) && strstr(ZSTR_VAL(PG(last_error_message)), "Datadog blocked the request")) { + zend_bailout(); + } } zend_end_try(); return ret; }