[PHP] compile vraagstukje (mm)

Pagina: 1
Acties:

  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
omdat ik deze topic ook op zend heb geopend meteen maar even hiernatoe gecutnpeest (vanwege dat daar maar 4 topics per dag lopen), is dus in engels. (hoezo crosspost :P )

i compiled php4.0.6 with mm and apache 1.3.23,
and all is well,

however, i just tried compiling php4.1.1 with exactly the same configure line as i did for php4.0.6 and make fails with:
"error mm is not thread-safe"

so i looked around for an answer and found this in the bugdb: http://www.zend.com/lists/php-dev/200111/msg02516.html

this says that mm wont work with a threaded webserver.

i still don't get it,
im using exactly the same apache version with php4.0.6 which seems to be running fine with mm.

so the only thing different in this case is the php version.

who can explain this to me?

my configure line for php4.0.6:
---------------------------------
./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap --with-mysql --enable-track-vars --with-openssl=/usr/local/ssl --enable-sysvsem --enable-sysvshm --enable-sockets --with-mm=/usr/local/mm-1.1.3 --with-xml --with-zlib --with-java=/usr/local/j2sdk1.4.0
--------------------------------

my configure line for php4.1.1:
--------------------------------
./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap --with-mysql --enable-track-vars --with-openssl=/usr/local/ssl --enable-sysvsem --enable-sysvshm --enable-sockets --with-mm=/usr/local/mm-1.1.3 --with-xml --with-zlib --with-java=/usr/local/j2sdk1.4.0 --with-servlet
-------------------------------

(note:
i couldnt use the --with-servlet option for php4.0.6 since this generates an error:
--------------------------
/usr/include/g++-2/stdiostream.h:65: previous definition here
zend_language_scanner_cc.cc: In function `int open_file_for_scanning(struct zend_file_handle *, struct zend_compiler_globals *D':
zend_language_scanner_cc.cc:2903: type `istream' is not a base type for type `istdiostream'
zend_language_scanner_cc.cc:2914: type `istream' is not a base type for type `istdiostream'
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/usr/home/gilles/php-4.0.6/Zend'
make: *** [all-recursive] Error 1
---------------------------
)

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • Soultaker
  • Registratie: September 2000
  • Laatst online: 13:13
In principe moet het kunnen, aangezien Apache 1.3.x niet van multithreading gebruik maakt. Het zou kunnen dat PHP zelf meerdere threads aanmaakt, maar aangezien daar in de taal geen constructies voor bestaan, geloof ik van niet.

Sloop gewoon het regeltje waarop 'ie vast loopt uit je configure script en kijk of 'ie naar wens werkt. Ik neem aan dat je geen gegarandeerd stabiele installatie nodig hebt, dus heb je niets te verliezen. Als het niet (goed) blijkt te werken kun je altijd nog op zoek gaan naar een andere oplossing.

Wel netjes dat je 't ook even aan de mensen van Zend laat weten, trouwens.