php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55274 Wrong opcode description
Submitted: 2011-07-24 00:20 UTC Modified: 2013-01-16 14:36 UTC
From: juzna dot cz at gmail dot com Assigned: googleguy (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: juzna dot cz at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-24 00:20 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-24 01:20 UTC] 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 12:42 UTC] juzna dot cz at gmail dot com
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
 [2013-01-16 14:36 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-01-16 14:36 UTC] googleguy@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 17:01:28 2025 UTC