php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7902 anyfunction("$very_long_string") -> SEGFAULT
Submitted: 2000-11-21 07:04 UTC Modified: 2000-11-23 07:57 UTC
From: nicoletti at nns dot ch Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (21/11/2000) OS: GNU Linux (Debian slink)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicoletti at nns dot ch
New email:
PHP Version: OS:

 

 [2000-11-21 07:04 UTC] nicoletti at nns dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 07:46 UTC] stas@php.net
Judging from the date, you probably were hit by unrelated
bug that was in the CVS that time. Please check latest
version and reopen if it still crashes - it does not for me
on Linux.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 21:00:01 2026 UTC