[php-src] Issue #14587: SplFileObject in spatie/fork

From: Date: Sun, 16 Jun 2024 19:14:07 +0000
Subject: [php-src] Issue #14587: SplFileObject in spatie/fork
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247099@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14587 Author: remco-pc ### Description Doing the following: opening filepointers with splFileObject in the main thread and then using them multithreaded with the spatie/fork package in a child process causes current() to return an empty string after seek. this error leads to have some records missing in my framework r3m_io/framework with package r3m_io/node. I have moved the initialization of the filepointers to the child process and now i don't have missing records. probably because it used to seek simultaniously to a different line on the same object should splFIleObject be used simultaniously used, so initiate once, run in childprocess parallel ### PHP Version 8.3.6 ### Operating System Debian 12

« previous php.bugs (#247099) next »