]> git.pld-linux.org Git - packages/php.git/blame - php-5.3.7-bug-54312.patch
move php.1 manual to -program (link to actual php-cli)
[packages/php.git] / php-5.3.7-bug-54312.patch
CommitLineData
fb98beff
ER
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.086859 seconds and 4 git commands to generate.