PHP 4.0 Bug #2385: using $variables as default value in a function doen't work

From: Date: Sun, 26 Sep 1999 18:36:58 +0000
Subject: PHP 4.0 Bug #2385: using $variables as default value in a function doen't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-11314@lists.php.net to get a copy of this message
From: webmaster@retroplay.com Operating system: Linux Slackware 4.0, Kernel 2.12 PHP version: 4.0 Beta 2 PHP Bug Type: Scripting Engine problem Bug description: using $variables as default value in a function doen't work PHP reports a "parser error" in a function (at the very start of it) when I specified a default value and it is another variable (not null). For example #function UltimiGiorni($tabella,$foo="no",$quanti="$voci_per_pagina") doens't work (parser error) while function UltimiGiorni($tabella,$foo="no",$quanti=0) is OK.

« previous php.dev (#11314) next »