Re: [fw-general] ZF performance advice

2007-10-11 Thread Matthew Weier O'Phinney
-- Dennis Fogg <[EMAIL PROTECTED]> wrote (on Thursday, 11 October 2007, 06:36 PM -0700): > > I completed the basic structure of my ZF infrastructure > and noticed that it seemed quite slow. > So, I did some performance profiling and used some > performance tools only to find that ZF is pretty slo

Re: [fw-general] ZF performance advice

2007-10-11 Thread Dennis Fogg
Hi Parnell, Thanks for the performance tips and references! Yes, I am loading a number of my own files in unoptimized ways. But my profiling tells me that it does not matter (at this point anyway) since the times are dominated by ZF code. Yeah, I did notice a blip in Zend_log also. I noticed

Re: [fw-general] ZF performance advice

2007-10-11 Thread Dennis Fogg
Hi Mike, Thanks for your quick reply. I'm using Apache 2.2.4 and I just tried out your MS Windows conjecture by trying: which generally returns the page in .004 sec (4 ms) with a few spikes that take longer. So it seems that my PHP stack on Windows is plenty fast and is not the problem. ZF o

Re: [fw-general] ZF performance advice

2007-10-11 Thread Parnell
It depends alot on how you are loading those modules too. I try to use a load on request for the less used classes (using autoload) and load the heavily used classes in the bootstrap so they are available to the entire app. Major speed improvements when I use static methods in my own classes inste

Re: [fw-general] ZF performance advice

2007-10-11 Thread Michael B Allen
On 10/11/07, Dennis Fogg <[EMAIL PROTECTED]> wrote: > > I completed the basic structure of my ZF infrastructure > and noticed that it seemed quite slow. > Over 20+ runs, I got the following data: > > .57 sec (44%) for db connection even though it's persistent connection > .26 sec (20%) for Zend_Co

Re: [fw-general] Multiple Auth Logins

2007-10-11 Thread Todd Wolaver
Mike, thanks for the reply. I've come up with something that works for my situation, but it involves extending the Zend_Auth singleton class (which I know probably isn't the best way to do things). I do want to use Zend_Auth since I'm looking for the storage, which was the oversight in my

Re: [fw-general] Multiple Auth Logins

2007-10-11 Thread Michael B Allen
On 10/11/07, Todd Wolaver <[EMAIL PROTECTED]> wrote: > Hello, > > I have implemented Zend_Auth for admin users to login and I'm > checking authentication and ACLs in a preDispatch plugin. > > Now I need to authenticate a different type of user which has nothing > to do with the admins and uses a to

[fw-general] ZF performance advice

2007-10-11 Thread Dennis Fogg
I completed the basic structure of my ZF infrastructure and noticed that it seemed quite slow. So, I did some performance profiling and used some performance tools only to find that ZF is pretty slow for me: a blank page takes 1.3 sec to load. I'm pretty new to performance tuning so I'm seeking a

[fw-general] Multiple Auth Logins

2007-10-11 Thread Todd Wolaver
Hello, I have implemented Zend_Auth for admin users to login and I'm checking authentication and ACLs in a preDispatch plugin. Now I need to authenticate a different type of user which has nothing to do with the admins and uses a totally different storage engine and auth adapter. I'm tr

Re: [fw-general] Wiki down...

2007-10-11 Thread Thomas Weidner
class Happy_Community { function Zend_Framework_WikiandJira { $server = $this->getActualServer(); for ($X = 1; $X < maxInvestment; ++$X) { $serverfarm[$X] = clone($server); } return $serverfarm; // <-- here's your problem... instead of serverfarm u use

RE: [fw-general] Wiki down...

2007-10-11 Thread Wil Sinclair
Sorry for the renewed instability, guys. Basically, we seem to have a thrashing problem that I can mostly prevent by making more resources available to the apps and database, but only to the limits of the hardware resources- at some point either the java apps or the database get overloaded in one w

[fw-general] Re: [fw-webservices] ZF-2019 - Http_Client->setHeaders() in non-strict mode

2007-10-11 Thread Eric Coleman
When me and Kevin talked about it on #zftalk, we both came to a similar solution. We thought it should be up to us to do the validation on the headers ourselves.. (Or, provide a method that can do it...). In the end, I think it's a better solution to just make the following changes: -

Re: [fw-general] Zebd_Session bugs me :(

2007-10-11 Thread Kevin McArthur
Check your php version. Zend_Session is incompatible with php v = 5.2.0 - Original Message - From: ViShap To: Zend Framework General Sent: Thursday, October 11, 2007 10:13 AM Subject: [fw-general] Zebd_Session bugs me :( Hi all readers! Following code: $sez = new Zen

[fw-general] Zebd_Session bugs me :(

2007-10-11 Thread ViShap
Hi all readers! Following code: $sez = new Zend_Session_Namespace('rex'); $x = $sez->ass; $aff = (int) rand(1,20); echo 'new: '. $aff .' - old: '. $x; $sez->unlock(); $sez->ass = $aff; $sez->lock(); Now i expect to happen that when reloading the page: new 1 old 4 new 5 old 1 new 7 old 5 new .

[fw-general] ZF-2019 - Http_Client->setHeaders() in non-strict mode

2007-10-11 Thread Shahar Evron
Currently we throw exceptions when non-RFC-compliant HTTP headers are passed to the setHeaders() method. Following ZF-2019 I did some thinking, and it seems there is a good reason to allow a non-strict mode in which users could add their own headers. What I propose doing is one of the following:

[fw-general] Wiki down...

2007-10-11 Thread Tobias Gies
...yet again. C'mon, give it a kick in the butt please.

[fw-general] Zend_Bittorrent proposal

2007-10-11 Thread Christer Edvartsen
Just made a proposal to a Zend_Bittorrent component that can be used for decoding bittorrent encoded data (such as .torrent files) and encode encodable PHP variables into their bittorrent counterparts. The proposal can be found at http://framework.zend.com/wiki/display/ZFPROP/Zend_Bittorrent+-+Chr

Re: [fw-general] nested foreach

2007-10-11 Thread Matthew Weier O'Phinney
-- Waigani <[EMAIL PROTECTED]> wrote (on Thursday, 11 October 2007, 01:57 AM -0700): > Here is how I will do it: Generate the array keys as a string and then eval > the whole thing. eval() is almost never the right answer; it's both a performance hit and a security risk. Variable variables are ea

Re: [fw-general] Autoload errors

2007-10-11 Thread Ian Warner
Ok on further reading the SPL is compiled by default, but the classes provided by my default installation are below: which seem to miss of the autoload functions - spl_autoload_call as listed in full here - http://uk2.php.net/spl SPL tells me to add the inc to a prepend which I did then it st

[fw-general] Remote debugging PHP with ZendDebugger, no headers/Images??

2007-10-11 Thread Adz07
I have just finished installing: Eclipse PDT PHP 5.2.4 Apache 2.2.6 Zend Server Debugging When I was debugging locally the debug output would show the reurned headers eg.: X-Powered-By: PHP/5.2.0 .. Content-Type: text/html Since switching to remote debugging I have two quieries: 1. I am

[fw-general] Autoload errors

2007-10-11 Thread Ian Warner
Before I was using: function __autoload($class) { Zend_Loader::loadClass($class); } Now it seems I need the SPL extension installed - I cant seem to find any instructions on how to install this, I thought it was a PECL download? So this doesnt work Zend_Loader::registerAutoload() Bit co

Re: [fw-general] nested foreach

2007-10-11 Thread Waigani
Here is how I will do it: Generate the array keys as a string and then eval the whole thing. Waigani wrote: > > Hi All, > > In the following script, how could I dynamically nest one key inside > another to generate: > > $menu["tutorials"]["php"]["Language"]="#"; > > I'm thinking of somethin

Re: [fw-general] nested foreach

2007-10-11 Thread Waigani
Hi All, In the following script, how could I dynamically nest one key inside another to generate: $menu["tutorials"]["php"]["Language"]="#"; I'm thinking of something like variable variables, but they don't seem to work with array keys - unless I'm doing it wrong. here is the script: $link)