Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55304 invoked by uid 1010); 11 Feb 2008 11:09:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55289 invoked from network); 11 Feb 2008 11:09:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2008 11:09:55 -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:45502] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/58-64922-00D20B74 for ; Mon, 11 Feb 2008 06:09:53 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 13E0D1F517F for ; Mon, 11 Feb 2008 13:09:24 +0200 (EET) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id EDD0B1F517E for ; Mon, 11 Feb 2008 13:09:23 +0200 (EET) Received: from 195.22.180.233 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Mon, 11 Feb 2008 13:09:23 +0200 (EET) Message-ID: <34202.195.22.180.233.1202728163.nsm@avilys.eik.lt> In-Reply-To: <1202726898.7973.0.camel@localhost.localdomain> References: <47AC8597.4060009@chiaraquartet.net> <1202726898.7973.0.camel@localhost.localdomain> Date: Mon, 11 Feb 2008 13:09:23 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.4 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] magic_quotes and the question of BC From: tokul@users.sourceforge.net ("Tomas Kuliavas") > If those application are written properly, they also have to check for > the existance of the functions even with current PHP version since it is > possible to disable them altogether. So it shouldn't matter if they're > removed for them.. ;) Function is standard for PHP4-5. get_magic_quotes_gpc() does not change php settings and only returns status of magic quotes. Any function can be disabled with disable_functions. If user does that, he or she is deliberately breaking his setup and he/she is the one that should solve the issues. If developers follow your advice, they will have to check for any php function before using it. In case of magic quotes people just have to check for function or php version. It is one of those things that make PHP6 different from older PHP versions. Core written for both versions will check php version or existence of get_magic_quotes_gpc() -- Tomas