I did some looking into this yesterday. It appears to be a "bug" in
json_encode() that is getting a new option in php 5.4. Not sure if it
was backported into 5.3 or not.

http://www.php.net/manual/en/function.json-encode.php#100679
https://bugs.php.net/bug.php?id=49366

H

On Fri, Jul 15, 2011 at 6:45 AM, Bart McLeod <[email protected]> wrote:
> Hi Diogo,
>
> The best you can do is file an issue for this and upload a unit test that
> proves this is a bug. It looks like a bug to me at first sight, mostly
> because I can't think of a reason to escape a forward slash.
>
> - Bart McLeod
>
> Op 14-07-11 00:57, xpete schreef:
>>
>> I'am doing this:
>>
>> http://zend-framework-community.634137.n4.nabble.com/How-to-Zend-Dojo-Form-Dependent-Selects-e-g-Country-City-td663650.html
>>
>> and if i do this:
>> $this->view->form->getElement('subtipo')->setStoreParams(array('url' =>
>> 'http://localhost/~xpete/project/public/info/lookup/tipo/1'));
>>
>> I get this result on the generated html:
>> subtipo_id = new
>>
>> dojo.data.ItemFileReadStore({"url":"http:\/\/localhost\/~xpete\/project\/public\/info\/lookup\/tipo\/1"});
>>
>> I mean, the '\' have been replaced by '\/'.
>> There's any way i can avoid this? this is a Zend bug?
>> I tried this with Zend FW 1.11.7 1.11.8 and 1.11.9 preview.
>>
>> thx
>> Diogo
>>
>>
>> --
>> View this message in context:
>> http://zend-framework-community.634137.n4.nabble.com/slashes-being-replaced-by-maybe-a-bug-tp3666299p3666299.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to