|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-27 22:02 UTC] tony2001@php.net
[2005-06-28 01:40 UTC] jsheets at idahoimageworks dot com
[2005-06-28 09:10 UTC] sniper@php.net
[2005-07-18 20:44 UTC] jsheets at idahoimageworks dot com
[2005-07-18 20:54 UTC] derick@php.net
[2005-07-18 20:58 UTC] jsheets at idahoimageworks dot com
[2005-07-18 20:58 UTC] jsheets at idahoimageworks dot com
[2005-07-18 21:17 UTC] derick@php.net
[2005-10-13 07:26 UTC] jsheets at idahoimageworks dot com
[2005-10-13 07:27 UTC] jsheets at idahoimageworks dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ Starting with PHP 5.1 beta #2 PHP dies with a PHP Configuration: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-pgsql=/usr/local/pgsql''--enable-ftp' '--with-zlib-dir=/usr' '--with-config-file-path=/usr/local/apache2/conf' '--with-jpeg-dir=/usr/local' PHP Versions: 5.1 BETA #2 and PHP 5.1 latest CVS Reproduce code: --------------- /** * Returns the part of the filename before the . * @param string $file * @return string */ function GetBaseName($file) { if (empty($file)) { return false; } // simplified, $file replaced with file.txt return array_shift(explode('.', 'file.txt'))); } Expected result: ---------------- The expected result is that PHP returns the portion of the filename before the ., Actual result: -------------- Results in Fatal error: Only variables can be passed by reference Error seems to have been introduced between beta 5.1 beta #1 and #2, it works in PHP 4 as well as PHP 5.0.x and PHP 5.1 beta #1