|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-07 04:53 UTC] ch at westend dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 02:00:01 2025 UTC |
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-