Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76560 invoked from network); 28 Jan 2009 18:48:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2009 18:48:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.20 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.217.20 mail-gx0-f20.google.com Received: from [209.85.217.20] ([209.85.217.20:44986] helo=mail-gx0-f20.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/2C-08436-478A0894 for ; Wed, 28 Jan 2009 13:48:21 -0500 Received: by gxk13 with SMTP id 13so6057752gxk.23 for ; Wed, 28 Jan 2009 10:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=d9jLKuYqtLKMzoBkfz3tNt+o+ENvHnd8tC92q8Whw70=; b=r9A3pKS2Kt5C49P/2XX7xUWm+sgsggoPUxwkkeEg7iZwItT8JuXzrPs9w6hbFWIOJ0 JLvcj5Ssb6vLPutilNyesiL4BnyI7SMhgRUAyHLyEb9vPlfObOrgGnfvqsar4JQ0a8r0 7ZvZIz58xwcV28DIZLCgnPGwO8md1VhwaOruY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hKVXwJVbF8NoAtSTJPDIIRH066QiCb+jOboGq52QNllJoV08f+7ValI+7Uqtx0EyKZ ZAgyWNArAbgDRPeLi8XT39r++UgPzRScRGTwFxz7KzIYzk4Onj/zMjtAthVpO9utzobY ZbBrON31fKMt3gIIvsgUR1gRc4gLbZPnQFHB0= MIME-Version: 1.0 Received: by 10.151.98.11 with SMTP id a11mr425012ybm.90.1233168497695; Wed, 28 Jan 2009 10:48:17 -0800 (PST) In-Reply-To: References: <497E1FFB.5050404@gnat.ca> <497E5DF6.4060606@oracle.com> <1233063239.8505.10.camel@goldfinger> <497F37F8.6070407@gnat.ca> <49807F9E.4020401@pewasoft.com> <4980976D.60202@gnat.ca> <498098D7.2080901@macvicar.net> Date: Wed, 28 Jan 2009 18:48:17 +0000 Message-ID: To: Dan Cc: Scott MacVicar , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] substr passing null... From: paul.biggar@gmail.com (Paul Biggar) On Wed, Jan 28, 2009 at 6:39 PM, Dan wrote: >> >> You're assumption is wrong then, NULL isn't treated as not passing a >> value. The reason it worked with substr was by pure chance. >> > > Out of interest, is there a reason that that is the case? Surely passing > null would be best treated as the same as passing nothing? NULL is a value. There is no way to tell that when you pass NULL, you actually intended to pass nothing and use the default value. Paul -- Paul Biggar paul.biggar@gmail.com