Re: socket_select() problem
| From: | Andrei Zmievski | Date: | Tue, 05 Aug 2008 00:50:05 +0000 |
| Subject: | Re: socket_select() problem | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39647@lists.php.net to get a copy of this message | ||
Ian Eure wrote:
I wrote a simple testcase that submits a single job to Gearman. If I run it under Apache2, I get the socket_select() warning. If I run it from the CLI, I don't. I'm also pointing the CLI at the Apache2 php.ini file. At this point, I don't know how to track this any further. If I was getting the same error on the CLI, I could trace it with gdb. I don't know how I'd go about doing something like that for an Apache extension.A really quick answer to this part: If you want to trace this with gdb run Apache2, stop apache processes, then run apache under gdb like this: % sudo gdb apache2
run -XYou can set the breakpoint before "run -X" or after it finishes loading by stopping it with Ctrl-C, setting breakpoint, and cont'inuing. -X ensures that it runs only a single process. -Andrei