com php-src: Check variable type before its usage as IS_ARRAY.: ext/soap/soap.c

From: Date: Mon, 02 Mar 2015 09:27:36 +0000
Subject: com php-src: Check variable type before its usage as IS_ARRAY.: ext/soap/soap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85144@lists.php.net to get a copy of this message
Commit: d5248f67b58ac3107fec82c5b937fc3f4c89784a Author: Dmitry Stogov <dmitry@zend.com> Mon, 2 Mar 2015 12:27:36 +0300 Parents: 8584cc010aaf5dfa9e314d3e8f2eb14aee78225b Branches: PHP-5.4 PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d5248f67b58ac3107fec82c5b937fc3f4c89784a Log: Check variable type before its usage as IS_ARRAY. Changed paths: M ext/soap/soap.c Diff: diff --git a/ext/soap/soap.c b/ext/soap/soap.c index eaa57d9..8790605 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2884,7 +2884,8 @@ PHP_METHOD(SoapClient, __call) } /* Add default headers */ - if (zend_hash_find(Z_OBJPROP_P(this_ptr), "__default_headers", sizeof("__default_headers"), (void **) &tmp)==SUCCESS) { + if (zend_hash_find(Z_OBJPROP_P(this_ptr), "__default_headers", sizeof("__default_headers"), (void **) &tmp)==SUCCESS && + Z_TYPE_PP(tmp) == IS_ARRAY) { HashTable *default_headers = Z_ARRVAL_P(*tmp); if (soap_headers) { if (!free_soap_headers) {

« previous php.cvs (#85144) next »