Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35575 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95180 invoked by uid 1010); 19 Feb 2008 03:21:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95165 invoked from network); 19 Feb 2008 03:21:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 03:21:34 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.248 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: 209.85.132.248 an-out-0708.google.com Received: from [209.85.132.248] ([209.85.132.248:5880] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/C1-23568-D3B4AB74 for ; Mon, 18 Feb 2008 22:21:33 -0500 Received: by an-out-0708.google.com with SMTP id c18so417081anc.1 for ; Mon, 18 Feb 2008 19:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=dEcyI7ZwYsAKI64ebVuvtaqo4MCGix5YUxcxbYMssBk=; b=kKnP06Zv6qkb4KnmlVpyQQ1pxXxcE94nQ4+mR1wDsVD3CML60FMzeOg1bmk0qKxP9ST4KdV2lvPliHdkBCm8ejolFhyZNcFmufTqLvJessTYRdxoolOj9oSS8uCu1KNGgesP2GxE/kVXOgWmu+obtGlIT2IcAcuFVui8hHC4AjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=jG3VYZd3w2XVLk1Q/sVj3G7B7Ud5woPRlHcAUT+EpFGM9p9nncTZCXCTZDyHNPxGyl0VF1u3ZYDFUdqcF01vmhcKpKZ0n0q1C4RA/NRaiFL1Kk76w8FKrUSP8YQncqSCQpgnUbW8ixUJLj5pbbH1u7PDRUSzvpYpiMzZ4ZpntKw= Received: by 10.100.177.15 with SMTP id z15mr12990930ane.102.1203391289924; Mon, 18 Feb 2008 19:21:29 -0800 (PST) Received: from ?189.24.59.197? ( [189.24.59.197]) by mx.google.com with ESMTPS id u25sm12846606ele.13.2008.02.18.19.21.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Feb 2008 19:21:29 -0800 (PST) To: internals@lists.php.net Content-Type: text/plain Date: Tue, 19 Feb 2008 00:21:20 -0300 Message-ID: <1203391281.6475.18.camel@pena> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Subject: Error messages for wrong coding From: felipensp@gmail.com (Felipe Pena) Hi. Looking on "Feature/Change Request", i have seen curious things, and i think that them should issue any error message. See above. --- Bug #39915 - Trying to access the index of an integer should throw a warning: Actual result: $a = 1234; $a[0]; // Not shows error Proposed: - Shows error message (Fatal error, as happens with objects) for integer and float variables. http://felipe.ath.cx/diff/bug39915.diff --- Bug #42852 - Inconsistent message when creating default object from empty value: Actual result: $obj1->p = 1; // Shows 'Strict Standards ...' $obj2->p[] = 1; // Not shows $a = 1; $obj3->p = &$a; // Not shows Proposed: - 'Strict Standards' for all cases. http://felipe.ath.cx/diff/bug42852.diff -- Regards, Felipe Pena.