/* {{{ internal functions */
/* }}} */
/* {{{ proto int assert(string|bool assertion)
- checks if assertion is false */
+ Checks if assertion is false */
PHP_FUNCTION(assert)
{
}
/* }}} */
-/* {{{ proto mixed assert_options(int what,mixed value)
- set/get the various assert flags. */
+/* {{{ proto mixed assert_options(int what, mixed value)
+ Set/get the various assert flags */
PHP_FUNCTION(assert_options)
{
#endif
/* {{{ proto int sem_get(int key [, int max_acquire [, int perm]])
- Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously. */
+ Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously */
PHP_FUNCTION(sem_get)
{
pval **arg_key, **arg_max_acquire, **arg_perm;
/* {{{ proto int sem_acquire(int id)
- Acquires the semaphore with the given id, blocking if necessary. */
+ Acquires the semaphore with the given id, blocking if necessary */
PHP_FUNCTION(sem_acquire)
{
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
/* }}} */
/* {{{ proto int sem_release(int id)
- Releases the semaphore with the given id. */
+ Releases the semaphore with the given id */
PHP_FUNCTION(sem_release)
{
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
/* {{{ proto int shm_attach(int key, int size, int flag)
- Return an id for the shared memory with the given key. */
+ Return an id for the shared memory with the given key */
PHP_FUNCTION(shm_attach)
{
pval **arg_key,**arg_size,**arg_flag;
/* {{{ proto int shm_detach(int id)
- releases the shared memory attachment with the given id. */
+ Releases the shared memory attachment with the given id */
PHP_FUNCTION(shm_detach)
{
pval **arg_id;
}
/* }}} */
/* {{{ proto int shm_remove(int key)
- removes the shared memory with the given key. */
+ Removes the shared memory with the given key */
PHP_FUNCTION(shm_remove)
{
pval **arg_key;
/* {{{ proto int shm_put(int id, int key, object *variable)
- insert a variable into shared memory. */
+ Insert a variable into shared memory */
PHP_FUNCTION(shm_put_var)
{
pval **arg_id, **arg_key, **arg_var;
/* {{{ proto string/float/int/array shm_get_var(int id, int key)
- returns a variable into shared memory. */
+ Returns a variable into shared memory */
PHP_FUNCTION(shm_get_var)
{
pval **arg_id, **arg_key;
/* }}} */
/* {{{ proto int shm_remove_var(int id, int key)
- removes variable from shared memory. */
+ Removes variable from shared memory */
PHP_FUNCTION(shm_remove_var)
{
pval **arg_id, **arg_key;
/* }}} */
-
-
-
-
-
/* inserts an ascii-string into shared memory */
int php_put_shm_data(sysvshm_chunk_head *ptr,long key,char *data, long len) {
sysvshm_chunk* shm_var;
/************************* EXTENSION FUNCTIONS *************************/
-/* {{{ proto int xml_parser_create()
+/* {{{ proto int xml_parser_create(void)
Create an XML parser */
PHP_FUNCTION(xml_parser_create)
{
}
/* }}} */
-/* {{{ proto int xml_parse(int pind, string data[, int isFinal])
+/* {{{ proto int xml_parse(int pind, string data [, int isFinal])
Start parsing an XML document */
PHP_FUNCTION(xml_parse)
{
}
/* }}} */
-/* {{{ proto int xml_parse_into_struct(int pind, string data,array &struct,array &index)
+/* {{{ proto int xml_parse_into_struct(int pind, string data, array &struct, array &index)
Parsing a XML document */
PHP_FUNCTION(xml_parse_into_struct)
/* }}} */
/* {{{ proto int xml_get_current_column_number(int pind)
- Get current column number for an XML parser
-*/
+ Get current column number for an XML parser */
PHP_FUNCTION(xml_get_current_column_number)
{
xml_parser *parser;
};
/* {{{ proto string yp_get_default_domain(void)
- Returns the domain or false */
+ Returns the domain or false */
PHP_FUNCTION(yp_get_default_domain) {
char *outdomain;
/* }}} */
/* {{{ proto int yp_order(string domain, string map)
- Returns the order number or false */
+ Returns the order number or false */
PHP_FUNCTION(yp_order) {
pval **domain, **map;
/* }}} */
/* {{{ proto string yp_master(string domain, string map)
- Returns the machine name of the master */
+ Returns the machine name of the master */
PHP_FUNCTION(yp_master) {
pval **domain, **map;
char *outname;
/* }}} */
/* {{{ proto string yp_match(string domain, string map, string key)
- Returns the matched line or false */
+ Returns the matched line or false */
PHP_FUNCTION(yp_match) {
pval **domain, **map, **key;
char *outval;
/* }}} */
/* {{{ proto array yp_first(string domain, string map)
- Returns the first key as $var["key"] and the first line as $var["value"] */
+ Returns the first key as $var["key"] and the first line as $var["value"] */
PHP_FUNCTION(yp_first) {
pval **domain, **map;
char *outval, *outkey;
/* }}} */
/* {{{ proto array yp_next(string domain, string map, string key)
- Returns an array with $var[$key] and the the line as the value */
+ Returns an array with $var[$key] and the the line as the value */
PHP_FUNCTION(yp_next) {
pval **domain, **map, **key;
char *outval, *outkey;
}
/* {{{ proto array gzfile(string filename [, int use_include_path])
-Read und uncompress entire .gz-file into an array */
+ Read und uncompress entire .gz-file into an array */
PHP_FUNCTION(gzfile) {
pval **filename, **arg2;
gzFile zp;
/* }}} */
/* {{{ proto int gzopen(string filename, string mode [, int use_include_path])
-Open a .gz-file and return a .gz-file pointer */
+ Open a .gz-file and return a .gz-file pointer */
PHP_FUNCTION(gzopen) {
pval **arg1, **arg2, **arg3;
gzFile *zp;
/* }}} */
/* {{{ proto int gzclose(int zp)
-Close an open .gz-file pointer */
+ Close an open .gz-file pointer */
PHP_FUNCTION(gzclose) {
pval **arg1;
gzFile *zp;
/* }}} */
/* {{{ proto int gzeof(int zp)
-Test for end-of-file on a .gz-file pointer */
+ Test for end-of-file on a .gz-file pointer */
PHP_FUNCTION(gzeof) {
pval **arg1;
gzFile *zp;
/* }}} */
/* {{{ proto string gzgets(int zp, int length)
-Get a line from .gz-file pointer */
+ Get a line from .gz-file pointer */
PHP_FUNCTION(gzgets) {
pval **arg1, **arg2;
gzFile *zp;
/* }}} */
/* {{{ proto string gzgetc(int zp)
-Get a character from .gz-file pointer */
+ Get a character from .gz-file pointer */
PHP_FUNCTION(gzgetc) {
pval **arg1;
gzFile *zp;
/* Strip any HTML tags while reading */
/* {{{ proto string gzgetss(int zp, int length [, string allowable_tags])
-Get a line from file pointer and strip HTML tags */
+ Get a line from file pointer and strip HTML tags */
PHP_FUNCTION(gzgetss)
{
pval **fd, **bytes, **allow=NULL;
/* }}} */
/* {{{ proto int gzwrite(int zp, string str [, int length])
-Binary-safe .gz-file write */
+ Binary-safe .gz-file write */
PHP_FUNCTION(gzwrite) {
pval **arg1, **arg2, **arg3=NULL;
gzFile *zp;
/* }}} */
/* {{{ proto int gzrewind(int zp)
-Rewind the position of a .gz-file pointer */
+ Rewind the position of a .gz-file pointer */
PHP_FUNCTION(gzrewind) {
pval **arg1;
gzFile *zp;
/* }}} */
/* {{{ proto int gztell(int zp)
-Get .gz-file pointer's read/write position */
+ Get .gz-file pointer's read/write position */
PHP_FUNCTION(gztell) {
pval **arg1;
long pos;
/* }}} */
/* {{{ proto int gzseek(int zp, int offset)
-Seek on a file pointer */
+ Seek on a file pointer */
PHP_FUNCTION(gzseek) {
pval **arg1, **arg2;
int ret;
* Read a file and write the ouput to stdout
*/
/* {{{ proto int readgzfile(string filename [, int use_include_path])
-Output a .gz-file */
+ Output a .gz-file */
PHP_FUNCTION(readgzfile) {
pval **arg1, **arg2;
char buf[8192];
* Read to EOF on a file descriptor and write the output to stdout.
*/
/* {{{ proto int gzpassthru(int zp)
-Output all remaining data from a .gz-file pointer */
+ Output all remaining data from a .gz-file pointer */
PHP_FUNCTION(gzpassthru) {
pval **arg1;
gzFile *zp;
/* }}} */
/* {{{ proto string gzread(int zp, int length)
-Binary-safe file read */
+ Binary-safe file read */
PHP_FUNCTION(gzread)
{
pval **arg1, **arg2;