Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92694 invoked from network); 10 Sep 2014 05:42:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2014 05:42:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pd0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:41604] helo=mail-pd0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/20-24203-7D4EF045 for ; Wed, 10 Sep 2014 01:42:47 -0400 Received: by mail-pd0-f174.google.com with SMTP id v10so10413923pde.5 for ; Tue, 09 Sep 2014 22:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=F5oDcwKEdp1sPW0bnSkG3qDuetAuC+VghP6r8RVKSLk=; b=BnuSo2j2G7ZU4UWUfUl5t4vsXpDd402sF1nV8vR6lHS3AhKL1pHXfPrshbVtWMVA4B MySaELIogxjiOjvyiWPs8kWkJLKUloks2sD8PtgPtBFIew7yTOJNkb6lH9+kQYkyRxbe 5O5nOowIh/8jDGUsFxnb/eZ1SZTxcgNs3G4btRQ6cHiivyzE8Zceg186864tmEkn8/89 G850Ntk46cj6Y/otCQIY7n8tdyoMs9GkQ52xO+3RVNGYgpZhljlvZa2JTOwCDZjSxvfn LW9cB9Ho85R8ytTPWX2+OUvSM/UvWWwAH1x9ewpXoQyQzxWZG55o7zWL7TlGmcUNAG7p 2TZw== X-Received: by 10.68.193.194 with SMTP id hq2mr201690pbc.169.1410327763782; Tue, 09 Sep 2014 22:42:43 -0700 (PDT) Received: from [192.168.1.102] (bb121-7-198-24.singnet.com.sg. [121.7.198.24]) by mx.google.com with ESMTPSA id nk11sm7492973pdb.40.2014.09.09.22.42.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 22:42:42 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_8684A1BF-18E0-40E0-986F-5A89010F100B" Message-ID: Date: Wed, 10 Sep 2014 13:42:38 +0800 To: PHP Internals Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) Subject: Deprecated functions From: tjerk.meesters@gmail.com (Tjerk Meesters) --Apple-Mail=_8684A1BF-18E0-40E0-986F-5A89010F100B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi, When I was fixing test cases on my `kill-ereg` branch I noticed a = Reflection test case for `ReflectionFunction::isDeprecated()`. The problem with such a test case is that you=92d be chasing deprecated = functions to tests against as we move along; this is the current list of = deprecated functions as taken from a typical 5.4 installation: Since 4.1.0: call_user_method, call_user_method_array Since 4.3.7: mysql_list_tables, mysql_listtables Since 5.3 : ereg, ereg_replace, eregi, eregi_replace, split, spliti, = sql_regcase, mysql_db_query, magic_quotes_runtime, = set_magic_quotes_runtime, set_socket_blocking Since 5.4 : mysql_list_dbs The above are, as far as I=92m concerned, all potential candidates for = removal in PHP 7, so in order to reliably test a deprecated function I = would suggest introducing a hidden function with this signature: void __deprecated__() { } And mark that function as eternally deprecated using the = ZEND_ACC_DEPRECATED flag. Thoughts?= --Apple-Mail=_8684A1BF-18E0-40E0-986F-5A89010F100B--