Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33801 invoked from network); 12 Apr 2013 09:18:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2013 09:18:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:45418] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/B4-05511-A41D7615 for ; Fri, 12 Apr 2013 05:18:02 -0400 Received: by mail-ie0-f170.google.com with SMTP id c11so3114298ieb.1 for ; Fri, 12 Apr 2013 02:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=jfm4brtSVAc00roTTkeOH6uIecB0EwgeeRYRRJjOOpI=; b=YDDMd3xEcnJF8sSAevSdpwrVG36gcnh+5RXXnhuk9P5ayZwQNypLQBGq0knSc4XGPB yB38Nk6MapU/PYMTQh5QZuVpmO2OAWAETNxPGMjJQtUdjybxLaVM5gy/Ih8TRyOgVVUC oBOecUhuA0OFsbDUVpKz8Ewkjciy3ea14Ze4Vg6C/o+U+boPPIVwl58cY+/CaSYIcC8E m0hcGEnwMgDmpIlrx7M64BgqDcwqG+8tzvMf6lY/4bUKXGBslFwIca3W63EFNEFKx+SB olZV28zrG5ZyGDcN6H2JkiQerDbtFZPz6vx3ODsD8fWyvT840hnjCm/Nqd8ALi3SwTw5 wkuA== MIME-Version: 1.0 X-Received: by 10.50.78.37 with SMTP id y5mr1264705igw.43.1365758279826; Fri, 12 Apr 2013 02:17:59 -0700 (PDT) Received: by 10.50.66.207 with HTTP; Fri, 12 Apr 2013 02:17:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Apr 2013 11:17:59 +0200 Message-ID: To: Julien Pauli Cc: Dmitry Stogov , Pierre Joye , PHP Internals Content-Type: multipart/alternative; boundary=089e011838ea1e47a604da266193 Subject: Re: [PHP-DEV] Extension loading improvements From: tyra3l@gmail.com (Ferenc Kovacs) --089e011838ea1e47a604da266193 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 12, 2013 at 10:53 AM, Julien Pauli wrote: > On Wed, Apr 10, 2013 at 7:14 PM, Dmitry Stogov wrote: > > > Hi, > > > > 1) I didn't get why do we need fprintf("Loaded/Unloaded extension"). > It'll > > break all the tests in DEBUG mode > > > > 2) zend_error() may work through SAPI handler (e.g. for FastCGI sapi it > > may try to send error message to WebServer while request context is not > > initialized yet). I think it must work now, but should be double checke= d. > > > > > After several tests on CLI and CGI, I see no bug, but starting cgi makes > the error message being printed twice : > > */tmp/bin/php-cgi -dzend_extension=3Dfoo.so -dtrack_errors=3D1* > *PHP Warning: /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so > doesn't appear to be a valid Zend Engine extension* > * in Unknown on line 0* > *Unknown(0) : Warning - > /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so doesn't appear to b= e > a valid Zend Engine extension* > * > * > *PHP Warning: /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so appe= ar > to be a PHP extension, try to load it using extension=3Dfoo.so* > * in Unknown on line 0* > *Unknown(0) : Warning - > /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so appear to be a PHP > extension, try to load it using extension=3Dfoo.so* > * > * > Julien.Pauli > I would guess that both log_errors and display_errors is enabled and the error_log is set to STDERR or STDOUT --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --089e011838ea1e47a604da266193--