Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25262 invoked from network); 11 Nov 2008 13:36:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2008 13:36:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=thekid@thekid.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thekid@thekid.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thekid.de from 212.227.126.187 cause and error) X-PHP-List-Original-Sender: thekid@thekid.de X-Host-Fingerprint: 212.227.126.187 moutng.kundenserver.de Received: from [212.227.126.187] ([212.227.126.187:61864] helo=moutng.kundenserver.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/58-07308-27A89194 for ; Tue, 11 Nov 2008 08:36:52 -0500 Received: from carla (port-92-205-33-135.dynamic.qsc.de [92.205.33.135]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1KztQC4BeP-0004n2; Tue, 11 Nov 2008 14:36:45 +0100 Message-ID: <85433E6DDE674927A09BC000077743A2@carla> To: , "Marcin Kurzyna" References: In-Reply-To: Date: Tue, 11 Nov 2008 14:36:42 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 X-Provags-ID: V01U2FsdGVkX18chLEHBkcFbR/AG/UBsjx66axxlEatqmpRYfM pMIS0x6o5ZixXUVm+Njq5R0GgLCv36NelYQstIwneY02f4MtUf 9T+uFxcSPMypGLsVlf3PInB3W8WnPXy Subject: Re: [PHP-DEV] Bug in namespaces and type hints From: thekid@thekid.de ("Timm Friebe") Hi, > recent change in namespace code introduced new bug, please consider: > > namespace tests; > > class t1 { > function abc(\stdClass $std = null) { > } > } > ?> > > triggers "Fatal error: Default value for parameters with a class type hint > can only be NULL" > where the same w/o namespace definition works as expected (no error). http://sitten-polizei.de/php/zend-constants-lookup.diff might be a possible fix for this. - Timm