Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59707 invoked from network); 28 Nov 2012 18:11:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2012 18:11:36 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:36651] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/44-30696-7D356B05 for ; Wed, 28 Nov 2012 13:11:35 -0500 Received: by mail-bk0-f42.google.com with SMTP id ji2so5995106bkc.29 for ; Wed, 28 Nov 2012 10:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0S3+b5UJ6QnIzRcH5Xnd599ke/usKC34nX6RqZVLRW8=; b=HmyUXeukyusGltNkp6awHVmiK88DUL2yPDwsi1As6S5ippXRZUAHsNV3e0U1b6Ealw a8WfDzrNpwcR54ptqR0q/ESLohptHpu8uqn6+Q3UQWPXSt7SrW7CXigYKbS+1bfrkYdg uy+DxJ1qq6Yjf0W2+2G8d0UCiETaE/g8JG7OOZBiKiiio+n+Xfoubv1f4YfEW01fWbtE a5LNEAPbtY0LB44HprxB9KJqsv6Hn4new6oMod+1yidY0ukj9XY4R2TJRmj+/WL+81FN UH7O6Mx4VQp/Kd5ViE3ZotJK2TTf2lGhWXawYV6JCz6QxPEbW8Wl1ggbBzYI+xYjdBt3 Z39g== Received: by 10.204.156.194 with SMTP id y2mr6006149bkw.11.1354126292196; Wed, 28 Nov 2012 10:11:32 -0800 (PST) Received: from [192.168.1.26] (151.Red-88-13-202.dynamicIP.rima-tde.net. [88.13.202.151]) by mx.google.com with ESMTPS id d16sm13402877bkw.2.2012.11.28.10.11.30 (version=SSLv3 cipher=OTHER); Wed, 28 Nov 2012 10:11:31 -0800 (PST) Message-ID: <50B65363.4020100@gmail.com> Date: Wed, 28 Nov 2012 19:09:39 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Philip Olson CC: Lester Caine , PHP internals References: <50B5D992.30609@lsces.co.uk> <0B09D94D-3BBC-491C-8E9D-74384E30383D@roshambo.org> In-Reply-To: <0B09D94D-3BBC-491C-8E9D-74384E30383D@roshambo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ext/mysql in PECL and E_DEPRECATED (was: [VOTE] ext/mysql deprecation in 5.5) From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) I see it as simple to show E_DEPRECATED but not when installed from PECL. 1) Add a int mysql_extension_triggers_deprecated_warning = 1; And use it as a conditional for triggering the warning. 2) Copy the extension code to PECL 3) Add these changes in PECL - If the mysql functions are not already registered, register them with the bundled code. - Set mysql_extension_triggers_deprecated_warning = 0; 4) That's it.