Re: AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters)
| From: | Melvyn Sopacua | Date: | Mon, 15 Sep 2003 15:31:08 +0000 |
| Subject: | Re: AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4491@lists.php.net to get a copy of this message | ||
On Monday 15 September 2003 16:30, ashish b\\ wrote:
> 1. ran the ext_skel command i.e. ext_skel --extname=rot13 --proto=rot13.def
> 2. with rot13 as current folder I ran phpize for creating a self contained
> extension. 3. /usr/local/php-4.3.2/ext/rot13> ./configure
> 4. /usr/local/php-4.3.2/ext/rot13> make
> 5. /usr/local/php-4.3.2/ext/rot13> make install
> 6. librot13.a is generated.
> 7. when I do a ldd ./librot13.a i get error as
> exec(): 0509-036 Cannot load program ./librot13.a. because of the
> following errors: 0509-022 Cannot load module ./librot13.a.
> 0509-103 The module has an invalid magic number.
> 8. so I used the library rot13.so.0 and got the core dump at
> zend_parse_parameters. It seems my extension is not getting the reference
> to zend_parse_parameters function in php.The same thing runs withou any
> problem on Linux as well as Windows.
What's the output of:
dump -h rot13.so.0
Does it work, when using the 'non-phpize' approach - ie: compile the extension
into php itself. See README.EXT_SKEL for details.
--
Melvyn