[PHP-BUG] Bug #51900 [NEW]: Abstract Method Not Overridden will Halt PHP.

2010-05-24 Thread jrdoane at gmail dot com
From: 
Operating system: Ubuntu 9.10/RHEL 4
PHP version:  5.2.13
Package:  Class/Object related
Bug Type: Bug
Bug description:Abstract Method Not Overridden will Halt PHP.

Description:

if you have an abstract class that gets overridden, if a method that is
overridden has a default where the abstract doesn't, PHP just halts without
any error, warning, or fatal. For small projects this is manageable, but
when you have a large project, hunting down these things take a long time,
such as a multi-thousand lined library loaded with abstract classes.



These are the folowing versions of PHP that I've tested:

$ php --version

PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan  6 2010
22:56:44)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies



and





$ php --version

PHP 5.2.13 (cli) (built: Apr  6 2010 18:40:35)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies



Test script:
---
runme.php





file1.php





file2.php



Expected result:

Error: Abstract method not overridden (Line: # OR method name)

Actual result:
--
# PHP halts suddenly with no error output.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=51900&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51900&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51900&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51900&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51900&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51900&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51900&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=51900&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=51900&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=51900&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=51900&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=51900&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=51900&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=51900&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51900&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=51900&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=51900&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=51900&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=51900&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=51900&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=51900&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=51900&r=mysqlcfg



Bug #51900 [Bgs]: Abstract Method Not Overridden will Halt PHP.

2010-06-09 Thread jrdoane at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51900&edit=1

 ID:   51900
 User updated by:  jrdoane at gmail dot com
 Reported by:  jrdoane at gmail dot com
 Summary:  Abstract Method Not Overridden will Halt PHP.
 Status:   Bogus
 Type: Bug
 Package:  Class/Object related
 Operating System: Ubuntu 9.10/RHEL 4
 PHP Version:  5.2.13

 New Comment:

Display_Errors is on.

E_ALL is being displayed.

No change, I checked this before submitting a bug report.


Previous Comments:

[2010-06-08 13:11:29] tony2...@php.net

Not reproducible.

Please enable error reporting and make sure display_errors is set to
On.



PHP 5.3.99-dev

PHP 5.3.3-dev 

PHP 5.2.14-dev 



All these versions report a fatal error:

Fatal error: Class example contains 1 abstract method and must therefore
be declared abstract or implement the remaining methods (abcEx::foo) in
/tmp/1.php on line 4


[2010-05-24 17:27:48] jrdoane at gmail dot com

Description:

if you have an abstract class that gets overridden, if a method that is
overridden has a default where the abstract doesn't, PHP just halts
without any error, warning, or fatal. For small projects this is
manageable, but when you have a large project, hunting down these things
take a long time, such as a multi-thousand lined library loaded with
abstract classes.



These are the folowing versions of PHP that I've tested:

$ php --version

PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan  6 2010
22:56:44)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies



and





$ php --version

PHP 5.2.13 (cli) (built: Apr  6 2010 18:40:35)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies



Test script:
---
runme.php





file1.php





file2.php



Expected result:

Error: Abstract method not overridden (Line: # OR method name)

Actual result:
--
# PHP halts suddenly with no error output.






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