Bug #78416 [NEW]: å¨ä½¿ç¨GDåºçæéªè¯ç å¾ççå¹²æ°çº¿æ¶æ¥é
| From: | 115233618 at qq dot com | Date: | Thu, 15 Aug 2019 02:31:42 +0000 |
| Subject: | Bug #78416 [NEW]: å¨ä½¿ç¨GDåºçæéªè¯ç å¾ççå¹²æ°çº¿æ¶æ¥é | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222254@lists.php.net to get a copy of this message | ||
From: 115233618 at qq dot com
Operating system: CentOS 7.3 X64
PHP version: 7.2.21
Package: Unknown/Other Function
Bug Type: Bug
Bug
description:å¨ä½¿ç¨GDåºçæéªè¯ç å¾ççå¹²æ°çº¿æ¶æ¥é
Description:
------------
PHP Fatal error: Invalid opcode 23/16/8. in
/wwwroot/web/protected/controller/VerifyController.php on line 41
VerifyController.phpæä»¶ç¬¬41è¡ä»£ç :
imagesetpixel($this->im,$this->width,$this->height,$this->point_color);//çæå¹²æ°åç´
Test script:
---------------
function set_point(){
if(empty($this->point_num)){
$this->point_num=100;
}
for($i=0;$i<$this->point_num;$i++){
$this->point_color=imagecolorallocate($this->im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));//çæå¹²æ°åç´ é¢è²
imagesetpixel($this->im,$this->width,$this->height,$this->point_color);//çæå¹²æ°åç´
}
}
Expected result:
----------------
å¨pngç»å¸ä¸çæå¹²æ°çº¿ï¼ä»£ç å¨php
7.2.18以ä¸å¯ä»¥æ£å¸¸è¿è¡
Actual result:
--------------
ç¯å¢å级å°php7.2.21å该段代ç è¿è¡æ¥é:
PHP Fatal error: Invalid opcode 23/16/8.
--
Edit bug report at https://bugs.php.net/bug.php?id=78416&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78416&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78416&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78416&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78416&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78416&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78416&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78416&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78416&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78416&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78416&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78416&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78416&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78416&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78416&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78416&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78416&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78416&r=mysqlcfg