mirror of
https://github.com/php/php-src.git
synced 2026-03-30 04:02:19 +02:00
Add xml.md info for info constants
This commit is contained in:
19
xml.md
19
xml.md
@@ -251,6 +251,23 @@ info (subcommands)
|
||||
- <lasterror error="" (file="" line="") />
|
||||
- error attribute contains the last error as a string, is empty if there's no last error
|
||||
|
||||
### constants ###
|
||||
|
||||
- <constantinfo num="" /> with num having an integer value, indicating the number of (local or superglobal) variables
|
||||
- if info vars was used it'll have also one of these attributes:
|
||||
- method
|
||||
- function
|
||||
- file
|
||||
- opline
|
||||
- for each variable there is a <constant> element
|
||||
- <constant address="" refcount="" type="" name="" />
|
||||
- address: pointer to zval (hexadecimal)
|
||||
- refcount: refcount of zval
|
||||
- type: the variable type (long, string, ...). If the value is "unknown", the other attributes are meaningless
|
||||
- name: the name of the variable
|
||||
- value: the value of primitive types (scalars) => string/int/bool/double
|
||||
- length: if string, then the length of that string
|
||||
|
||||
### vars / globals ###
|
||||
|
||||
- <variableinfo num="" /> with num having an integer value, indicating the number of (local or superglobal) variables
|
||||
@@ -259,7 +276,7 @@ info (subcommands)
|
||||
- function
|
||||
- file
|
||||
- opline
|
||||
- for each variable there is a <variable> followed by a <variabledetails> element
|
||||
- for each variable there is a <variable> element
|
||||
- <variable address="" refcount="" type="" name="" />
|
||||
- address: pointer to zval (hexadecimal)
|
||||
- refcount: refcount of zval
|
||||
|
||||
Reference in New Issue
Block a user