Doc #55274 [Com]: Wrong opcode description
| From: | juzna dot cz at gmail dot com | Date: | Sun, 24 Jul 2011 12:42:21 +0000 |
| Subject: | Doc #55274 [Com]: Wrong opcode description | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6923@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55274&edit=1
ID: 55274
Comment by: juzna dot cz at gmail dot com
Reported by: juzna dot cz at gmail dot com
Summary: Wrong opcode description
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: -
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Also, the example code for
http://www.php.net/manual/en/internals2.opcodes.declare-function.php
is wrong.
Should be something like:
if($test) {
function a() { }
}
i.e. declaring functions depending on conditions, top-level functions are
registered immediately without any bytecode
Previous Comments:
------------------------------------------------------------------------
[2011-07-24 01:20:39] frozenfire@php.net
Copied from duplicate bug:
From manual page: http://www.php.net/internals2.opcodes.jmpznz
---
Explanation of this opcode is missing. Correct explanation should be:
Jump to the address of op2 if value is zero, or to address given in extended_data
if value is not zero.
------------------------------------------------------------------------
[2011-07-24 00:20:29] juzna dot cz at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/internals2.opcodes.jmpnz
---
This manual page shows example of different opcode (jmpznz)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55274&edit=1