helly Thu Jan 1 22:27:33 2004 EDT Modified files: /php-src/ext/standard var_unserializer.c Log: Bugfix #26762 unserialize() produces lowercase classnames Index: php-src/ext/standard/var_unserializer.c diff -u php-src/ext/standard/var_unserializer.c:1.30 php-src/ext/standard/var_unserializer.c:1.31 --- php-src/ext/standard/var_unserializer.c:1.30 Wed Sep 3 12:24:24 2003 +++ php-src/ext/standard/var_unserializer.c Thu Jan 1 22:27:32 2004 @@ -1,5 +1,5 @@ -/* Generated by re2c 0.5 on Wed Sep 3 19:23:11 2003 */ -#line 1 "/usr/src/web/php/php5/ext/standard/var_unserializer.re" +/* Generated by re2c 0.5 on Fri Jan 2 04:02:19 2004 */ +#line 1 "/usr/src/php5/ext/standard/var_unserializer.re" /* +----------------------------------------------------------------------+ | PHP Version 4 | @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: var_unserializer.c,v 1.30 2003/09/03 16:24:24 sniper Exp $ */ +/* $Id: var_unserializer.c,v 1.31 2004/01/02 03:27:32 helly Exp $ */ #include "php.h" #include "ext/standard/php_var.h" @@ -341,7 +341,7 @@ yych = *(YYMARKER = ++YYCURSOR); if(yych == ':') goto yy74; yy4: -#line 446 +#line 440 { return 0; } yy5: yych = *++YYCURSOR; if(yych == ';') goto yy72; @@ -376,7 +376,7 @@ goto yy4; yy13: yych = *++YYCURSOR; yy14: -#line 440 +#line 434 { /* this is the case where we have less data than planned */ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unexpected end of serialized data"); @@ -422,12 +422,6 @@ class_name = estrndup(YYCURSOR, len); YYCURSOR += len; - while (len-- > 0) { - if (class_name[len] >= 'A' && class_name[len] <= 'Z') { - class_name[len] = class_name[len] - 'A' + 'a'; - } - } - do { /* Try to find class directly */ if (zend_lookup_class(class_name, len2, &pce TSRMLS_CC) == SUCCESS) { @@ -803,7 +797,7 @@ return 1; } } -#line 448 +#line 442 return 0;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php