Top "Php-7" questions

PHP 7 is the successor to PHP 5.6, it was released on December 3, 2015.

php7 void return type not working?

I have a problem with return types in php7, specially "void". it works with all other types, int, string, null, …

php return-type type-hinting php-7
How to install PHP 7 extension "memcache" on Windows

I'm having huge problems installing memcached extension for php. Currently using: OS: Windows 10 x64 PHP: 7.0.1 via XAMPP Apache: 2.4.18 (Win32) I …

php windows memcached php-extension php-7
Serving PHP files as downloads, instead of executing them

I recently installed nginx and php 7.0.16 in my machine, but for some reason nginx downloads php files, rather than executing …

nginx php-7 php-7.1
How to enable PCNTL on Ubuntu server 16.04

I'm wondering how to enable pcntl extension in PHP7 running on Ubuntu server 16.04. I saw this http://www.crimulus.com/2010/07/30/…

php-7 ubuntu-server
Enabling 'strict_types' globally in PHP 7

I'm currently migrating my website from PHP5 to PHP7, and I've started using the strict typing feature that was added. …

php apache php-7 variable-types
PHP rand() vs. random_int()

As php.net indicates: random_int() function Generates cryptographically secure pseudo-random integers. But, Can someone explain whats the difference between …

php php-7
Why I am suddenly getting a "Typed property must not be accessed before initialization" error when introducing properties type hints?

I have updated my class definitions to make use of the newly introduced property type hints, like this: class Foo { …

php doctrine-orm php-7 type-hinting php-7.4
Download PhpSpreadsheet file without save it before

I'm using PhpSpreadsheet to generate an Excel file in Symfony 4. My code is: $spreadsheet = $this->generateExcel($content); $writer = new …

php-7 symfony4 phpspreadsheet
What is the status of the MongoDB extension for PHP7?

PHP7 is gaining a lot of attention lately, promising great performance and a more mature language. Version 7.0.0-alpha is out. …

mongodb php-7
Doctrine manyToMany return PersistentCollection instead of ArrayCollection

I'm working with Symfony 3.1 and Doctrine 2.5. I setup a manyToMany relationship as I always do : manyToMany: placeServices: targetEntity: Acme\MyBundle\…

php symfony doctrine-orm php-7