#33482 [Opn->Bgs]: Cant give direct function return to end()
| From: | derick@php.net | Date: | Sun, 26 Jun 2005 18:28:00 +0000 |
| Subject: | #33482 [Opn->Bgs]: Cant give direct function return to end() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81042@lists.php.net to get a copy of this message | ||
ID: 33482
Updated by: derick@php.net
Reported By: noscript at uni dot de
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Windows XP
PHP Version: 5.1.0b2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2005-06-26 20:10:31] noscript at uni dot de
Description:
------------
I cannot pass an direct function return to the function end();
Is it a bug or is it a feature...
Reproduce code:
---------------
$name="file.dat"
//does not work:
$end=end(explode(".", $name));
//works:
$arr=explode(".", $name);
$end=end($arr);
Expected result:
----------------
$end has value "dat"
Actual result:
--------------
Error message "only allowed to pass variables"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33482&edit=1