# Strange issue from command line

- Thread: https://externals.io/message/21687
- Original archive: https://news-web.php.net/php.internals/21687
- Started by Marco Bambini on 2006-01-26T08:15:55+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

---

## #21687 — Marco Bambini — 2006-01-26T08:15:55+00:00

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

Hi,

I have developed a php extension for OSX (PHP 4.4) and it works fine  
under Apache.
The only issue I found is that if I execute a simple php command from  
the command line then I receive an "undefined symbol" error.
For example:

% php -r "print ini_get('extension_dir');"

dyld: lazy symbol binding failed: Symbol not found:  
_zend_register_list_destructors_ex
   Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ 
rsql.dylib
   Expected in: flat namespace

dyld: Symbol not found: _zend_register_list_destructors_ex
   Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ 
rsql.dylib
   Expected in: flat namespace

Trace/BPT trap

Why I receive a "Symbol not found:  
_zend_register_list_destructors_ex" error?
Any help?

Thanks a lot,
Marco Bambini
Italy
