PHP 4.0 Bug #7902 Updated: anyfunction("$very_long_string") -> SEGFAULT
| From: | sniper@php.net | Date: | Thu, 23 Nov 2000 12:57:53 +0000 |
| Subject: | PHP 4.0 Bug #7902 Updated: anyfunction("$very_long_string") -> SEGFAULT | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39000@lists.php.net to get a copy of this message | ||
ID: 7902
Updated by: sniper
Reported By: nicoletti@nns.ch
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 07:04:23] nicoletti@nns.ch
Script:
<?
$t = str_repeat('test', 10240);
trim("$t");
Result:
Segmentation fault
Bt:
#0 0x80d19bc in _efree (ptr=0x81a42c4,
__zend_filename=0x813e3cb "zend_execute_API.c", __zend_lineno=261,
__zend_orig_filename=0x813e727 "zend_variables.c", __zend_orig_lineno=62)
at zend_alloc.c:232
#1 0x80e3f1f in _zval_dtor (zvalue=0x8170694,
__zend_filename=0x813e3cb "zend_execute_API.c", __zend_lineno=261)
at zend_variables.c:62
#2 0x80d936d in _zval_ptr_dtor (zval_ptr=0x8194d6c,
__zend_filename=0x815244d "zend_execute.h", __zend_lineno=114)
at zend_execute_API.c:261
#3 0x812e524 in zend_ptr_stack_clear_multiple () at zend_execute.h:114
#4 0x812b436 in execute (op_array=0x819524c) at ./zend_execute.c:1593
#5 0x80e563b in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#6 0x805d10c in php_execute_script (primary_file=0xbffffd70) at main.c:1220
#7 0x805adb9 in main (argc=2, argv=0xbffffdb4) at cgi_main.c:745
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7902