From: foobar Date: Tue, 27 May 2003 17:24:09 +0000 (+0000) Subject: There is no point using php_error_docref in MINIT. X-Git-Tag: php-4.3.2RC4~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=858c75805fe042600327280402a80ca651a9fb90;p=php There is no point using php_error_docref in MINIT. --- diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index d438b5d091..abf63f4c8c 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -160,7 +160,7 @@ PHP_MINIT_FUNCTION(browscap) fh.opened_path = NULL; fh.free_filename = 0; if (!fh.handle.fp) { - php_error_docref(NULL TSRMLS_CC, E_CORE_WARNING, "Cannot open '%s' for reading", browscap); + zend_error(E_CORE_WARNING, "Cannot open '%s' for reading", browscap); return FAILURE; } fh.filename = browscap;