Re: [PHP4BETA] Re: convert_to_string_ex is not the solution.
| From: | Thies C. Arntzen | Date: | Fri, 17 Sep 1999 16:36:30 +0000 |
| Subject: | Re: [PHP4BETA] Re: convert_to_string_ex is not the solution. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4586@lists.php.net to get a copy of this message | ||
On Fri, 17 Sep 1999, Joey wrote:
> >
> > i know a few people - including myself - who add a '&' here and there in
> > my scripts to speed things up. and yes, i've got bitten by funtions that
> > changed variable-types around without me expecting them to do so.
> >
> >
>
> If you _DO_ decide to change this behavior, it should definitely go into
> the incompat list. I have actually used this as an undocumented feature...
> by calling strlen() on something passed by ref., I programmed some thing
> to then expect a str.
debugging code written that way must be an adventure! really, if we
decide to keep it or not - you should never depend on such undocumneted
things. so you're saying that you're using strlen as
"convert_to_string_and_return_size()" ? whoaaaa...
there are minor incompatible things in 3<->4 (as noted) - but if your code
depends on this kind of stuff you'll have a hard time going to 4.0.
hmmm,
tc
>
> I agree, it should _NOT_ have been happening, but bcz it did, I programmed
> around it...perhaps others did also...
>
>
> --
> PHP 4 Beta
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany