Reply to Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT

Your name:

Reply:


Posted by Richard Lynch on 02/17/05 20:36

Steve wrote:
>
> Well, but I don't use multithreading? PHP is running as CLI exec, not
> compiled into Apache...
>
> That's my configure command:
> ./configure --enable-pcntl --with-curl --with-mysql
>
> Or do I have to care for thread safety anyway?

For all I know (not much) --enable-pcntl may imply that you are doing
multi-threading... Doesn't it kind of have to? I mean, isn't that what
pcntl *DOES*? Allow you to 'fork' a new process, which has its own
separate thread, by definition? Or maybe processes and threads are
different enough that you're okay on this one...

If so, you have to re-compile cURL and MySQL with multi-threading turned
on as well, at least as I understand the Google answers.

Or maybe you turned on multi-threading with cURL and MySQL when you
compiled them for Apache, but now you need that *OFF* to work with your
non-thread CLI PHP binary.

Maybe there's a command line tool to ask a ".so" file if it's threaded or
not? Maybe even just 'file foo.so' will tell you???

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация