472,127 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

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
0 1490

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 | last post: by
3 posts views Thread by news | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.