]> git.pld-linux.org Git - packages/php.git/blob - php-5.3.7-bug-54312.patch
use /usr/sbin/php-fpm as other branches
[packages/php.git] / php-5.3.7-bug-54312.patch
1 --- PHP_5_3/ext/soap/soap.c     2011/03/19 17:14:28     309432
2 +++ PHP_5_3/ext/soap/soap.c     2011/03/19 17:36:01     309433
3 @@ -1213,9 +1213,11 @@
4                 zval **tmp;
5  
6                 if (zend_hash_find(ht, "soap_version", sizeof("soap_version"), (void**)&tmp) == SUCCESS) {
7 -                       if (Z_TYPE_PP(tmp) == IS_LONG ||
8 -                           (Z_LVAL_PP(tmp) == SOAP_1_1 && Z_LVAL_PP(tmp) == SOAP_1_2)) {
9 +                       if (Z_TYPE_PP(tmp) == IS_LONG &&
10 +                           (Z_LVAL_PP(tmp) == SOAP_1_1 || Z_LVAL_PP(tmp) == SOAP_1_2)) {
11                                 version = Z_LVAL_PP(tmp);
12 +                       } else {
13 +                               php_error_docref(NULL TSRMLS_CC, E_ERROR, "'soap_version' option must be SOAP_1_1 or SOAP_1_2");
14                         }
15                 }
16  
This page took 0.026184 seconds and 3 git commands to generate.