summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-11 12:31:36 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-11 12:36:35 +0100
commit4c088c5da7fb96380a4cfc420d272075b40b6141 (patch)
tree41eb01867b511449353f5aeb4b006cbe98df37c7 /Zend/zend_API.h
parent4224b704b1e0262659262529e57ef97790712e42 (diff)
downloadphp-git-4c088c5da7fb96380a4cfc420d272075b40b6141.tar.gz
Handle warnings during sccp function evaluation
Some upcoming changes like https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg will make it somewhat inconvenient to determine whether a given function invocation will generate a diagnostic. Rather than trying to exclude this in advance, call the function with diagnostics suppressed, and check whether anything was thrown. This adds a new EG flag that is kept specific to the SCCP use-case. This does not use the error_cb hook as it is a (non-TLS) global, and doesn't fully suppress error handling besides. Test this by removing the in advance checks for implode and array_flip.
Diffstat (limited to 'Zend/zend_API.h')
0 files changed, 0 insertions, 0 deletions