Re: #50704 [Asn->Csd]: SplSubject and SplObserver are NOT classes, they are interfaces.
| From: | Daniel Egeberg | Date: | Sat, 09 Jan 2010 11:19:56 +0000 |
| Subject: | Re: #50704 [Asn->Csd]: SplSubject and SplObserver are NOT classes, they are interfaces. | ||
| References: | 1 2 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3660@lists.php.net to get a copy of this message | ||
On Sat, Jan 9, 2010 at 12:17, <degeberg@php.net> wrote:
> ID: 50704
> Updated by: degeberg@php.net
> Reported By: jasonwyz79 at gmail dot com
> -Status: Assigned
> +Status: Closed
> Bug Type: Documentation problem
> Operating System: Ubuntu 9.04
> PHP Version: Irrelevant
> Assigned To: kalle
> New Comment:
>
> This bug has been fixed in the documentation's XML sources. Since the
> online and downloadable versions of the documentation need some time
> to get updated, we would like to ask you to be a bit patient.
>
> Thank you for the report, and for helping us make our documentation
> better.
>
>
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2010-01-09 11:16:36] svn@php.net
>
> Automatic comment from SVN on behalf of degeberg
> Revision:
> http://svn.php.net/viewvc/?view=revision&revision=293316
> Log: Fixes #50704.
>
> ------------------------------------------------------------------------
>
> [2010-01-09 01:26:21] jasonwyz79 at gmail dot com
>
> 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 this bug report at
> http://bugs.php.net/?id=50704&edit=1
>
>
> --
> PHP Documentation Bugs Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Sorry Kalle. I didn't notice that you had assigned it to yourself.
--
Daniel Egeberg