Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 371 invoked by uid 1010); 27 Oct 2004 16:52:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 279 invoked from network); 27 Oct 2004 16:52:04 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 27 Oct 2004 16:52:04 -0000 Received: (qmail 5901 invoked from network); 27 Oct 2004 16:52:01 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 27 Oct 2004 16:52:01 -0000 Message-ID: <5.1.0.14.2.20041027095139.02e55690@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 27 Oct 2004 09:51:52 -0700 To: Vladimir Zidar ,internals@lists.php.net In-Reply-To: <1098879262.4898.34.camel@mravojed> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] Bug fix for #29770, but for PHP 4.3.9 From: andi@zend.com (Andi Gutmans) References: <1098879262.4898.34.camel@mravojed> This patch makes sense to me. Anyone have a problem with it? Andi At 02:14 PM 10/27/2004 +0200, Vladimir Zidar wrote: > When safe_mode is set to 'on', popen() uses char buf[1024] to build > argument list. This is not good, as it truncates command line without notice. > This is NOT operating system limit - as noted on bugreport, but PHP bug. > > If anybody cares, here is fix for this bug under 4.3.9: > > http://leya.mindnever.org/~mr_w/php-popen.patch.gz > > PS, didn't have time to look at PHP 5 yet, but I suppose this fix could >work also with minor tweaks. > > >-- >Vladimir Zidar, Programmer > >MindNever Foodstuff TRDG. >Head Office Branch > >Tel: +381-63-550161, +385-98-9574261 >http://www.mindnever.org, icq: 15414204, mail: mr_W@mindnever.org > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php