467,135 Members | 1,199 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,135 developers. It's quick & easy.

Crash in PHP 4.3.11 after an extension function ( gcc 4 on Fedora Core 4)

I have an extension in C++, which I compile as a module for php 4.3.11.
I am using PHP 4.3.11 on Fedora Core 4, which has gcc 4 instead of gcc
3.2.

Fedora Core 4 normally comes with PHP 5, but I removed it and installed
PHP 4.3.11 from source, so that I didn't have to figure out problems I
had with my extension and php 5.

After a number of calls to my extension, there is one call to function
(which has been called before) in which the code exits my function, and
then crashes inside PHP shortly thereafter. The seg fault is in
php-4.3.11/Zend/zend_execute.c on line 1658, which reads:

EG(current_execute_data) = &execute_data;

The extension function it is returning from returns a long, not some
fancy php object or reference.

I don't know if anyone on this forum will have any ideas, but if you
have any thoughts at all please offer them.

I am thinking that this might be a result of php being compiled with
gcc4, and the new gcc 4 does something different and exposes some bug
in PHP ? Has anyone seen problems running PHP 4 compiled with gcc 4 ?

Any thoughts at all are appreciated.

--Rob

Jul 17 '05 #1
  • viewed: 1318
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by linuxfreak | last post: by
1 post views Thread by Boris Popov | last post: by
4 posts views Thread by Philip Wright | last post: by
4 posts views Thread by silverburgh.meryl@gmail.com | last post: by
3 posts views Thread by news@celticbear.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.