#44467 [NEW]: wrong oop example in provided manual of php installer package
| From: | krille at thomaskrille dot de | Date: | Tue, 18 Mar 2008 11:05:19 +0000 |
| Subject: | #44467 [NEW]: wrong oop example in provided manual of php installer package | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-609@lists.php.net to get a copy of this message | ||
From: krille at thomaskrille dot de
Operating system: windows XP
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: wrong oop example in provided manual of php installer package
Description:
------------
in the provided (.chm) manual of the php installer package the following
example is given in Lang.Ref.->Classes and ...(PHP5)->The Basics:
<?php
$assigned = $instance;
$reference =& $instance;
$instance->var = '$assigned will have this value';
$instance = null; // $instance and $reference become null
var_dump($instance);
var_dump($reference);
var_dump($assigned);
?>
The above example will output:
NULL
NULL
object(SimpleClass)#1 (1) {
["var"]=>
string(30) "$assigned will have this value"
}
this example describes the php4 behavior, not the php5 one.
i haven't checked if this mistake is also exsists in other provided
manuals.
manual version: "Sun Nov 11 00:33:08 2007"
Reproduce code:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
--
Edit bug report at http://bugs.php.net/?id=44467&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44467&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44467&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44467&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44467&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44467&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44467&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44467&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44467&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44467&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44467&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44467&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44467&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44467&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44467&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44467&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44467&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44467&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44467&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44467&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44467&r=mysqlcfg