Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33469 invoked from network); 10 Nov 2008 12:14:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2008 12:14:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.185 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 64.233.182.185 nf-out-0910.google.com Received: from [64.233.182.185] ([64.233.182.185:1483] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/36-04934-C9528194 for ; Mon, 10 Nov 2008 07:14:21 -0500 Received: by nf-out-0910.google.com with SMTP id b11so1073597nfh.13 for ; Mon, 10 Nov 2008 04:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=GNIdp2zLqSeyIXYU9SZ9kDhMWapzhoKJl2nS0Vkf9zk=; b=HsPCS1j338gr6XYIDWzDkwVUod8UpZQYZuSu3soQaobGl+JMAr6TCT8rXZb/cE3nqe S+o/hgiG+bKXJnNFXPf1MOsiaB5gynA/FUMmIgScEWk6K8HYkEY70tLpQfkwXCGbGKc2 UcI82x6GsYv9dDvSkzY4MOwauiuOWwJkuaqos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=edDWS3OzoND8O5OLSwm2AmRoti1YAg7iyzWwzgKSoHaq/2fk1Bs+WsNFXLPWFjzFbe i/OQho9Cagjx6mTi67NnMRoJybAiBqAQn+gLpT1/YyNufA/KsIGPoYQsKLDQ6FRRFaHh l2Ys/jRfGj7zgndPzHq616c8EhyPbSXZGW2UM= Received: by 10.210.25.18 with SMTP id 18mr7603581eby.14.1226319257502; Mon, 10 Nov 2008 04:14:17 -0800 (PST) Received: by 10.210.16.3 with HTTP; Mon, 10 Nov 2008 04:14:17 -0800 (PST) Message-ID: <46ccd1ab0811100414n94bd4c0se29b68d19b45c03f@mail.gmail.com> Date: Mon, 10 Nov 2008 10:14:17 -0200 To: "Marcin Kurzyna" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] Bug in namespaces and type hints From: felipensp@gmail.com ("Felipe Pena") 2008/11/9 Marcin Kurzyna : > 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). > > this is tested with currently newest snap: 2008.11.09 23:30 (UTC) > > I haven't filed bug report for this yet i'll do it if required. > Nice Marcin! I have added 4 new tests about that issue, that wasn't detected with the current tests. Thanks. -- Regards, Felipe Pena.