RE : [PEAR] RE : [PEAR] DataObject: upgrade from 1.2 to 1.3 probl ems
| From: | LIMBOURG Arnaud | Date: | Tue, 25 Nov 2003 09:50:14 +0000 |
| Subject: | RE : [PEAR] RE : [PEAR] DataObject: upgrade from 1.2 to 1.3 probl ems | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9131@lists.php.net to get a copy of this message | ||
Sounds good to me.
> Actually, I've been thinking this one through, I would like the long
> term solution to be that finding twice on the same object is not
> permitted - as it has a number of benifits:
> - smaller objects size (print_r/object storage..)
> - reduces 'unexpected behaviour'
>
> however, as a transition measure, I think adding (yet
> another) ini option:
>
> ; prior to version 1.3, you could use ->find() twice on the
> same object ; in newer versions, you should either clone the
> object before finding, ; or use a new instance. ; This is
> defaulted to OFF (eg. 0), however, if your code relies on
> this ; 'feature' you should turn it on. - It will be removed
> when DataObject ; goes to version 2 (one day) ; DO NOT USE
> THIS IN NEW CODE... depreciated_allow_multifind = 1
>
>
> is the simplest way to handle this..
> A) it will default to OFF, so new programs will not have the
> same error.
> B) old applications can be made to work in the same way, with a very
> small change.