Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50001 invoked from network); 16 Nov 2012 17:32:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 17:32:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:56165] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/C6-08060-59876A05 for ; Fri, 16 Nov 2012 12:32:05 -0500 Received: by mail-ee0-f42.google.com with SMTP id t10so1879492eei.29 for ; Fri, 16 Nov 2012 09:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pe/4OOt2W9bfDSSEf22/Gr/URQjMumyp2vhiz3DTLho=; b=NCYF4xkgJp+7ZKJyRqD62t1Zb4/PjbjKsk1woNwyfI2Ln/bX3R9y2OptBSWvqPLM8S 6hXzqaVOx63BpD16ev8aM3Z8ushlRR7wEphxce9muzsY8Qerriq2X34SKlMVkZ1+FkPB Yjg9+xzrJqYOi1BnZ1BMdiFNQcq/DRbAFJM+KxfINHaaL05koHklJS5lKNfj6JWAhPyz rUImEi+Qj9k+J5eUe83Kf6yrrytrzbLSzSwAJzbbMJPjB7uqEhoOVGg8VDr4kvNH0kfh rnJoVqIHGEwMqBCAaNvFqATRcF2lZkQk8Y3VI4Iu2gtNKgxGjUgtOunZOUoMfL9OOZRw JVTg== MIME-Version: 1.0 Received: by 10.14.175.71 with SMTP id y47mr15372313eel.36.1353087122762; Fri, 16 Nov 2012 09:32:02 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.14.129.193 with HTTP; Fri, 16 Nov 2012 09:32:02 -0800 (PST) In-Reply-To: <50A6691E.2080102@lerdorf.com> References: <50A6691E.2080102@lerdorf.com> Date: Fri, 16 Nov 2012 18:32:02 +0100 X-Google-Sender-Auth: WiDoYrqnIMXqUlsOGjUBc0UR-OI Message-ID: To: Rasmus Lerdorf Cc: Adam Harvey , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: mysql_escape() issue (Was: [PHP-DEV] RFC: ext/mysql deprecation) From: patrickallaert@php.net (Patrick ALLAERT) 2012/11/16 Rasmus Lerdorf : > On 11/16/2012 02:18 AM, Patrick ALLAERT wrote: >> In eZ Publish CMS, we have recently removed [1] support for the mysql >> handler in favour of the mysqli one and as such, we have no more >> mysql_*() functions calls except for the above use case where we rely >> on mysql_escape(). > > I suppose you mean mysql_real_escape_string() here. There is no > mysql_escape() function and mysql_escape_string() is already marked as > deprecated as of 5.3. > > -Rasmus Sorry, I meant mysql_escape_string(). I missed the fact it was already deprecated and as such, we have an issue here in our code base since nor mysql_real_escape_string() nor mysqli_real_escape_string() fits our use case as we are using it when we have to generate an SQL file with queries to be executed on another box. Not having access to a database prevents us to have a link which is required by those functions.