|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-12 17:15 UTC] pollita@php.net
[2004-06-12 17:29 UTC] cpuidle at gmx dot de
[2004-06-12 17:35 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
Description: ------------ Two issues exist with php5rc3 when using indirect variables: Reproduce code: --------------- <?php $test = ''; $var = 'test'; if (empty($test)) { echo 'test empty'; } // excepted & actual: test empty if (empty($$var)) { echo 'test empty'; } // expected result: test empty // actual result: <-------!! $test = 'doo'; echo trim($$var); // excepted & actual: doo if (empty(trim($$var)); // Fatal error: Can't use function return value in write // context in C:\htdocs\test4.php on line 8 // where is the write context here? <-------!! ?> Expected result: ---------------- see above Actual result: -------------- see above