|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-29 08:14 UTC] tony2001@php.net
[2007-03-30 00:32 UTC] daniel dot oconnor at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ Segfaults happen when you put something into a class property you haven't declared. Probably a dupe of 40460, 40431; but affecting 5.2.1 Reproduce code: --------------- <?php class Example { public function segfault() { $class = new ReflectionObject($this); $properties = $class->getProperties(); foreach ($properties as $property) { //Kaboom! if ($property->isStatic()) { continue; } } return true; } public function __construct($jr_id = null) { $this->d = ""; } } $report = new Example(); $report->segfault(); Expected result: ---------------- No segfault. Warnings about undeclared stuff. Actual result: -------------- Segmentation fault