|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug55695.diff (last revision 2011-09-14 15:32 UTC by laruence@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-09-14 15:32 UTC] laruence@php.net
[2011-09-14 15:34 UTC] laruence@php.net
-Assigned To:
+Assigned To: dmitry
[2011-09-14 15:34 UTC] laruence@php.net
[2011-09-15 09:44 UTC] dmitry@php.net
-Status: Assigned
+Status: Wont fix
[2011-09-15 09:44 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 05:00:01 2025 UTC |
Description: ------------ When having the following code: <?php class foo { function bar() { self::$bar = 42; } } ?> The compiler generates compiled a totally unused NOP opline: $ php -dvld.active=1 -r 'class foo { function bar() { self::$bar = 42; } }' Finding entry points Branch analysis from position: 0 Return found filename: Command line code function name: (null) number of ops: 2 compiled vars: none line # * op fetch ext return operands --------------------------------------------------------------------------------- 1 0 > NOP 1 > RETURN null branch: # 0; line: 1- 1; sop: 0; eop: 1 path #1: 0, Class foo: Function bar: Finding entry points Branch analysis from position: 0 Return found filename: Command line code function name: bar number of ops: 4 compiled vars: !0 = $bar line # * op fetch ext return operands --------------------------------------------------------------------------------- 0 > ZEND_FETCH_CLASS 1 1 FETCH_W static member $1 'bar' 2 ASSIGN $1, 42 3 > RETURN null branch: # 0; line: 1- 1; sop: 0; eop: 3 path #1: 0, End of function bar. Test script: --------------- no