Re: php 5.1.2

From: Date: Fri, 20 Jan 2006 02:32:30 +0000
Subject: Re: php 5.1.2
References: 1 2  Groups: php.qa 
Request: Send a blank email to php-qa+get-26659@lists.php.net to get a copy of this message
http://parity.menalto.com/~mindless/shift.php http://parity.menalto.com/~mindless/phpinfo.php Marco Kaiser wrote:
Hi, have you some code to reproduce it on my machine? i tested it php 5.1.2 and it works for me ... -- Marco 2006/1/19, Alan Harder < alan.harder@sun.com <mailto:alan.harder@sun.com>>:
    Hi-
    the Gallery team received the RC notifications for 5.1.2..
    sorry for not performing our testing until after the release,
    but I did want to report one issue I found.
    we have(had!) one function that contains code like this:
       function test($x) {
         array_shift($args = func_get_args());
    and then does some stuff with $x and $args.
    there are of course several ways to rewrite this, but just wanted
    to let you know that in php 5.1.2 it appears the array_shift above
    does not affect $args.  changing to:
       $args = func_get_args();
       array_shift($args);
    works fine.
    thanks,
            - Alan
    --
    PHP Quality Assurance Mailing List <http://www.php.net/>
    To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.qa (#26659) next »