Re: Can't use php_error_docref in zend_API.c?
| From: | Andrea Faulds | Date: | Thu, 14 Aug 2014 02:39:20 +0000 |
| Subject: | Re: Can't use php_error_docref in zend_API.c? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76504@lists.php.net to get a copy of this message | ||
On 14 Aug 2014, at 03:13, Aaron Lewis <the.warl0ck.1989@gmail.com> wrote:
> I'm trying to print error messages in zend, so I add a function in
> zend_API.{h,c}
>
> Then I got and error:
> /Zend/zend_API.c:3226: undefined reference to `php_error_docref
>
> So, what's the appropriate function to use?
zend_error_docref doesn’t exist, I believe the convention is to use zend_error (of which php_error
is an alias).
Also, you ought to consider going to IRC (I like irc://irc.efnet.org/#php.pecl myself) or somewhere
with these sorts of small, quickly answerable questions to avoid spamming the list.
--
Andrea Faulds
http://ajf.me/