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

- Thread: https://externals.io/message/1172
- Original archive: https://news-web.php.net/php.internals/1172
- Started by Michael Sisolak on 2003-05-02T17:04:41+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1172 — Michael Sisolak — 2003-05-02T17:04:41+00:00

URL: https://externals.io/message/1172#1172

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

---

## #1173 — Wez Furlong — 2003-05-02T17:06:14+00:00

URL: https://externals.io/message/1172#1173 · In reply to: #1172

Should be fixed already in CVS.

--Wez.



> 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
