From:             Jason at AMP-design dot net
Operating system: Windows 2003
PHP version:      5.0.2
PHP Bug Type:     Reproducible crash
Bug description:  reflective functions crash PHP when interfaces extend 
themselves

Description:
------------
When a interface extends it's self, it will cause PHP to crash when
reflective language features such as instanceOf, is_a are used on objects
that implement the recursive interface.

Reproduce code:
---------------
<?php

interface RecurisiveFooFar extends RecurisiveFooFar {}
class A implements RecurisiveFooFar {}

$a = new A();
var_dump($a instanceOf A);

?>

Expected result:
----------------
Something like ...

Fatal Error: interface can not extend it's self on line __LINE__ in
__FILE__

Actual result:
--------------
PHP Crashes. Apache log shows this activity.

[Sun Nov 28 15:47:43 2004] [notice] Parent: child process exited with
status 128 -- Restarting.
[Sun Nov 28 15:47:43 2004] [notice] Parent: Created child process 3932
[Sun Nov 28 15:47:43 2004] [notice] Child 3932: Child process is running
[Sun Nov 28 15:47:43 2004] [notice] Child 3932: Acquired the start mutex.
[Sun Nov 28 15:47:43 2004] [notice] Child 3932: Starting 250 worker
threads.

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

Reply via email to