php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11511 _array_init and other functions are inlined
Submitted: 2001-06-15 20:59 UTC Modified: 2001-07-16 10:14 UTC
From: egbert at centropolisfx dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: IRIX 6.5.11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: egbert at centropolisfx dot com
New email:
PHP Version: OS:

 

 [2001-06-15 20:59 UTC] egbert at centropolisfx dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-16 12:02 UTC] sniper@php.net
Reclassified as this is problem with Zend engine.

 [2001-06-16 12:34 UTC] 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-18 14:38 UTC] egbert at centropolisfx dot 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-07-16 10:14 UTC] zeev@php.net
The inline issue has been fixed in the CVS.
 [2002-01-17 00:10 UTC] sgiman at sohu dot com
I can not use php in irix6.5.11
 [2002-01-17 00:12 UTC] sgiman at sohu dot com
I can not browse php file of irix6.5.11 netscape.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC