Make sure it was compiled as a bundle and not as a shared library. There
is a difference. Run this:

% file <path>

And if it replies "Mach-O dynamically linked shared library ppc", it was
compiled in the wrong way. The latest updates to build system should fix
this automatically.
On Fri, 04 Feb 2005, D.Walsh wrote:
I've been having some problems building some modules or embedding the
function in PHP.

I've attempted to build several different modules and all give the same

If I build as a module, placing an 'extension=' entry in php.ini
causes a dylib error.

dyld: /usr/sbin/httpd Undefined symbols:


Without the 'extension=' entry in php.ini, placing an entry in my php
script "dl('module.so');" results in the following log entry:

[Fri Feb 4 06:12:38 2005] [error] PHP Warning: module: Unable to
register functions, unable to load in Unknown on line 0


If I use this entry in my php script, the module functions work

if (!function_exists('my_function') && @dl('module.so')) {


Is there anything specific I need to do for Mac OSX to build modules or
embed them in PHP so they work properly?

PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

- Andrei

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupphp-internals @
postedFeb 4, '05 at 11:30a
activeFeb 4, '05 at 7:20p

2 users in discussion

D . Walsh: 1 post Andrei Zmievski: 1 post



site design / logo © 2022 Grokbase