PHP 4.0 Bug #3396: Precompiler collapses with threading enabled
| From: | jb at tbc dot sub dot de | Date: | Thu, 03 Feb 2000 21:34:35 +0000 |
| Subject: | PHP 4.0 Bug #3396: Precompiler collapses with threading enabled | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15177@lists.php.net to get a copy of this message | ||
From: jb@tbc.sub.de
Operating system: Linux libc5 gcc2.8.1
PHP version: 4.0 Beta 3
PHP Bug Type: Compile Failure
Bug description: Precompiler collapses with threading enabled
it seems, that the cpp of gcc2.8.1 can't work with all the
back-references in zend.h or php_globals.h. the compilation
breaks at libzend/zend-parser.c with an error, calling a
macro with too few arguments. an analysis shows, that the
macro is CHECK_MEMORY_LIMIT() and the definiton of
_CHECK_MEMORY_LIMIT(s ZEND_FILE_LINE_RELAY_CC) never is resolved.
only the direct entry (s, , __zend_filename, __zend_lineno)
makes it compile. next problem occures with dbase.c and
filepro.c which errors out because of undefined var "core_globals",
which seems to be declared within macros of php_globals.h
I don't know, if this is an error of cpp 2.8.1 or the definition
itself, which looks okay for me, but it should be checked
out and documented.
with threading disabled these errors doesn't occure.