Bug #75710 [NEW]: single-char vars get lost

From: Date: Wed, 20 Dec 2017 08:18:23 +0000
Subject: Bug #75710 [NEW]: single-char vars get lost
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213174@lists.php.net to get a copy of this message
From:             benjamin dot roth at jaumo dot com
Operating system: Ubuntu
PHP version:      7.1.12
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:single-char vars get lost

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.



-- 
Edit bug report at https://bugs.php.net/bug.php?id=75710&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75710&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75710&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75710&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75710&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75710&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75710&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75710&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75710&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75710&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75710&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75710&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75710&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75710&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75710&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75710&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75710&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75710&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75710&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75710&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75710&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#213174) next »