Re: PHP script won't run in the background

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/11/2011 11:05, Laruence wrote:
Hi:
   I mean,  do you built your php with readline support, or do you load
readline.so into PHP?

   if so, remove it, then try again.

   and you also can use:
   gdb --pid={the pid of the stopped php}

   then you will find where the php  hangs.

thanks
I didn't build PHP as it fails to make -- see https://bugs.php.net/bug.php?id=60268 so I am stuck with the PHP build provided by Apple... :(

Here's what gdb says

[rich@LeMans] (/web/scripts)> php -f test.php >test.log 2>&1 &
[1] 3513
[rich@LeMans] (/web/scripts)>
[1]+  Stopped                 php -f test.php > test.log 2>&1
[rich@LeMans] (/web/scripts)> gdb --pid 3513
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 8 20:32:45 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
/Web/scripts/3513: No such file or directory
Attaching to process 3513.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ................................................................................................................................................ done
Reading symbols for shared libraries + done
0x0000000101d057ee in __ioctl ()

Any clues? To me it looks like PHP cli is trying to do some I/O but I'm just a dumb developer... :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux