pajoye Sat Jan 28 00:13:13 2006 UTC Modified files: /php-src/ext/standard string.c Log: - #36185 str_rot13(NULL) crash http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.516&r2=1.517&diff_format=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.516 php-src/ext/standard/string.c:1.517 --- php-src/ext/standard/string.c:1.516 Wed Jan 25 00:02:23 2006 +++ php-src/ext/standard/string.c Sat Jan 28 00:13:13 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.516 2006/01/25 00:02:23 andrei Exp $ */ +/* $Id: string.c,v 1.517 2006/01/28 00:13:13 pajoye Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -6324,6 +6324,8 @@ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg)) { WRONG_PARAM_COUNT; } + + convert_to_string_ex(arg); RETVAL_ZVAL(*arg, 1, 0); php_strtr(Z_STRVAL_P(return_value), Z_STRLEN_P(return_value), rot13_from, rot13_to, 52);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php