php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13341 Seffault in outputbuffers
Submitted: 2001-09-17 06:14 UTC Modified: 2002-06-18 18:52 UTC
From: wico at cnh dot nl Assigned: yohgaki (profile)
Status: Closed Package: Output Control
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [2001-09-17 06:14 UTC] wico at cnh dot nl
Hiya,

Using the same var from the function and changing will sefault, copying it first to another var will work... but should not happen, see examples
<?
	ob_start('Segfault_Me');

	// works
	function Segfault_Me ($data) {
		$data2 = $data . "I didn't segfault :) :) :)";
		return($data2);
	}

	// segfaults
	function Segfault_Me ($data) {
		$data = "I didn't segfault :) :) :)";
		return($data);
	}

	// segfaults 2
	function Segfault_Me ($data) {
		$data = str_replace('a', 'b', $data);
		return($data);
	}
?>
I segfaulted :( :( :(

Greetz,

Wico de Leeuw

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-17 06:20 UTC] wico at cnh dot nl
Fixed typo;

Btw where did the bug reporters stats go? It looks good to be on top ;)
 [2002-01-06 07:41 UTC] sander@php.net
Does this problem still occur with 4.1.1 and/or the latest CVS?
 [2002-01-06 09:26 UTC] wico at cnh dot nl
yup still segfaults with 4.1.0
 [2002-01-06 16:54 UTC] wico at cnh dot nl
also true for 4.1.1

Greetz,

 [2002-01-06 19:22 UTC] yohgaki@php.net
Assign to me so that I don't forget about this.
Zeev may want to fix this, though :)
 [2002-02-05 18:29 UTC] yohgaki@php.net
Dup 12227
 [2002-06-18 18:52 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC