Why Does PHP 7.4 on Windows Aborts All Command Line Actions That Require User Input

Why does PHP 7.4 on Windows aborts all command line actions that require user input?

This is a bug with PHP 7.4.0 for Windows.

The bug has been registered here, and has been fixed in the 7.4.1 version, released yesterday December 18th.

Just download the latest PHP version, and you'll be fine.

Aborted error message appears when I try to create an entity with symfony

This issue comes from a bug within the PHP 7.4 release on windows 10.

https://github.com/symfony/symfony/issues/34702

How to solve it? Change your PHP version to 7.3

Click to Wamp Icon => PHP => version => select 7.3.12

Also, don't forget to change the PHP version on windows path.

Sample Image

ArrayObject does not work with end() in PHP 7.4

From PHP 7.4 array methods don't operate on internal array, but on ArrayObject itself. I summarized two solutions for that.

1. Getting internal array of object.

$array = new \ArrayObject(["a", "b"]);
$item = end($array->getArrayCopy());

2. Creating Facade of ArrayObject and adding custom method end() to upgraded class.

PHP Warning: PHP Startup: Failed to load , The system cannot find the file specified. PHP 7.4 Windows

I've solved this for now to my requirements by using an Environment Variable substitution.

extension_dir = "${P}\php\ext"

However, a relative path solution would also be welcome.



Related Topics



Leave a reply



Submit