#33575 [NEW]: OOP5 "Patterns": Example not a Factory Method
| From: | nick dot telford at ntlworld dot com | Date: | Tue, 05 Jul 2005 15:55:32 +0000 |
| Subject: | #33575 [NEW]: OOP5 "Patterns": Example not a Factory Method | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969368933@lists.php.net to get a copy of this message | ||
From: nick dot telford at ntlworld dot com
Operating system: N/A
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: OOP5 "Patterns": Example not a Factory Method
Description:
------------
http://www.php.net/manual/en/language.oop5.patterns.php
The first description and example identify the example to be a Factory
Method, this is not strictly true, it's a Parameterized Factory Method
(sometimes referred to simply as "Factory"), and is a slight derivation of
the Factory Method pattern.
A pure Factory Method doesn't use parameters to select the class(es) to
instanciate, it uses multiple methods and acts slightly differently.
Ultra low priority bug report, I know i'm being pedantic, but I felt it
was worth reporting anyway.
Nicholas Telford
--
Edit bug report at http://bugs.php.net/?id=33575&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33575&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33575&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33575&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33575&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33575&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33575&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33575&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33575&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33575&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33575&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33575&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33575&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33575&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33575&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33575&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33575&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33575&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33575&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33575&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33575&r=mysqlcfg