Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105883 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15015 invoked from network); 12 Jun 2019 19:34:10 -0000 Received: from unknown (HELO mail.experimentalworks.net) (84.19.169.162) by pb1.pair.com with SMTP; 12 Jun 2019 19:34:10 -0000 Received: from maniacmansion.fritz.box (ppp-188-174-57-166.dynamic.mnet-online.de [188.174.57.166]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 33FCE4ED1B; Wed, 12 Jun 2019 18:47:06 +0200 (CEST) Message-ID: <22f89105aca8003487106e344f0be148d7d287b1.camel@schlueters.de> To: "G. P. B." , PHP internals Date: Wed, 12 Jun 2019 18:47:01 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Feedback on state of some PHP extensions, functions, etc. From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Wed, 2019-06-12 at 17:32 +0200, G. P. B. wrote: > - the enable_dl directive, it is said that "This deprecated > feature *will* certainly be *removed* in the future." [x] is this > the case already? addressed in the Deprecation for 7.4 draft RFC [2] I missed that debate, but I think there is value in being able to turn of `dl()` even in CLI context. There is certainly value in having an easy switch for embed to disable this (might be some compile-time decision in that case however) > - ini_alter an alias of ini_set [3] 15,482 hits on GitHub https://github.com/search?l=PHP&q=ini_alter&type=Code subtracting the phpt files (I wish gH code search would filter out forks ...) and files for syntax highlighters etc. this isn't much, but some productive code. > - Change print return's type from int to void as it always returns > 1 [19] > to mimic echo [20] or maybe mimic printf's behavior i.e. the > length of the > string printed [21] Note that `echo`'s return value isn't void, but non-existent as echo can not be used in an expression. I believe it's good if `print`'s return value is always true'ish (i.e. not returning the length) so that $a = ""; (print $a) && something_else() works. johannes