|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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();
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
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(); ?>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(); ?>