Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69909 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15114 invoked from network); 28 Oct 2013 10:51:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2013 10:51:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.128.170 mail-ve0-f170.google.com Received: from [209.85.128.170] ([209.85.128.170:39509] helo=mail-ve0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/03-22054-0B14E625 for ; Mon, 28 Oct 2013 05:51:28 -0500 Received: by mail-ve0-f170.google.com with SMTP id oy12so2743389veb.29 for ; Mon, 28 Oct 2013 03:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=xUfNoM/Im94Bubk2OWR9U56ZyrZUiqYh78jMv/75vnU=; b=YBw5NWDT5qCXIFQAAjnx/FKN2fbuvTZnoyon/GNFTU59lycOAQjBJ60ViIRF/XrqNY 2qyz2hdb6xSWcjMw2fD+zfHZDSWBzGBeR1T/BlI13/pnAewRdA8KSrBx+ihwUcckZxI+ vR07tXXmvKaEtriJTp9E1RlEXg/yHJBiZqW9brY5XnWobEDbUzJXs0Ueqq00H94cqvOB ZpkaCqVA11ZtSa/pueuFqsCcHfm+CtnGIpp6nloaReLtR5kKy+W6cMa+LxX4qZj0BXp+ Gkg603OukJvjlHRggbarYns97cVeYN7mIb6/84tnZA9O/lhu+sQ4ppcWGEv89cAHe8kH e9UA== X-Received: by 10.52.98.99 with SMTP id eh3mr891852vdb.29.1382957485744; Mon, 28 Oct 2013 03:51:25 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.73.197 with HTTP; Mon, 28 Oct 2013 03:50:45 -0700 (PDT) In-Reply-To: <526CAF56.70908@pthreads.org> References: <3E.D7.40084.12BBA625@pb1.pair.com> <526B554F.1020606@pthreads.org> <526CAF56.70908@pthreads.org> Date: Mon, 28 Oct 2013 11:50:45 +0100 X-Google-Sender-Auth: IleqOy2hOckFsYB8WzVsRHH_sNU Message-ID: To: Joe Watkins Cc: Yasuo Ohgaki , PHP Internals Content-Type: multipart/alternative; boundary=20cf307f3888ad67b704e9cae137 Subject: Re: [PHP-DEV] error_log binary unsafe From: jpauli@php.net (Julien Pauli) --20cf307f3888ad67b704e9cae137 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 27, 2013 at 7:14 AM, Joe Watkins wrote: > On 10/26/2013 11:54 PM, Yasuo Ohgaki wrote: > >> Hi Joe, >> >> On Sun, Oct 27, 2013 at 7:48 AM, Yasuo Ohgaki > yohgaki@ohgaki.net>> wrote: >> >> On Sat, Oct 26, 2013 at 2:38 PM, Joe Watkins >> >> **> wrote: >> >> Mail is not yet handled, TCP/IP is not supported any more, >> streams are binary safe. >> The SAPI and default error logging mechanism are all that >> require attention. >> >> The patch is not final and doesn't include a fix for every >> implementation of SAPI. >> >> I don't see the need for confusion ?? >> >> >> Generally speaking, I'm not against making functions/features >> binary safe. >> >> There are many implementations of syslog/SAPI and not sure if it >> is good for all. >> It could cause BC issue also. For example, application like OSSEC >> HIDS detects >> possible intrusion by analyzing logs. Patching SAPI may break >> these applications. >> >> I'm not against applying your patch to master, but it's not for >> released versions. >> We needs UPGRADE note if the patch is applied. >> >> >> I think it's good for master. >> Do you have commit karma? >> If not, I'm willing to merge your patch unless there are not objections. >> >> Regards, >> >> -- >> Yasuo Ohgaki >> yohgaki@ohgaki.net >> > > I don't have karma ... > > There are lots of SAPI's, but this patch wasn't meant to implement them > all, only to provide a route whereby they can implement binary safe > log_message in the shape of log_message_ex. > > The patch implements binsafe log for cli and cgi, do we need to implement > any more ?? > Joe: Why do you use strlen() ? This leads to the same not binary safe string, am I wrong ?? https://github.com/krakjoe/php-src/commit/be5f38ddd449c20230c042aef9757efb2ee08188#diff-1a9cfc6173e3a434387996e46086da56R610 Julien Pauli --20cf307f3888ad67b704e9cae137--