#34534 [Opn->Csd]: The reference for extract() does not reference an underscore being concatenated
| From: | nforbes@php.net | Date: | Fri, 16 Sep 2005 19:44:00 +0000 |
| Subject: | #34534 [Opn->Csd]: The reference for extract() does not reference an underscore being concatenated | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370150@lists.php.net to get a copy of this message | ||
ID: 34534
Updated by: nforbes@php.net
Reported By: phpbugs at majiclab dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
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:
------------------------------------------------------------------------
[2005-09-16 20:48:05] phpbugs at majiclab dot com
Description:
------------
In the documentation, there is no reference to a '_' being
concatenated between the prefix and the variable name being
extracted. Should make this fact more clear in documentation
to aleviate some problems such as illustrated below:
Reproduce code:
---------------
<?php
extract(array('test' => 123), EXTR_PREFIX_ALL, 'prefix');
echo $prefixtest;
?>
Expected result:
----------------
123
Actual result:
--------------
undefined variable $prefixtest (it's really $prefix_test)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34534&edit=1