Bug #80322 [Opn->Fbk]: Preloader does not work as expected

From: Date: Thu, 05 Nov 2020 15:54:12 +0000
Subject: Bug #80322 [Opn->Fbk]: Preloader does not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230140@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80322&edit=1 ID: 80322 Updated by: danack@php.net Reported by: sametsahindogan at gmail dot com Summary: Preloader does not work as expected -Status: Open +Status: Feedback Type: Bug Package: opcache Operating System: Ubuntu 20.04.1 LTS PHP Version: 7.4.12 Block user comment: N Private report: N New Comment: "interested exceptions like" Please post the actual details, including the lines of code that are being reported as causing the exception to be thrown. Previous Comments: ------------------------------------------------------------------------ [2020-11-05 15:34:53] sametsahindogan at gmail dot com Description: ------------ I was using a php 7.4 version lower than php 7.4.12 on my server. When I updated to PHP version to 7.4.12, I noticed that Laravel and the preloader were not working. I can't find what is wrong with these script. But when I create new object from Laravel Eloquent Model (e.g User.php in default Laravel file), then PHP throws an interested exceptions like "using $this when not in object context". But If I disable preloader everythings work fine. Last minor version of php 7.4 there is no error like that. This is my script for preloading -> https://github.com/brendt/laravel-preload/blob/master/preload.php P.S: I tested a clean php&laravel install on two different servers, result is the same. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80322&edit=1

« previous php.bugs (#230140) next »