Hi DaliborKarlovic,

Well my aim is to save as much as possible, and in my opinion caching is not an option either. My idea is put everything in INI file but the first request generates the php file with array configuration and there after all other requests are served from php file. I can modifiy the INI file and then delete the php and it will get regenerated the next request. But again as suggested by Matt himself doing so would not have massive effect, but from my findings using Xdebug I can save up to 400 method call by just doing that. I will need to check the difference on production server and adjust accordingly, once I have completed the project.

Thanks
Ali
--------------------------------------------------
From: "DaliborKarlovic" <[email protected]>
Sent: Tuesday, July 14, 2009 8:30 AM
To: <[email protected]>
Subject: Re: [fw-general] Fw: $request->getParams() returns escaped data

On Tuesday 14 July 2009 06:03:26 Matthew Weier O'Phinney wrote:
-- Muhammad Ali <[email protected]> wrote

(on Monday, 13 July 2009, 09:16 PM +0100):
> An other quick question for the mailing list, does using Zend_Config as
> Array rather as INI files improves performance, is it worth doing?

Using native arrays will of course be faster to parse than INI or XML.
That said, it's likely to have negligible effect on your application
performance. Profile your application using XDebug or Zend Debugger to
find the real bottlenecks.

He can always use INI and cache the resulting config object. Zend_Application
should support that out-of-the-box.


> --------------------------------------------------
> From: "Bradley Holt" <[email protected]>
> Sent: Monday, July 13, 2009 8:53 PM
> To: "Muhammad Ali" <[email protected]>
> Cc: <[email protected]>
> Subject: Re: [fw-general] Fw: $request->getParams() returns escaped > data
>
>> This isn't Zend Framework -- it sounds like you have magic quotes
>> turned on. These should be disabled[1] when using Zend Framework.
>>
>> [1] http://us3.php.net/manual/en/security.magicquotes.disabling.php
>>
>> On Mon, Jul 13, 2009 at 3:44 PM, Muhammad Ali<[email protected]> >> wrote:
>>> Hi
>>>
>>> Just wanted to check if escaping for $request->getParams() can be
>>> turned off
>>> e.g. single quote( ' ) is replaced by ( \' ). I have tried it before
>>> calling
>>> any other methods but still the same, is there any helper or plugin I
>>> need
>>> to set options for?
>>>
>>> If it is a default, why I should create a filter to strip slashes >>> while
>>> printing values where as if i can not put them as the first place.
>>>
>>> Thanks
>>
>> --
>> Bradley Holt
>> [email protected]

--
Dado

Reply via email to