Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103787 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69249 invoked from network); 23 Jan 2019 01:52:56 -0000 Received: from unknown (HELO mail-vs1-f49.google.com) (209.85.217.49) by pb1.pair.com with SMTP; 23 Jan 2019 01:52:56 -0000 Received: by mail-vs1-f49.google.com with SMTP id z3so113124vsf.7 for ; Tue, 22 Jan 2019 14:30:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wJpjuepw6crYblxY6qbm9qR/JS5muo+dWzTyRvmX8uw=; b=BT6SjhTz0tCSu2Mq2C2tFwCMjletB9KkC/rKdGB6qQTKWvoSpJjuY/c8q3r/ZQ3/Wr Wyn19b5d301vUqItJ9TRASg1xz5nmpzaDRS4IECL9MVgI3Um0om6Obx2fBRtxbwN8RC5 TD4xTiZSN9rV0prf98u5uXQ1jnm3RcrsbP1LL3/y9aVVlEHaaZiYN+gc0w0zL7qGRDU0 D3hNjEJysTtivArC9B9LDNabCvA0GIIoHYUY84NQgthj58QooVlMFE/AuKYSYHBe+7P6 lcRMz/Sr2GtlciIfL84/MtJSrI6jm+6hJQPS40Ru2EGnFx5+QeUDEQNvP0QZme3e3TMb M2Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wJpjuepw6crYblxY6qbm9qR/JS5muo+dWzTyRvmX8uw=; b=enySQBzJaRbvbK4w2c/u1BHrnguZ7oDsRpynBLZ78B+Y3RKguPz9AQ1srSG24YTnky kCdgn8UPrkDzongRqS3oT+OelXAY6yANsRIt6tqTcsPMc6spcImrAbdeQ+4JvZD8HCtK N3wBIQnrIho5dV+qFooICsX36bxG/lWici8C8d8WW0u+kBt/6Wwy2hwCc/bibEwBQ3U5 Qalrdwp9CeaVGOJHFrx3gEy4jjhW/DlIaltPyJ6aoX6lYoflAlThpjPKdQirydueRC9I D1vNoqA/H9XIqXFFulaPE+3EqWZ//2AJYuQMAtKinW0RgAlNgku6dSYjdeYELur6fR2N xuSw== X-Gm-Message-State: AJcUukczehxNWGDzA69i8dvPfAfYCqh4kvOhdA+aG2Imm0dEHeKMS9RF cPSpeDyjwZV5Adpxv8l4OHixzdoAOnOQC9kxcDRambuh X-Google-Smtp-Source: ALg8bN4uNpGgiDDThZ8An9zKUjAJI9RJun4UglSMqlel3Axqrl8iwsvNV1WrpPkoynTlWOjH6zhedzrYJerD+pUi8Rw= X-Received: by 2002:a67:4850:: with SMTP id v77mr15368976vsa.59.1548196239899; Tue, 22 Jan 2019 14:30:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 22 Jan 2019 23:30:25 +0100 Message-ID: To: Yasuo Ohgaki Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ebffcd058013862a" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: george.banyard@gmail.com (Girgias) --000000000000ebffcd058013862a Content-Type: text/plain; charset="UTF-8" On Tue, 22 Jan 2019 at 23:28, Yasuo Ohgaki wrote: > 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 I'm all for it if it reduces overhead. Best regards George P. Banyard --000000000000ebffcd058013862a--