From:             php at elitecoders dot com
Operating system: CentOS
PHP version:      4.4.2
PHP Bug Type:     Scripting Engine problem
Bug description:  functions arg lists with &$var = 'some default' broken? 
(works in php 5)

Description:
------------
When a function argument list contains a variable reference 
which has a default value, there is no output. It may be 
because of a crash, but I was unable to test for that because 
I don't have access to the log files.

This reproduce code works as expected in php 5.

Reproduce code:
---------------
<?php

function exec_bug(&$var_ref = NULL) {


}

echo "working.";

?>

Expected result:
----------------
working.


-- 
Edit bug report at http://bugs.php.net/?id=38215&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38215&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38215&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38215&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38215&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38215&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38215&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38215&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38215&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38215&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38215&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38215&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38215&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38215&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38215&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38215&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38215&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38215&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38215&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38215&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38215&r=mysqlcfg

Reply via email to