# Fix requested for C++ compatibility

- Thread: https://externals.io/message/9604
- Original archive: https://news-web.php.net/php.internals/9604
- Started by Mark Spruiell on 2004-04-28T18:23:26+00:00
- Messages: 2
- 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

---

## #9604 — Mark Spruiell — 2004-04-28T18:23:26+00:00

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

I'd like to thank whoever fixed Zend/zend_interfaces.h in RC2 so
that it avoids a "duplicate symbol" link error when building PHP with
a C++ compiler. However, a similar issue was introduced in RC2 in
Zend/zend_exceptions.h:

ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC);

It would be great if someone could prepend "extern" to the above line.

Thanks,
- Mark

---

## #9605 — Marcus Boerger — 2004-04-28T19:21:18+00:00

URL: https://externals.io/message/9604#9605 · In reply to: #9604

Hello Mark,

Wednesday, April 28, 2004, 8:23:26 PM, you wrote:

> ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC);

> It would be great if someone could prepend "extern" to the above line.

done
-- 
Best regards,
 Marcus                            mailto:helly@php.net
