mirror of
https://github.com/laravel-ls/go-php
synced 2026-06-16 03:54:55 +02:00
Initial commit
This commit is contained in:
commit
4cbf7e62b7
19 changed files with 1295 additions and 0 deletions
28
zval.h
Normal file
28
zval.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef _GOPHP_ZVAL_H
|
||||
#define _GOPHP_ZVAL_H
|
||||
|
||||
#include <Zend/zend_types.h>
|
||||
|
||||
// Structure to return a key-value pair from a hash table
|
||||
typedef struct {
|
||||
int key_type; // HASH_KEY_IS_STRING or HASH_KEY_IS_LONG
|
||||
zend_string *key_str;
|
||||
zend_long key_long;
|
||||
zval value; // The value in the hash table
|
||||
} hash_table_entry;
|
||||
|
||||
zval new_zval();
|
||||
|
||||
void zval_destroy(zval *val);
|
||||
|
||||
extern void zend_array_init_traverse(zend_array *arr, HashPosition *pos);
|
||||
|
||||
extern int zend_array_get_next(zend_array *arr, HashPosition *pos, hash_table_entry *entry);
|
||||
|
||||
zend_array* zval_get_array(zval *zv);
|
||||
|
||||
char* zend_string_cstr(zend_string *zstr);
|
||||
|
||||
void zval_set_long(zval *val, long int num);
|
||||
|
||||
#endif /* ! GOPHP_ZVAL_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue