Last modified: 2010-05-15 15:50:40 UTC
When uploading file from url source ($wgAllowCopyUploads = true), it return error, Fatal error: Only variables can be passed by reference in /usr/share/mediawiki1.10/includes/SpecialUpload.php on line 124 Where SpecialUpload.php line 124 is, $this->mOname = array_pop( explode( '/', $url ) ); It produces the same error, when invoking like the following, $ php5 -r 'array_pop( explode(".","a") );' Fatal error: Only variables can be passed by reference in Command line code on line 124 php version in the above test is 5.0.5. In php4, it doesn't have this error. This is not php bug. See, * http://bugs.php.net/bug.php?id=33643 * http://bugs.php.net/bug.php?id=33257 * http://bugs.php.net/bug.php?id=33516
I've just tried assigning the array to $temp first, $this->mOname = array_pop( $temp = explode( '/', $url ) ); And it work now.
r31284