ID:               46749
 Comment by:       robin_fernandes at uk dot ibm dot com
 Reported By:      robin_fernandes at uk dot ibm dot com
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: *
 PHP Version:      6CVS-2008-12-04 (snap)
 New Comment:

In fact, the class C above is not necessary to get the crash; here is a
shorter reproduce script. Expected and actual output as above.

<?php
$nonEmptyString = 'hello';
$i=0;
while ($i++<10) {
        echo "$i...";
        @$nonEmptyString->prop = 'Will eventually cause crash';
}
echo "Done."
?>


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

[2008-12-04 15:26:55] robin_fernandes at uk dot ibm dot com

Description:
------------
The script below crashes consistently on Windows and Linux on the
latest php6 snap.

This seems to be specific to HEAD: I could NOT recreate the crash on
the latest 5_2 and 5_3 snaps.

Reproduce code:
---------------
<?php
Class C {
        public $nonEmptyString = 'hello';
}

$c = new C;
$i=0;
while ($i++<10) {
        echo "$i...";
        @$c->nonEmptyString->prop = "Will eventually cause crash";
}
echo "Done."
?>

Expected result:
----------------
1...2...3...4...5...6...7...8...9...10...Done.

Actual result:
--------------
1...2...[crash]


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


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

Reply via email to