Bug #78682 [NEW]: wrong executed if-else
| From: | bugreports at gmail dot com | Date: | Thu, 17 Oct 2019 22:08:40 +0000 |
| Subject: | Bug #78682 [NEW]: wrong executed if-else | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223229@lists.php.net to get a copy of this message | ||
From: bugreports at gmail dot com
Operating system: Linux
PHP version: master-Git-2019-10-17 (Git)
Package: opcache
Bug Type: Bug
Bug description:wrong executed if-else
Description:
------------
it's impossiblöe that $ml is undefined in that if-else statement
opcache.jit_buffer_size = 50000000
opcache.jit = 1235
Warning: Undefined variable: ml in global_mysql_ext.inc.php on line 581
switch($extended)
{
default:
$arr[$row['Field']] = $x_type;
break;
case 1:
if($maxlength)
{
$rw = mysqli_fetch_row($this->parent->query("select
max(length(
{$row['Field']})) from $table", 1));
$ml = (int)$rw[0];
}
else
{
$ml = 0;
}
$arr[$row['Field']] = ['type'=>$x_type, 'null'=>$null,
'length'=>$length, 'maxlength'=>$ml]; /** this is line 581 */
break;
}
--
Edit bug report at https://bugs.php.net/bug.php?id=78682&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78682&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78682&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78682&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78682&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78682&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78682&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78682&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78682&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78682&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78682&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78682&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78682&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78682&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78682&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78682&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78682&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78682&r=mysqlcfg