# PHP dumps core loading extension - problem solved.

- Thread: https://externals.io/message/3637
- Original archive: https://news-web.php.net/php.internals/3637
- Started by Bruce Bailey on 2003-07-29T16:59:21+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3637 — Bruce Bailey — 2003-07-29T16:59:21+00:00

URL: https://externals.io/message/3637#3637

Well I believe that I have the solution to the core dumping during the C 
library wrap-up.  If I link the top-level executable, in this case either 
/usr/bin/php or httpd with the C++ compiler as the front end to the linker, 
the segfault problem goes away.

I guess this should have been obvious . . .

Bruce

>-----Original Message-----
>From: Bruce Bailey [mailto:bruce1828@hotmail.com]
>Sent: Tuesday, July 29, 2003 9:52 AM
>To: Bruce Bailey
>Subject: PHP dumps core loading extension - more information
>
>
>A new discovery . . .
>
>I created a new extension with only one function and it calls a dso library
>that also has only one function.  So the libraries are:
>
>php --> my new extension --> my new utility library.
>
>the new utility library has only this function:
>
>int function1(void){return 456;}
>
>When I compile and link the library with C, I can run 'phpinfo();' with no
>problems.  When I use C++ to compile and link, running 'phpinfo();' core
>dumps.  Gdb reports the same backtrace as listed below.  This can't be
>right.  Outside of the php context, C and C++ co-exist perfectly.
>
>Are there some php-related configuration options that might have bearing on
>this?  What am I missing?
>
>This doesn't make any sense.
>
>Bruce
>
>
>
> > […]
>please
> > […]
>I
> > […]
>I'm
> > […]
>phpinfo()
> > […]
>works
> > […]

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
