Bug #80322 [NEW]: Preloader does not work as expected

From: Date: Thu, 05 Nov 2020 15:34:53 +0000
Subject: Bug #80322 [NEW]: Preloader does not work as expected
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230135@lists.php.net to get a copy of this message
From: sametsahindogan at gmail dot com Operating system: Ubuntu 20.04.1 LTS PHP version: 7.4.12 Package: opcache Bug Type: Bug Bug description:Preloader does not work as expected 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 bug report at https://bugs.php.net/bug.php?id=80322&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80322&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80322&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80322&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80322&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80322&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80322&r=support Expected behavior: https://bugs.php.net/fix.php?id=80322&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80322&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80322&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80322&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80322&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80322&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80322&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80322&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80322&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80322&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80322&r=mysqlcfg

« previous php.bugs (#230135) next »