News for hackers. Stuff that matters.
Re:Build command line apps using PHP 7 by jameslk on Sunday September 03, 2017 @04:58PM (#15163871)
PHP is not really a good candidate for something meant to be distributed to other platforms due to the fun fact that a lot of custom configurations that affect PHP's runtime behavior are held in a system-wide ini file. External modules that allow certain features to work also need to be loaded from this configuration file. This makes having your application work consistently across platforms kind of a nightmare.
Re:Build command line apps using PHP 7 by TazeTSchnitzel on Sunday September 03, 2017 @05:57PM (#15164165)
php.ini has its problems, but I don't understand this remark:

> External modules that allow certain features to work also need to be loaded from this configuration file.

What's wrong with this? The modules in question (at lest, most important extensions) are part of the core codebase and will be available as packages on whatever platform you're using, and the package manager should configure them for you.

Re:Build command line apps using PHP 7 by jameslk on Monday September 04, 2017 @12:18AM (#15165694)
The problem is that the distributed script(s), if the rely on external modules, will have to guess if those modules are available, rather than just bringing them with the script like other language dependency managers provide.

For example, with Ruby's gems or Node's npm, if I install a command line package, external modules (native C extensions) will be installed as well.