Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37186 invoked by uid 1010); 3 Nov 2007 09:34:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37171 invoked from network); 3 Nov 2007 09:34:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2007 09:34:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 213.197.162.99 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 213.197.162.99 avilys.eik.lt Linux 2.6 Received: from [213.197.162.99] ([213.197.162.99:33796] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/51-25001-CA04C274 for ; Sat, 03 Nov 2007 04:34:37 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id D766F1F514E for ; Sat, 3 Nov 2007 11:33:34 +0200 (EET) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id B4EC61F514B for ; Sat, 3 Nov 2007 11:33:34 +0200 (EET) Received: from 78.61.224.253 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Sat, 3 Nov 2007 11:33:34 +0200 (EET) Message-ID: <44562.78.61.224.253.1194082414.nsm@avilys.eik.lt> In-Reply-To: <20071102204426.E24E81F3E9A@spike.porcupine.org> References: <20071102204426.E24E81F3E9A@spike.porcupine.org> Date: Sat, 3 Nov 2007 11:33:34 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] Preliminary PHP taint support available From: tokul@users.sourceforge.net ("Tomas Kuliavas") > A preliminary implementation of PHP taint support is available from > ftp://ftp.porcupine.org/pub/php/ This code is released under version > 2.00 of the Zend license. > > Below are fragments from the README file. For the full text please see > ftp://ftp.porcupine.org/pub/php/php-5.2.3-taint-20071102.README.html > This file also has information about using taint in real applications, > about run-time performance, and about changes within the PHP core. > > Most of all, your feedback is welcome, so that I can make this code > as easy to use and as performant as possible. php-5.2.3-taint-20071102 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) compiling apache 2.2.4 dso module configure with --enable-mbstring --disable-mbregex ---- ext/mbstring/mb_gpc.c: In function 'mbstr_treat_data': ext/mbstring/mb_gpc.c:63: warning: passing argument 3 of 'php_default_treat_data' makes integer from pointer without a cast ext/mbstring/mb_gpc.c:63: error: too few arguments to function 'php_default_treat_data' ext/mbstring/mb_gpc.c: In function '_php_mb_encoding_handler_ex': ext/mbstring/mb_gpc.c:331: warning: passing argument 5 of 'sapi_module.input_filter' makes integer from pointer without a cast ext/mbstring/mb_gpc.c:331: error: too few arguments to function 'sapi_module.input_filter' make: *** [ext/mbstring/mb_gpc.lo] Error 1 ---- Without mbstring options same compilation stops at ---- sapi/apache2handler/sapi_apache2.c: In function 'php_apache_sapi_register_variables': sapi/apache2handler/sapi_apache2.c:246: warning: passing argument 5 of 'sapi_module.input_filter' makes integer from pointer without a cast sapi/apache2handler/sapi_apache2.c:246: error: too few arguments to function 'sapi_module.input_filter' sapi/apache2handler/sapi_apache2.c:251: warning: passing argument 5 of 'sapi_module.input_filter' makes integer from pointer without a cast sapi/apache2handler/sapi_apache2.c:251: error: too few arguments to function 'sapi_module.input_filter' make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1 ---- Compiles fine without --enable-taint. Do you need more information about other configure options or compilation environment? -- Tomas