|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-12-20 08:18 UTC] benjamin dot roth at jaumo dot com
Description: ------------ 1. I am not 100% if I got the right category for that. 2. I was NOT able to reproduce that intentionally but we obsorved that many, many times in production. 3. This only happens in long-running PHP environments. It does NOT happen with PHPFPM as every request creates a separate PHP runtime. Our observations have been made when serving PHP requests with amp/aerys. 4. It does not happen in EVERY long-running process, but WHEN it happens, the current process is affected until it dies Symptom: Single-char vars are instantly dropped / unset. E.g. ---- $f = new Foo(); $f->bar(); ---- Results in ---- [E_NOTICE] Undefined variable: f ---- and ---- Call to a member function bar() on null ---- This does never happen when using variable names with a couple of chars. I didn't find out the exact limit, but as of now I have only seen single-char-vars in logs. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
The servers run with the following modules. root@php1:~# php -v PHP 7.2.4-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Apr 5 2018 08:53:57) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.4-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies root@php1:~# php -m [PHP Modules] calendar cassandra Core ctype curl date dom event exif fileinfo filter ftp gd gearman gettext gmagick hash iconv igbinary inotify intl json libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pgsql Phar posix rdkafka readline redis Reflection session shmop SimpleXML soap sockets sodium SPL standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache Some thoughts about this: OPcache is enabled of course. There are also 5 less common extensions. We build and package (.deb) them ourselves: php7.2-cassandra 1.3.2 php7.2-event 2.3.0 php7.2-inotify 2.0.0 php7.2-rdkafka 3.0.5 php7.2-redis 3.1.6