Re: Re: Stumped! 4.x to 5.1 problem!!
| From: | Jochem Maas | Date: | Mon, 24 Jul 2006 14:11:39 +0000 |
| Subject: | Re: Re: Stumped! 4.x to 5.1 problem!! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239727@lists.php.net to get a copy of this message | ||
Mark wrote:
> Mark wrote:
>
>> I have an extension that seems to create PHP variables correctly, and
>> var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it
>> fails.
>>
>> Anyone have a suggestion?
>
> Well, it is fixed. Evidently, PHP 5.1 sees a difference between $var["0"]
> and $var[0]. It never did before.
a quick test on 5.1.1 shows this not to be the case
(at least at the userland level):
# php -v
PHP 5.1.1 (cli) (built: Jan 18 2006 17:41:38)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
# php -r '$r = array();$r[0] =
"test";var_dump($r[0],$r["0"]);$r["0"] =
"test2";var_dump($r[0],$r["0"]);'
string(4) "test"
string(4) "test"
string(5) "test2"
string(5) "test2"
seems the perceived problem is being caused by something else?
>
> BTW: this behavior is almost certainly in wddx.
>