Is it possible to allow expressions in function definitions?

From: Date: Tue, 28 Nov 2000 12:58:21 +0000
Subject: Is it possible to allow expressions in function definitions?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39588@lists.php.net to get a copy of this message
It´s a bit annoying that the following doesn´t work: <?php define('A', 1); define('B', 2); function foo($bar = A|B) { return $bar; } ?> I know this probably would make all hell break loose and yes it would get a very high WTF ranking if any expression was allowed. Just checking :) -Mårten.

« previous php.dev (#39588) next »