Bug #1385: apache core dumps when calling ereg_replace()
| From: | ch at westend dot com | Date: | Fri, 07 May 1999 08:27:52 +0000 |
| Subject: | Bug #1385: apache core dumps when calling ereg_replace() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5401@lists.php.net to get a copy of this message | ||
From: ch@westend.com
Operating system: SunOS 5.5.1, SPARCstation-10
PHP version: 3.0.6
PHP Bug Type: Reproduceable crash
Bug description: apache core dumps when calling ereg_replace()
Everything (Apache 1.3.4 + PHP 3.0.6 + JavaScript) works fine.
But whenever I call the ereg_replace function, apache core dumps:
(gdb) bt
#0 0xeeac3624 in _php3_eregreplace (ht=0x102fd8, return_value=0x0,
list=0xffffffff, plist=0xffffffff, icase=0) at functions/reg.c:419
Seems that the internal function returns a NULL pointer instead of a
pointer of a string.
The script is from the doku. Here it is:
<?php $a="abc123";
$b = ereg_replace("abc", "ABC", $a);
echo $a, $b?>
(some other regular expression functions works btw.)
read you,
-christian-
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net