zend_API.c problem
| From: | Ilia Alshanetsky | Date: | Thu, 27 Nov 2003 22:00:18 +0000 |
| Subject: | zend_API.c problem | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2014@lists.php.net to get a copy of this message | ||
It would see that this patch accidentally (?) removed a needed portion in
zend_API.c
@@ -1622,13 +1622,11 @@
if (syntax_only)
return 1;
- lcname = zend_str_tolower_dup(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj));
Without lcname there are 2 strcmp() or an undefined pointer and 1 attempt to
free the never allocated lcname. Should this line be added back or was a
reason for it's removal? In the case of the latter the code needs to be
changed to no longer use lcname.
Ilia