﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	appname	phpversion	exts	sapi	probability	blockedby	blocking
208	null as default value for parameters with array type hint produces a fatal error	romain.lalaut@…	moo	"To reproduce the error :

test.php
{{{
<?php

class A
{
        public function __construct( array $a = NULL)
        {
          echo 'Fooo';
        }
}

new A();
}}}

test2.php
{{{
<?php
namespace My\NS;

use My\NS;

class A
{
        public function __construct( array $a = NULL)
        {
          echo 'Fooo';
        }
}

new A();
}}}

Actually it returns
{{{
$ php-cgi test.php
X-Powered-By: PHP/5.3.0alpha4-dev
Content-type: text/html

<br />
<b>Fatal error</b>:  Default value for parameters with array type hint can only be an array or NULL in <b>/home/romain/aubonticket/dev/tmp/bug.php</b> on line <b>5</b><br />
}}}

It must be (and it works with CLI SAPI) :
{{{
$ php-cgi test.php
Fooo
}}}"	defect	closed	critical	1.3.0	cacher	2.0.0	fixed	null hint			5.3.0RC2-dev		FastCGI	Always		129
