]> granicus.if.org Git - php/commit
Fixed bug #6740.
authorAndrei Zmievski <andrei@php.net>
Thu, 14 Sep 2000 15:44:36 +0000 (15:44 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 14 Sep 2000 15:44:36 +0000 (15:44 +0000)
commitb111463f4ca3678718cafb8cdbf3342ed54c05f5
tree310bba58390e5fea4567f6ed58ccafd3f64bd053
parent28690c3d16270743c53d9ca8b7965df0daf85842
Fixed bug #6740.
I happen to think that this is php_addslashes() problem, not PCRE's.
When 0 is passed for the length of the string to php_addslashes() it
assumes that we want to process the whole string and happily runs
strlen() on it. That is bad. It should respect the length and return
an empty string if it's 0.
ext/pcre/php_pcre.c