Bug #11511 Updated: _array_init and other functions are inlined
| From: | zeev@php.net | Date: | Mon, 16 Jul 2001 14:14:14 +0000 |
| Subject: | Bug #11511 Updated: _array_init and other functions are inlined | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60098@lists.php.net to get a copy of this message | ||
ID: 11511
Updated by: zeev
Reported By: egbert@centropolisfx.com
Old Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating System: IRIX 6.5.11
PHP Version: 4.0.5
New Comment:
The inline issue has been fixed in the CVS.
Previous Comments:
------------------------------------------------------------------------
[2001-06-18 14:38:40] egbert@centropolisfx.com
On the SGI it is defined as __inline with the 7.3.1.2m compilers (the latest). Just to get it up
and running I edited the php_config.h to define it as empty.
------------------------------------------------------------------------
[2001-06-16 12:34:52] sniper@php.net
Can you please check what is in your main/php_config.h
for inline ? it should be defined as empty.
------------------------------------------------------------------------
[2001-06-16 12:02:26] sniper@php.net
Reclassified as this is problem with Zend engine.
------------------------------------------------------------------------
[2001-06-15 20:59:22] egbert@centropolisfx.com
In the file Zend/zend_API.c _array_init and some other functions are declared as inline. Within the
zend_API.h file some of the inlines are sort of "aliased" away making them non-inlined
functions.
#define array_init(arg) _array_init((arg) ZEND_FILE_LINE_CC)
#define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC)
#define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC)
ZEND_API int _array_init(zval *arg ZEND_FILE_LINE_DC);
ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC);
ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC);
Since these functions are declared inline in the zend_API.c file no global symbol is
made. These functions should be either be put in the header file or not declared as inlined. As a
result, on IRIX, php is created missing these global symbols.
I do not have a complete list of symbols as of yet. Please feel free to contact me for more
information.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11511&edit=1