Date: 04/29/00
- Next message: witchen <email protected>: "[PHP-DEV] PHP 4.0 Bug #4282: basic_functions.c:324: `php_if_dl' undeclared here (not in a function)"
- Previous message: andy <email protected>: "[PHP-DEV] PHP 4.0 Bug #4280: cannot return a created reference."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: andy <email protected>
Operating system: Linux 2.2.14
PHP version: 4.0 Beta 4
PHP Bug Type: Scripting Engine problem
Bug description: cannot use a referenced argument with defaulting
You cant use a reference with a default value (an optional function arg) when defining a function-- the parser will choke on this.
function ($somearg, &$object_ref = 0) {
if($object_ref == 0) {
...
}
else { ... }
}
Maybe this fails because php needs a predefined NULL - which is a reference to the NULL object.
later...
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: witchen <email protected>: "[PHP-DEV] PHP 4.0 Bug #4282: basic_functions.c:324: `php_if_dl' undeclared here (not in a function)"
- Previous message: andy <email protected>: "[PHP-DEV] PHP 4.0 Bug #4280: cannot return a created reference."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

