Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70705 invoked from network); 22 Jun 2008 15:40:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2008 15:40:41 -0000 Authentication-Results: pb1.pair.com header.from=olivier.hill@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=olivier.hill@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olivier.hill@gmail.com X-Host-Fingerprint: 209.85.128.188 fk-out-0910.google.com Received: from [209.85.128.188] ([209.85.128.188:14541] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/EA-21210-7727E584 for ; Sun, 22 Jun 2008 11:40:40 -0400 Received: by fk-out-0910.google.com with SMTP id 18so2055133fks.7 for ; Sun, 22 Jun 2008 08:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=CimNRm6Swk7yBfYPzXtWmH+f7+cnnHgR/4/3oW1c8Mg=; b=BSUzu8ja7vDQViXGEBLIV1drLVWn5UTq8aYujFPXufZ8pAqfOcz/DqM1WT9AcK70Vy asTGz6jBueKzTFwRtgbEh3dFi2NdHJznyAgzjEWkZorxWhHMoX24r6PatPHr0XZJmyoo wLtvAnBpRefxp7sXKzHil8WOBi4rt+VqXBsWQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=coQP6DoWXRpSO6PF489P3uyBSxr3KkG9QZfrpZtSz7BPTGy+1Bg1yORKquda2HvKdu IqHh2ALObnsD6v08Rg6h68QeTyYV1Xnxf/7dZnwniD4AJvdF0d1d6ifYHhJ90UfxRGpi 2kgehzvhqF6/z7d/6e3ATSOjjZuVByfuFL0AU= Received: by 10.82.177.3 with SMTP id z3mr348983bue.21.1214149235794; Sun, 22 Jun 2008 08:40:35 -0700 (PDT) Received: by 10.82.148.13 with HTTP; Sun, 22 Jun 2008 08:40:35 -0700 (PDT) Message-ID: Date: Sun, 22 Jun 2008 11:40:35 -0400 Sender: olivier.hill@gmail.com To: "Pierre Joye" Cc: "David Coallier" , "Lukas Kahwe Smith" , "Stanislav Malyshev" , "PHP Internals" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485AE658.3050204@zend.com> <0BA4A4FD-7FA2-49C0-B7B9-06CDDCF2EFBF@pooteeweet.org> X-Google-Sender-Auth: 2a2f8b44f8d09a64 Subject: Re: [PHP-DEV] cleaning up the functions - any volunteers? From: ohill@php.net ("Olivier Hill") On Sun, Jun 22, 2008 at 11:18 AM, Pierre Joye wrote: >> >> Ok, with the tests being ran we are minimizing the chances of bc break >> but I agree and extra care should be applied. We'll make sure this >> care is applied. > > http://wiki.php.net/doc/scratchpad/upgrade/53 I will be documenting BC breaks on that page after committing. Basically, some functions like trim() would not behave the same way when passing things like resources, arrays or objects without a __toString() method. The old ways didn't make any sense most of the time anyway, as you don't want to trim a resource and get a string back containing: "Resource" Ex: $ar = array(1, 2); Before: var_dump(trim($ar)) -> string(5) "Array" with an E_NOTICE Now: var_dump(trim($ar)) -> NULL with an E_WARNING Tests are going to be changed to reflect that also (that's mostly the longest part) Regards, Olivier