2009/7/6 Lupus Michaelis <mickael+php@xxxxxxxxxxxx>: > Stuart a écrit : > >> You appear to be using the definition of null that comes from the >> world of C. > > I didn't. The point is I'm allowed to set a default value to null for a > referenced parameter (what I can do in C for a pointer, so I knew it). > > I'm happy PHP raises an error on foo(null) ; > I'm in trouble when foo() doesn't. > > The actual question is : why PHP doesn't raise an error ? The whole point of default arguments is for it to use that argument if none is passed. What makes you think not passing an argument to that function should raise an error? -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php