Bug #80255 [NEW]: Opcache bug (bad condition result) in 8.0.0rc1

From: Date: Sun, 18 Oct 2020 19:23:05 +0000
Subject: Bug #80255 [NEW]: Opcache bug (bad condition result) in 8.0.0rc1
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229721@lists.php.net to get a copy of this message
From:             rixafy at gmail dot com
Operating system: Ubuntu 20.04
PHP version:      8.0.0RC2
Package:          opcache
Bug Type:         Bug
Bug description:Opcache bug (bad condition result) in 8.0.0rc1

Description:
------------
I didn't manage to isolate the bug from that package, I provided also
html stacktrace in repository and description in readme.

It seems like some condition is behaving differently when opcache is
enabled, condition passed, but there is no way this condition would even
be executed, because condition above (same condition -
strlen($newIndent) > strlen($indent)) cannot pass.

Test script:
---------------
https://github.com/Rixafy/php8.0.0-rc1-opcache-bug


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


Thread (6 messages)

« previous php.bugs (#229721) next »