Bug #78416 [Fbk->NoF]: Invalid opcode from imagesetpixel
| From: | php-bugs at lists dot php dot net | Date: | Sun, 25 Aug 2019 04:22:06 +0000 |
| Subject: | Bug #78416 [Fbk->NoF]: Invalid opcode from imagesetpixel | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222404@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78416&edit=1
ID: 78416
Updated by: php-bugs@lists.php.net
Reported by: 115233618 at qq dot com
Summary: Invalid opcode from imagesetpixel
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: GD related
Operating System: CentOS 7.3 X64
PHP Version: 7.2.21
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2019-08-15 08:13:39] nikic@php.net
Can you please provide a more complete reproduce script?
Opcode 23 is ASSIGN_ADD, which is not produced by your code at all (it will likely involve
"+=").
------------------------------------------------------------------------
[2019-08-15 02:31:42] 115233618 at qq dot com
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 this bug report at https://bugs.php.net/bug.php?id=78416&edit=1