ID:               40941
 User updated by:  daniel dot oconnor at gmail dot com
 Reported By:      daniel dot oconnor at gmail dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Ubuntu (fiesty)
 PHP Version:      5.2.1
 New Comment:

Works For Me, CVS


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

[2007-03-29 08:14:16] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



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

[2007-03-29 05:15:14] daniel dot oconnor at gmail dot com

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


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


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

Reply via email to