php-opencv / php-opencv

opencv 4.5+ with dnn module for php 7/8

Home Page:https://github.com/php-opencv/php-opencv-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Fatal error: Internal zvals cannot be refcounted

walterpadua opened this issue · comments

I compiled php-opencv on 3 different php versions php-8, php-8.1, php-8.2, and on 3 versions for some random reason the PHP Fatal error: Internal zvals cannot be refcounted.

usually you can see error like "PHP Fatal error: Internal zvals cannot be refcounted." when you checkout from php7 branch but try to compile for php8.

now master branch is for php8.2.

you can see how to compile in examples:

docker file for 8.1: https://github.com/php-opencv/php-opencv-examples/blob/master/docker/ubuntu-22.04_php-8.1_opencv-4.5.0/Dockerfile
docker file for 8.2 https://github.com/php-opencv/php-opencv-examples/blob/master/docker/ubuntu-22.04_php-8.2_opencv-4.5.0/Dockerfile