php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16080 Segmentation fault
Submitted: 2002-03-14 14:38 UTC Modified: 2002-08-19 11:37 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: th at hahn-software dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.0-dev OS: Linux
Private report: No CVE-ID: None
 [2002-03-14 14:38 UTC] th at hahn-software dot de
following php code give me a segmention fault:

<?php

  function th($page)
  {
    $page="more as 5 Characters. Stack Problem?";
    return $page;
  }

ob_start("th");
  echo "12345";
ob_end_flush();
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-14 14:41 UTC] sniper@php.net
Reproduced with latest CVS.

 [2002-03-14 14:42 UTC] sniper@php.net

 [2002-03-14 21:12 UTC] yohgaki@php.net
The same problem is reported, but I'll keep this one for now :)
Currently, deleting or assining buffer variable ($page in this case) causes segfault.

Workaround is

<?php

  function th($page)
  {
    $new_page="more as 5 Characters. Stack Problem?";
    return $new_page;
  }

ob_start("th");
  echo "12345";
ob_end_flush();
?>

 [2002-08-02 00:53 UTC] patrik at corifeus dot com
I was experiencing the same problem, I saw it was a memory error, so I worked around the bug:

<?php

  function th($page)
  {
    $new_page="more as 5 Characters. Stack Problem?";
    $page = &$new_page;
    return $page;
  }

ob_start("th");
  echo "12345";
ob_end_flush();
?>
 [2002-08-02 05:04 UTC] jan@php.net
could not reproduce this on FreeBSD 4.4 Release.
 [2002-08-02 05:38 UTC] sniper@php.net
I can't reproduce this neither with latest CVS HEAD (4.3.0-dev)



 [2002-08-19 11:37 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 23:01:31 2024 UTC