Re: 4.3.2RC2: mul_function() Change Kills -1 As Parameter Default?

From: Date: Fri, 02 May 2003 17:17:18 +0000
Subject: Re: 4.3.2RC2: mul_function() Change Kills -1 As Parameter Default?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1179@lists.php.net to get a copy of this message
Hello, Wez has fixed this issue (at least on the *= operator). Please try snaps http://snaps.php.net and tell us if you still have this problem. -- Regards. M.CHAILLAN Nicolas nicos@php.net www.WorldAKT.com Hébergement de sites internets. "Michael Sisolak" <msisolak@yahoo.com> a écrit dans le message news: 20030502170441.57583.qmail@web13405.mail.yahoo.com... > For me with 4.3.2RC2 (Win32 build) this code no longer works as it > should: > > function test($param = -1) > { > echo $param; > } > test(); > > Instead of printing -1, is prints 0 instead. I tracked this for a > while through the code, and believe the problem is with the changes > just introduced to mul_function() in zend_operators.c. I can't follow > it well enough to explain why, but if I revert to the php_4_3_2RC1 > version of mul_function() my test code works again. > > Michael Sisolak > msisolak@gvpi.com > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com

« previous php.internals (#1179) next »