pajoye Sat Jul 29 23:03:37 2006 UTC Modified files: /php-src/ext/openssl openssl.c Log: - make the test more obvious and add an explanation http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/openssl.c?r1=1.109&r2=1.110&diff_format=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.109 php-src/ext/openssl/openssl.c:1.110 --- php-src/ext/openssl/openssl.c:1.109 Sat Jul 29 22:39:51 2006 +++ php-src/ext/openssl/openssl.c Sat Jul 29 23:03:37 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.109 2006/07/29 22:39:51 pajoye Exp $ */ +/* $Id: openssl.c,v 1.110 2006/07/29 23:03:37 pajoye Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1824,8 +1824,10 @@ return NULL; } else { /* force it to be a string and check if it refers to a file */ - if (Z_TYPE_PP(val) == IS_LONG || Z_TYPE_PP(val) == IS_BOOL - || Z_TYPE_PP(val) == IS_ARRAY) { + /* passing non string values leaks, object uses toString, it returns NULL + * bug38255.phpt + */ + if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { return NULL; } convert_to_string_ex(val);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php