Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103786 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67496 invoked from network); 23 Jan 2019 01:50:31 -0000 Received: from unknown (HELO es-i.jp) (180.42.98.130) by pb1.pair.com with SMTP; 23 Jan 2019 01:50:31 -0000 Received: (qmail 74835 invoked by uid 89); 22 Jan 2019 22:28:14 -0000 Received: from unknown (HELO mail-oi1-f177.google.com) (yohgaki@ohgaki.net@209.85.167.177) by 0 with ESMTPA; 22 Jan 2019 22:28:14 -0000 Received: by mail-oi1-f177.google.com with SMTP id x23so171274oix.3 for ; Tue, 22 Jan 2019 14:28:13 -0800 (PST) X-Gm-Message-State: AJcUukezVJIV4h64KRX0vAQrMO3IGgwZU9EbQFbu8W0TBO1egnRQnnLP 6/HLj/WWi12RQnJRuRkhLF6n9xhqC5RoTvehqg== X-Google-Smtp-Source: ALg8bN7PBRz0hOSq7fmp2I0GVH6mH1iocLG1SWPc4gSs/rcPhInx9QpLpensTBJXu2sABCaksxqCT8afIcIwkVjGcHs= X-Received: by 2002:aca:4fc5:: with SMTP id d188mr9091317oib.138.1548196088308; Tue, 22 Jan 2019 14:28:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 23 Jan 2019 07:27:32 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Girgias Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e2ea210580137de2" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --000000000000e2ea210580137de2 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 23, 2019 at 7:08 AM Girgias wrote: > On Tue, 22 Jan 2019 at 22:52, Yasuo Ohgaki wrote: > >> Hi Girgias >> >> It seems good list in general. >> There would not be issues marking them as deprecated. >> "Deprecation" means "Soft deprecation", correct? >> >> Removing these aliases from PHP 8 is not good idea. >> Aliases should be removed when nobody cares about these aliases. >> >> For example, pg_loopen()/etc were there until nobody cares about these >> aliases. >> New names, pg_lo_open()/etc, were given in PHP4.x. These changes were >> documented since PHP 4.x. >> >> Regards, >> >> -- >> Yasuo Ohgaki >> yohgaki@ohgaki.net >> > > Hello Yasuo Ohgaki. > > By Deprecation, I was indeed meaning that as of PHP 8 these function > should throw > E_DEPRECATED errors and be removed as of PHP 9 which would give plenty of > time > for people to adapt and upgrade their codebase. > This is good approach, too. The alias system does not allow to get currently called function name w/o overhead, AFAIK. i.e. It simply calls defined functions. Perhaps, add PHP_FALIAS_DEPRECATED() for it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --000000000000e2ea210580137de2--