|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-30 02:56 UTC] sas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jul 13 19:00:01 2026 UTC |
PHP causes httpd to segfault with the following scripts. Basically, we feel that when the objects get restored at session_start the references are no longer valid. Apache Error Log: [Thu Sep 28 19:55:57 2000] [notice] child pid 255 exit signal Segmentation fault (11) === file 1 === <? class parentClass { var $child; var $relation = "mother"; function makeChild() { $this->child = new ChildClass($this); } } class childClass { var $parentLink; function childClass(&$parent) { $this->parentLink = &$parent; } } session_start(); session_register("mom"); $mom = new parentClass; $mom->makeChild(); ?> <html> <? echo $mom->child->parentLink->relation . "<br>"; ?> <a href="next.phtml">next</a> </html> === file 2 === <? class parentClass { var $relation = "mother"; } class childClass { var $parentLink; function childClass(&$parent) { $this->parentLink = &$parent; } } session_start(); session_register("mom"); ?> <html> <? echo $son->parentLink->relation . "<br>"; ?> <a href="next.phtml">next</a> </html>