ID:               36208
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hb at gentoo dot x256 dot org
-Status:           Feedback
+Status:           Closed
 Bug Type:         Dynamic loading
 Operating System: Gentoo Linux x86
 PHP Version:      5.1.2
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks a lot for the patch Jakub, committed to HEAD/5.1.


Previous Comments:
------------------------------------------------------------------------

[2006-02-01 13:16:44] jakub at gentoo dot org

patch for 5.0.5:
http://bugs.gentoo.org/attachment.cgi?id=78638

patch for 5.1.2, adding 6 additional compatibility symbols exported by
libgd:
http://bugs.gentoo.org/attachment.cgi?id=78639&action=view

Reference Gentoo bug:
http://bugs.gentoo.org/show_bug.cgi?id=120908

Should be backported to 4.4.x as well, but that's really upstream job.
;)

------------------------------------------------------------------------

[2006-02-01 12:05:33] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2006-02-01 11:05:01] hb at gentoo dot x256 dot org

Sorry, as I said, I spent over a day tracking down this problem. I
submitted a bug report to Gentoo and they told me it was not their
problem and that it should be fixed in PHP, which seemed somewhat
reasonable. Then I was told that it had to be configured differently,
which would require a change in Gentoo, but this problem would remain
in other distributions. I just want to fix it so that other people
don't have to go through what I did. I will try to make a patch.

------------------------------------------------------------------------

[2006-02-01 09:16:40] [EMAIL PROTECTED]

There is no need to use this kind of language, it will not make us help
you faster. That said, we actually do namespace protect those symbols in
there by prefixing them with php_gd_. It seems however that some of them
are not added yet, see the file main/php_compat.h. Feel free to submit a
patch for that file.

------------------------------------------------------------------------

[2006-02-01 05:33:10] hb at gentoo dot x256 dot org

This is a problem with PHP. You can't just tell me to compile it
differently because in the real world, when actual users compile and
install perl and PHP, they won't know this. There's no warning that I
ever saw that tells me not to do this, and then my programs randomly
crash, and I spent a whole day trying to work out why. This WILL happen
to other people unless you fix YOUR bug, which is exporting non-standard
GD symbols with standard names into the dynamic linker namespace. They
should be renamed or hidden or set to a different version so they won't
collide with the real GD.

I guess if you're unwilling to fix it I'll have to get the Gentoo
people to either patch PHP or change the portage system so it won't
install PHP and mod_perl simultaneously with USE=gd. However, this has
the possibility of biting people in other circumstances too. I can't
understand why you say it's not your problem. You shouldn't export
symbols willy-nilly especially when you modify them from the library
you pulled them from originally and don't rename them.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/36208

-- 
Edit this bug report at http://bugs.php.net/?id=36208&edit=1

Reply via email to