Re: [PHP4BETA] Program received signal SIGSEGV, *walkbuf = '\0';
| From: | Zeev Suraski | Date: | Wed, 12 May 1999 19:05:25 +0000 |
| Subject: | Re: [PHP4BETA] Program received signal SIGSEGV, *walkbuf = '\0'; | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-805@lists.php.net to get a copy of this message | ||
Does it use arrays?
Zeev
At 18:47 12/05/99 , Sascha Schumann wrote:
Even without using the regex cache, _php3_regreplace does not work anymore. <? $a = "abc123"; echo ereg_replace("123", "", $a); Program received signal SIGSEGV, Segmentation fault. _php3_regreplace (pattern=0x1200846b0 "", replace=0x1200846b0 "",-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Betastring=0x1201c5c98 "abc123", icase=0, extended=538731291) at reg.c:406 406 *walkbuf = '\0';(gdb) bt #0 _php3_regreplace (pattern=0x1200846b0 "", replace=0x1200846b0 "",string=0x1201c5c98 "abc123", icase=0, extended=538731291) at reg.c:406#1 0x12005c420 in _php3_eregreplace (ht=538731288, return_value=0x11ffff0a0,list=0xc0000000, plist=0x1201c5c98, icase=0) at reg.c:492#2 0x12005c598 in php3_eregreplace (ht=538731288, return_value=0x1201c5ca0,list=0xc0000000, plist=0x1201c5c98) at reg.c:508#3 0x12003fbb4 in execute (op_array=0x1201c3b18) at zend_execute.c:1337 #4 0x1200129d4 in php_execute_script (primary_file=0x11ffff7d0) at main.c:1177 #5 0x12001a0d0 in main (argc=2, argv=0x11ffff8a8) at cgi_main.c:432 #6 0x200009053b0 in __libc_start_main () Sorry, I currently don't have the time to look into this myself. (To disable the cache stuff, #if 0/#endif the two defines around line 102.) --Regards,Sascha Schumann Consultant-- PHP 4 Beta