#50704 [NEW]: SplSubject and SplObserver are NOT classes, they are interfaces.

From: Date: Sat, 09 Jan 2010 01:26:21 +0000
Subject: #50704 [NEW]: SplSubject and SplObserver are NOT classes, they are interfaces.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3656@lists.php.net to get a copy of this message
From: jasonwyz79 at gmail dot com Operating system: Ubuntu 9.04 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: SplSubject and SplObserver are NOT classes, they are interfaces. Description: ------------ The following pages in the documentation states that "SplSubject" and "SplObserver" are classes when in fact they are interfaces. http://php.net/class.splsubject http://php.net/class.splobserver Reproduce code: --------------- 1: echo class_exists( 'SplSubject' ) ? 'SplSubject is a class' : 'SplSubject is NOT a class'; 2: echo interface_exists( 'SplSubject' ) ? 'SplSubject is an interface' : 'SplSubject is NOT an interface'; 3: echo class_exists( 'SplObserver' ) ? 'SplObserver is a class' : 'SplObserver is NOT a class'; 4: echo interface_exists( 'SplObserver' ) ? 'SplObserver is an interface' : 'SplObserver is NOT an interface'; Expected result: ---------------- 1: SplSubject is NOT a class 2: SplSubject is an interface 3: SplObserver is NOT a class 4: SplObserver is an interface Actual result: -------------- 1: SplSubject is NOT a class 2: SplSubject is an interface 3: SplObserver is NOT a class 4: SplObserver is an interface -- Edit bug report at http://bugs.php.net/?id=50704&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50704&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50704&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50704&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50704&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50704&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50704&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50704&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50704&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50704&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50704&r=support Expected behavior: http://bugs.php.net/fix.php?id=50704&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50704&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50704&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50704&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50704&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50704&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50704&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50704&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50704&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50704&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50704&r=mysqlcfg

« previous php.doc.bugs (#3656) next »