Bug #13341 Updated: Seffault in outputbuffers

From: Date: Mon, 07 Jan 2002 00:22:36 +0000
Subject: Bug #13341 Updated: Seffault in outputbuffers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76104@lists.php.net to get a copy of this message
ID: 13341
Updated by: yohgaki
Reported By: wico@cnh.nl
Old Status: Open
Status: Analyzed
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.0.6
Old Assigned To: 
Assigned To: yohgaki
New Comment:

Assign to me so that I don't forget about this.
Zeev may want to fix this, though :)

Previous Comments:
------------------------------------------------------------------------

[2002-01-06 16:54:47] wico@cnh.nl

also true for 4.1.1

Greetz,


------------------------------------------------------------------------

[2002-01-06 09:26:14] wico@cnh.nl

yup still segfaults with 4.1.0

------------------------------------------------------------------------

[2002-01-06 07:41:19] sander@php.net

Does this problem still occur with 4.1.1 and/or the latest CVS?

------------------------------------------------------------------------

[2001-09-17 06:20:22] wico@cnh.nl

Fixed typo;

Btw where did the bug reporters stats go? It looks good to be on top ;)

------------------------------------------------------------------------

[2001-09-17 06:14:58] wico@cnh.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

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13341&edit=1



Thread (8 messages)

« previous php.dev (#76104) next »