Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15638 invoked from network); 30 Aug 2009 21:06:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2009 21:06:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.155 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:28632] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/E8-56114-8C9EA9A4 for ; Sun, 30 Aug 2009 17:06:17 -0400 Received: by fg-out-1718.google.com with SMTP id l26so334927fgb.11 for ; Sun, 30 Aug 2009 14:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1WgI/hfOLsYk8uNmRQHvHHlaCz/yHsATd749EuPuYqY=; b=BOwulV4POC82Ztc4P9L+31rWjWhOlQVSxC6EZzs5A9c9cRvSa4LGKmVKoYmx4kIH9O 975w6Fm91v5Wdsb33KEDb1HjDD70zbLYksH6NdUNQyKodY3fKFSLBKkplbWVPCkpKzjW UmMqi3Mnqrt2KWcxYCqijIxYZxrki0/tjc4b8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RXbWuJouO6BFkNZhT2BF+Ur+01NcbcHpFVFiJfc8r71D9XajoJKNjCWoqmYerWSMoM WEylg7w+/vujCCNJ7kLY8ntjqTCiylROxvGu8y3bnSt55y7N3sd/dHkmlsGIMPRHvgFX gUsGgf/E+qF6DwvzsgJJSfjswWO7GbfcahJ4g= MIME-Version: 1.0 Received: by 10.86.170.22 with SMTP id s22mr805486fge.37.1251666370019; Sun, 30 Aug 2009 14:06:10 -0700 (PDT) Date: Sun, 30 Aug 2009 23:06:10 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: silent startup errors msg about deprecated (or other) warnings From: pierre.php@gmail.com (Pierre Joye) Hi, While trying to fix some tests, I found that display_startup_errors is ignored by some startup errors like deprecated ini settings. Using: php -d display_startup_errors=0 -d safe_mode=1 foo.php a deprecated warning will be reaised. I think it is not the expected behavior and consider that as a bug. The problem is that we try to log the message and if not log backed are available, we fall back to the sapi's log_message. In case of CLI, it is a simple fprintf to STDERR. This simple patch should fix the problem http://pastie.org/599790. Any objection to the idea? I can adapt it to the other SAPI if necessary as well as update the affected tests (like putenv_err1.phpt). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org