php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31278 Segmentation Fault when string is echoed
Submitted: 2004-12-24 02:39 UTC Modified: 2004-12-24 02:44 UTC
From: developer at ckiweb dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.10 OS: Gentoo
Private report: No CVE-ID: None
 [2004-12-24 02:39 UTC] developer at ckiweb dot com
Description:
------------
I was trying to debug a problem in the DB_DataObject class in PEAR, when I got a segmentation fault.  It occurs everytime when I try to echo a string greater than 10 characters.

Reproduce code:
---------------
In the Generator.php file (in the DB_DataObject-1.7.2 class in PEAR) on line 126 (right after $t->_createTableList();), place a line similar to this:

echo 'aoeuidhtns'."\n";

The amount of characters has to be 10 or greater.

Expected result:
----------------
I would expect the line to appear and the program to keep parsing.

Actual result:
--------------
The line is echod and then I get a Segmentation Fault

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-24 02:41 UTC] developer at ckiweb dot com
The is something else that has to be in the code.  After the echo line, place print_r($t).
 [2004-12-24 02:44 UTC] alan_k@php.net
it's a known bug of 4.3.10 which has been fixed now
 [2004-12-24 02:44 UTC] alan_k@php.net
OK - official line is that duplicate bugs are bogus :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Aug 14 22:01:28 2024 UTC