From: kester dot everts at wanadoo dot nl
Operating system: Windows XP Professional (SP1)
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Reproducible crash
Bug description: Crash when nesting classes

Description:
------------
When nesting a class within another class function, PHP crashes.
I have PHP running on an Apache2 (2.0.47) server as a module.
Changes in my php.ini, different from php.ini-dist are my SMTP server
setting, my error reporting level setting to E_ALL and the floating point
number precision to 14. No exentions are enabled.

Reproduce code:
---------------
class foo {
function bar() {
//here comes the line of doom:
class my_class {}
}
}


Expected result:
----------------
I expected PHP to return a fatal error which says that classes cannot be
nested.

Actual result:
--------------
PHP crashed...
I am using Windows, so I have not got a backtrace. I have sent an error
report to Microsoft; maybe that helps.

--
Edit bug report at [url]http://bugs.php.net/?id=26065&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26065&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26065&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26065&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26065&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26065&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26065&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26065&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26065&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26065&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26065&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26065&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26065&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26065&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26065&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26065&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26065&r=float[/url]