Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63808 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19245 invoked from network); 12 Nov 2012 14:15:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2012 14:15:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:52523] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/12-05794-69401A05 for ; Mon, 12 Nov 2012 09:15:51 -0500 Received: by mail-oa0-f42.google.com with SMTP id j1so6459398oag.29 for ; Mon, 12 Nov 2012 06:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=MFJ/GvuhSBQA6/crwi+Va9FGgw2qMv8lAyi8a4dabzs=; b=b9lqMOBYOViZQMAhZLUMSHMMvda8JSfB28FOhEFfBpowqjb3lzcxMryJaaL1ArSMaP lR9h1isYbRIPCFCJO8P9O3yqccSPkGNdJREaARdovrpTJh3tVXGQOgh4BQteHm0iW1ZG KYgjDlALLaRV+FN1IO9t+XcY5e4pbDPM9ToeU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=MFJ/GvuhSBQA6/crwi+Va9FGgw2qMv8lAyi8a4dabzs=; b=J7y7BOG3UKtNQBNRYyrWbsCx3ocE5QQtrTOiyfueNEutTquaRcJncpseVZsoe2O0mh 2IjDc5kGFYQgM8OxoXNgDKIrn/Fe9MqKIgmv035SV4bCKWPqZxeYsEpF9W15m+K6haCR X2hrBB7p5gA67cxi4NRELJssSovU3HEFTItauzo1WWEmg6A24DxfqyGJ4AHkUSnvS7lh 0jbffqJMY/rsOxB7R8GRHOHWjKd6sdcsmcEB5KiupP/L4Dt1EKuonS6mTeqPZBZh03g3 rKl/fY8/j+nc26Cg8vGyKXKDlls1G1WVviyQB0j2AWIwSpeMtBvyZLTvAY36kw60L7HP UgQQ== Received: by 10.182.124.102 with SMTP id mh6mr15071647obb.48.1352729750362; Mon, 12 Nov 2012 06:15:50 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.76.123.75 with HTTP; Mon, 12 Nov 2012 06:15:30 -0800 (PST) In-Reply-To: <1352728096.3953.5.camel@guybrush> References: <1352728096.3953.5.camel@guybrush> Date: Mon, 12 Nov 2012 22:15:30 +0800 X-Google-Sender-Auth: CjmaYICFZ7c2JXXO3nOm8bLg3OY Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQksOad9WPus/wSVDyf/vWFKgmLo7+CP+jrfVEXKi6Jyi+RLWrTHr4qHGQ2ZDqoMeYmkxjCq Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: aharvey@php.net (Adam Harvey) On 12 November 2012 21:48, Johannes Schl=C3=BCter wrote: > On Mon, 2012-11-12 at 21:00 +0800, Adam Harvey wrote: >> logical next step is to start generating E_DEPRECATED notices when >> users connect via mysql_connect(), mysql_pconnect() or the implicit >> ext/mysql connection routines. It's my belief that doing so will > > Short comment: Those will mostly be unseen. Most people use the @ > operator to silence errors on these functions, so such deprecation > notices would go unseen. There are some users we're never going to reach, short of removing the functions altogether. It's the same for everything we deprecate or remove =E2=80=94 the screaming about ext/sqlite being removed in 5.4 is sti= ll there, for instance, and will probably only increase as distros roll out 5.4 packages. A five second Google Code Search suggests the ratio of suppressed calls to mysql_connect() to unsuppressed ones is about 2:11*, at least within its increasingly out of date corpus. Admittedly, many of the users of the unsuppressed code aren't going to have error reporting turned on anyway, but I don't think the situation's dire. All that said, is there a different function we could hook into that does make more sense? Adam * No statistical validity claimed. I'm not Nate Silver, nor do I play him o= n TV.