From: phpbugs at majiclab dot com
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: The reference for extract() does not reference an underscore
being concatenated
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 bug report at http://bugs.php.net/?id=34534&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34534&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34534&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34534&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34534&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34534&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34534&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34534&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34534&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34534&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34534&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34534&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34534&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34534&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34534&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34534&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34534&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34534&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34534&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34534&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34534&r=mysqlcfg