php

package
v0.0.0-...-3b12f0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZEND_USER_FUNCTION = (1 << 1)
	ZEND_EVAL_CODE     = (1 << 2)
)

zend_function.type definitions from PHP sources nolint:golint,stylecheck,revive

View Source
const (
	// This is used to check if the VM mode is the default one
	// From https://github.com/php/php-src/blob/PHP-8.0/Zend/zend_vm_opcodes.h#L29
	ZEND_VM_KIND_HYBRID = (1 << 2)

	// This is used to check if the symbolized frame belongs to
	// top-level code.
	// From https://github.com/php/php-src/blob/PHP-8.0/Zend/zend_compile.h#L542
	ZEND_CALL_TOP_CODE = (1<<17 | 1<<16)
)

nolint:golint,stylecheck,revive

Variables

This section is empty.

Functions

func RetrieveJITBufferPtrWrapper

func RetrieveJITBufferPtrWrapper(code []byte, addrBase libpf.SymbolValue) (
	dasmBuf libpf.SymbolValue, dasmSize libpf.SymbolValue, err error)

RetrieveJITBufferPtrWrapper. This function reads the code blob and returns a pointer to the JIT buffer used by PHP (called "dasm_buf" in the PHP source).

func VersionExtract

func VersionExtract(rodata string) (uint, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL