Req #53259 [NEW]: Incomplete implementations of extended classes don't cause an error
| From: | kbcmdba at gmail dot com | Date: | Mon, 08 Nov 2010 00:43:56 +0000 |
| Subject: | Req #53259 [NEW]: Incomplete implementations of extended classes don't cause an error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155836@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 7
PHP version: 5.3.3
Package: Class/Object related
Bug Type: Feature/Change Request
Bug description:Incomplete implementations of extended classes don't cause an error
Description:
------------
Incomplete implementations of extended classes don't cause an error message
back to the user.
Test script:
---------------
<?php
class fooBase {
abstract public function mustImplement() {
// This must be implemented.
}
abstract public function youMustImplementThisToo() {
// This must be implemented too.
}
}
class foo extends fooBase {
public function bar() {
echo "Hello world\n" ;
}
}
echo "Made it here... That makes sense.\n" ;
$c = new foo() ;
$c->bar() ;
echo "... but not here and without an error message or warning.\n" ;
Expected result:
----------------
Fatal Error: The foo class is an incomplete implementation of the fooBase
class in foo.php.
Concrete implementation of mustImplement() is required
Concrete implementation of youMustImplementThisToo() is required
--
Edit bug report at http://bugs.php.net/bug.php?id=53259&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53259&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53259&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53259&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53259&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53259&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53259&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53259&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53259&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53259&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53259&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53259&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53259&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53259&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53259&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53259&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53259&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53259&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53259&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53259&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53259&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53259&r=mysqlcfg