ID: 47308 Updated by: [email protected] Reported By: v0idnull at psikon dot com -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Ubuntu 8.1 PHP Version: 5.2.8 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2009-02-04 17:26:08] v0idnull at psikon dot com Description: ------------ Assign return value of a function to a variable, inside another function expecting a reference. Triggers an E_STRICT error and other strange behavior. Reproduce code: --------------- <?php $file = '/path/to/some/file.ext'; $extension = array_pop($fileParts = explode('.',basename($file))); echo $extension."\n"; // This works, echoes 'ext' echo count($fileParts); // Value is 2 ?> Expected result: ---------------- count($fileParts) should return 1, and E_STRICT errors shouldn't be triggered. Actual result: -------------- count($fileParts) returns 2, and an E_STRICT error is thrown ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47308&edit=1
