Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91202 invoked from network); 15 Jan 2009 22:28:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2009 22:28:02 -0000 X-Host-Fingerprint: 85.21.236.169 xdmitri.dialup.corbina.ru Received: from [85.21.236.169] ([85.21.236.169:9962] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/26-59137-F68BF694 for ; Thu, 15 Jan 2009 17:28:00 -0500 Message-ID: <42.26.59137.F68BF694@pb1.pair.com> To: internals@lists.php.net References: <496E65B2.1070106@zend.com> <8F4C9909-17F8-4D22-ADFB-655E25A198E3@pooteeweet.org> <496E75BB.3020907@zend.com> <79.50.01962.A037F694@pb1.pair.com> Date: Fri, 16 Jan 2009 01:27:55 +0300 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original X-Posted-By: 85.21.236.169 Subject: Re: [PHP-DEV] [RFC] build IDs proposal From: dmda@yandex.ru ("jvlad") > I meant "readable" :) > >> Do you mean this? >> fprintf(stderr, "%s requires Zend Engine API version %d.\n" >> "The Zend Engine API version %d which is installed, is >> outdated.\n\n", >> new_extension->name, >> First of all, php error_log may not get this message because it's thrown >> into stderr. > > It is not possible at this stage. It is possible at this stage. Just put zend_error() call and you'll see it works and calls regular php error handler. And for example ioncube (it is a known zend extension) uses this "feature". > > >> What's about server admins who will be installing the extensions? > > An admin should know that, really. I don't see any reason why would all admins learn this core "feature" of php? Why not just make it providing clearer error messages? Such error message like "BogusName requires Blah blah blah Engine Api version XYXYXYX, and Blah blah blah Engine Api version YXYXYXYX is installed, is outdated" is just insane. By seeing these two numbers XYXYXYX and YXYXYXYX, whould anybody non-involved in core php development guess that this relates to php versions? Does that "BogusName" tell anything about real module name that caused the error, despite the fact that error itself in some cases is just not visible. -jv