RE: [PHP] semaphores are broken

2011-05-08 Thread Jeremy Greene
This is on a simple-ish embedded system. And yes, I did see the code -- that's when I kind of choked :) And, yes, I did implement the interrupt handler, but liked the design that it would just set a sem that the main loop can wait for. But that means that the main loop is waiting on a sem that will

Re: [PHP] semaphores are broken

2011-05-08 Thread Rasmus Lerdorf
On Fri, May 6, 2011 at 12:57 PM, Jeremy Greene wrote: > Then I find out that sem_acquire() actually returns **OK** when the > underlying semop call gets an EINTR!!! Holy cow. How can a "php system" > call loose an error?! That's just crazy. Generally you don't care about an EINTR on a semop()

Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Eli Orr (Office)
Thanks. Great! It works so well ! On 08/05/2011 15:01, Peter Lind wrote: On May 8, 2011 1:57 PM, "Eli Orr (Office)" wrote: Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a servi

Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Peter Lind
On May 8, 2011 1:57 PM, "Eli Orr (Office)" wrote: > > > Dear PHP Gurus, > > I need dump a $_POST parameters as part of debug process with a client. > Any know service to make this ? > > I know $_POST is an Array but I look for a service function that can save the parsed array into a file. > let s

[PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Eli Orr (Office)
Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a service function that can save the parsed array into a file. let say : $stt = save_POST_into_file ($_POST, $fp); Any idea ?