Re: Coercive STH - some real world tests and updated RFC

From: Date: Fri, 27 Feb 2015 13:57:06 +0000
Subject: Re: Coercive STH - some real world tests and updated RFC
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-84003@lists.php.net to get a copy of this message
On 27/02/15 13:45, Benjamin Eberlei wrote: >>> Drupal admin interface (across the all pages): One new E_DEPRECATED >>> > > warning, which again seems to catch a real bug - stripslsahes() operating >>> > > on a boolean. >>> > > >> > >> > All those are due to a bug in substr(), that we see now only thanks to >> > proper type identification. There is no reason for substr() to ever return >> > a boolean. It really needs to be fix to always return a string. >> > > Yes, weird behavior that substr("", 2, 2); for example returns false. But > changing thatis just another evil BC break. Now I don' think that 'weird' ... Although the correct return should perhaps be 'null', but it's long been practice that s there is no result we get 'false' so how any places will have a sanity check based on the 'false' return? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#84003) next »