Bug #73621 [NEW]: unpredictable behavior (broken adminer)

From: Date: Wed, 30 Nov 2016 09:00:38 +0000
Subject: Bug #73621 [NEW]: unpredictable behavior (broken adminer)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205690@lists.php.net to get a copy of this message
From: sailormax at inbox dot lv Operating system: Windows 10 x64 PHP version: 7.1.0RC6 Package: opcache Bug Type: Bug Bug description:unpredictable behavior (broken adminer) Description: ------------ Steps: 1. run PHP 7.1 VC14 x64 Non Thread Safe via WTServer(https://wtserver.wtriple.com/) with mysql server. Work via php-cgi.exe. Opcache has to be enabled. 2. open in browser adminer-4.2.5.php 3. try to connect to mysql server: localhost/root Exp.: connection to mysql server Act.: Warning: mysqli::__construct(): (HY000/2002): The requested address is not valid in its context. Because php call connect() function, which placed in IF, which did not initialized. It call wrong connect() function. It doesn't happened in PHP <= 7.0 If turn off Opcache - it doesn't happened too. Test script: --------------- https://github.com/vrana/adminer/releases/download/v4.2.5/adminer-4.2.5.php Expected result: ---------------- possibility to connect to local MySQL server Actual result: -------------- Warnings, because PHP calling wrong function. -- Edit bug report at https://bugs.php.net/bug.php?id=73621&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73621&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73621&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73621&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73621&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73621&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73621&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73621&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73621&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73621&r=support Expected behavior: https://bugs.php.net/fix.php?id=73621&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73621&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73621&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73621&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73621&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73621&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73621&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73621&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73621&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73621&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73621&r=mysqlcfg

« previous php.bugs (#205690) next »