summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-10 15:14:04 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-10 15:14:04 +0200
commit5a076e670a13decf76524e6f0c13abfce5532021 (patch)
treec5b713ea38e08e85853c3c3c9b52d89c06bc4dd6 /sapi/cli/php_cli_server.c
parent4463acb9513dfb62206760c49b3da1fe4d92f40a (diff)
downloadphp-git-5a076e670a13decf76524e6f0c13abfce5532021.tar.gz
Return error_zval form get_property_ptr_ptr on exception
This goes in the reverse direction of 4463acb9513dfb62206760c49b3da1fe4d92f40a. After looking around a bit, it seems that we already check for Z_ISERROR_P() on the get_property_ptr_ptr return value in other places. So do this in zend_fetch_property_address() as well, and also make sure that EG(error_zval) is indeed returned on exception in get_property_ptr_ptr. In particular, this fixes the duplicate exceptions that we used to get because first get_property_ptr_ptr threw one and then read_property throws the same exception again.
Diffstat (limited to 'sapi/cli/php_cli_server.c')
0 files changed, 0 insertions, 0 deletions