Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104474 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39365 invoked from network); 19 Feb 2019 14:38:30 -0000 Received: from unknown (HELO mail-ot1-f66.google.com) (209.85.210.66) by pb1.pair.com with SMTP; 19 Feb 2019 14:38:30 -0000 Received: by mail-ot1-f66.google.com with SMTP id 98so33629819oty.1 for ; Tue, 19 Feb 2019 03:23:07 -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=n30hnoP4vZ4ncIOJqcv4U7SkJ6Vt7/v1Vokdbg29frw=; b=mNew0j5vCATZ7cAC7vFnfMe/FpIy8KIVt71uFQBK5TVnCORY/X46sv5tvxHTeMrXGN 9quFarjf4BtqeGuHatgpoSA36CpEQp9DvBfFhYGWCJ0mFwUEx8SGwhqcCcctYqUvlDZC UMZAQ0e7N7I+Miw6bUtnSD7e5R/8m9mVnwz3PAd8uLQXx+ccN15rZRFDd++z5imAZYmL E8zy5vaQ34KNoOAYMiywnukVzDU5X7vbNRf4QbzeR8o8p+OAvk8u51eEb2NlhDd80UBU OEIFkIH900faY8EoD+DCKOwikYp5AtlION6NSU2C2uRVx3dYaxiGQ9F/6Z8wqAqM1KEI J5Ew== 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=n30hnoP4vZ4ncIOJqcv4U7SkJ6Vt7/v1Vokdbg29frw=; b=KKBLt118bkjq+bVQoSlRvsW+o+ONEnfpfQ4yyoY8mfC08AWlQsVJ3oEc6ho0Qzl5/P e4Vde5WswqBUzc8QEWzToJ7KAy+kftGdBcgFN6hmiIJceC4KDYzN1BARakfy7XsQSfBG ablBxLRqVCFuB5veCWRoW/Yiu21C06I0C3IAanvQ0s+JA2ggP3w1xHN8nG7Yxn9Nzraz etq2n+npnlnR12i7g9CQtk/DJ4ivL1AnWTZhJpbB/66mDpcNaCApmLNiR+SrwBSA0HK5 wSDxb3jtLrGTWf3slsIpr3QLzE1CKpb4P+P6VfpNbNyh+jU41EsEJh3SFakGNObelqoQ D/qA== X-Gm-Message-State: AHQUAubqp/CbjcjDM0tmBQAa4Upqd7c0mw0aYTUgsVhuaxX43Sy3Z8oI tTMcUmMdHtLINjqxnOXjb9eofTKC/en7Kr5p9tI= X-Google-Smtp-Source: AHgI3Ia+KxI3+ztKm057Py0FvMcyrUQvD/1KqS1vz/zs1ZvrrPM309AeUZz4NcabuiSVAIMjE0TBvaWz7Y5l6Xvm1p4= X-Received: by 2002:a9d:66d0:: with SMTP id t16mr11649582otm.35.1550575387048; Tue, 19 Feb 2019 03:23:07 -0800 (PST) MIME-Version: 1.0 References: <5c6b340f.1c69fb81.4d3ae.2773@mx.google.com> In-Reply-To: <5c6b340f.1c69fb81.4d3ae.2773@mx.google.com> Date: Tue, 19 Feb 2019 12:22:54 +0100 Message-ID: To: Legale Legage Cc: Gabriel Ostrolucky , Internals Content-Type: multipart/alternative; boundary="00000000000024815405823d7761" Subject: Re: [PHP-DEV] Re: phpenmod/phpdismod From: peterkokot@gmail.com (Peter Kokot) --00000000000024815405823d7761 Content-Type: text/plain; charset="UTF-8" On Mon, 18 Feb 2019, 23:39 Legale.legale I have made super simple OS independent phpenmod. > > Https://github.com/legale/phpenmod > On Feb 18, 2019 23:31, Gabriel Ostrolucky wrote: > > > > I'm fan of this idea. I miss this in any other non-debian distro. > > What nobody mentioned yet, similar script (dockerphp-ext-enable) > > is used in PHP docker images. You can check them out at > > > https://github.com/docker-library/php/blob/master/7.3/alpine3.9/cli/docker-php-ext-enable > > > > However, enabling extensions in PHP via CLI is easy. > > It's just php -dextension=extension.so. What isn't easy, is DISABLING > them. > > > > This is very important to do when you have profiling/debugging > extensions > > like xdebug enabled. > > > > Currently, PHP community needs to do workaround gymnastics because of > this > > missing functionality. Check > > > https://stackoverflow.com/questions/31083195/disabling-xdebug-when-running-composer > > and xdebug-handler created as a result > > > https://github.com/composer/xdebug-handler/blob/master/src/XdebugHandler.php > > > > Now, authors of CLI tools ship this xdebug-handler and unload it by > default. > > This makes their software faster by default, but all the CLI tool > authors > > must depend on this. And users are less aware of what's going on. > > > > If you are a consumer and your CLI tool does not depend on it, > > you are out of luck, back to editing .ini files by hand - or > > wondering why is the tool slow or even abandoning it because of that. > > If you are a consumer and want to debug your CLI tool using it, > > you will spend some time figuring out why it doesn't work. > > > > I know I went little offtopic here, since this thread is mainly about > script > > which persists these settings, instead of just CLI switch, but I think > this > > was worth mentioning, as it complements it. IMO hard to edit ini files > are > > frustrating mainly because of lacking quick way for disabling > extensions. > > Having a CLI swith do not only ENABLE extension, but also DISABLE it, > would > > help a lot and shipping script for modifying ini files might be a lot > smaller > > necessity after that. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > For more portability - systems suppory (Linuc, mac, bsd etc) and still no Windows instead of the #!/bin/bash use the shebang #!/bin/sh Also, this tool mostly is still tied to current Linux repositories and not to a php built from sources... So that's another thing making it specific to certain installation type. I'd still say that the tool needed for PHP is renewed and completwly rewritten pecl. Basically copy paste of current functionality in its essense and adding more swag and user features. Something like that... > --00000000000024815405823d7761--