sniper Mon Dec 5 17:53:42 2005 EDT
Modified files:
/php-src/ext/standard array.c assert.c basic_functions.c browscap.c
cyr_convert.c dir.c exec.c exec.h file.c
filestat.c image.c info.c iptc.c
php_filestat.h php_string.h quot_print.c
reg.c scanf.c scanf.h string.c type.c
Log:
- Nuke php3 legacy
http://cvs.php.net/diff.php/php-src/ext/standard/array.c?r1=1.332&r2=1.333&ty=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.332 php-src/ext/standard/array.c:1.333
--- php-src/ext/standard/array.c:1.332 Sun Oct 30 08:46:34 2005
+++ php-src/ext/standard/array.c Mon Dec 5 17:53:15 2005
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.332 2005/10/30 13:46:34 iliaa Exp $ */
+/* $Id: array.c,v 1.333 2005/12/05 22:53:15 sniper Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -361,15 +361,15 @@
{
Bucket *f;
Bucket *s;
- pval result;
- pval *first;
- pval *second;
+ zval result;
+ zval *first;
+ zval *second;
f = *((Bucket **) a);
s = *((Bucket **) b);
- first = *((pval **) f->pData);
- second = *((pval **) s->pData);
+ first = *((zval **) f->pData);
+ second = *((zval **) s->pData);
if (ARRAYG(compare_func)(&result, first, second TSRMLS_CC) == FAILURE) {
return 0;
@@ -411,8 +411,8 @@
f = *((Bucket **) a);
s = *((Bucket **) b);
- fval = *((pval **) f->pData);
- sval = *((pval **) s->pData);
+ fval = *((zval **) f->pData);
+ sval = *((zval **) s->pData);
first = *fval;
second = *sval;
if (Z_TYPE_P(fval) != IS_STRING) {
@@ -717,9 +717,9 @@
{
Bucket *f;
Bucket *s;
- pval key1, key2;
- pval *args[2];
- pval retval;
+ zval key1, key2;
+ zval *args[2];
+ zval retval;
int status;
args[0] = &key1;
@@ -808,7 +808,7 @@
Advances array argument's internal pointer to the last element and return
it */
PHP_FUNCTION(end)
{
- pval **array, **entry;
+ zval **array, **entry;
HashTable *target_hash;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) ==
FAILURE) {
@@ -835,7 +835,7 @@
Move array argument's internal pointer to the previous element and return
it */
PHP_FUNCTION(prev)
{
- pval **array, **entry;
+ zval **array, **entry;
HashTable *target_hash;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) ==
FAILURE) {
@@ -862,7 +862,7 @@
Move array argument's internal pointer to the next element and return it */
PHP_FUNCTION(next)
{
- pval **array, **entry;
+ zval **array, **entry;
HashTable *target_hash;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) ==
FAILURE) {
@@ -889,7 +889,7 @@
Set array argument's internal pointer to the first element and return it */
PHP_FUNCTION(reset)
{
- pval **array, **entry;
+ zval **array, **entry;
HashTable *target_hash;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) ==
FAILURE) {
@@ -916,7 +916,7 @@
Return the element currently pointed to by the internal array pointer */
PHP_FUNCTION(current)
{
- pval **array, **entry;
+ zval **array, **entry;
HashTable *target_hash;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) ==
FAILURE) {
@@ -938,7 +938,7 @@
Return the key of the element currently pointed to by the internal array
pointer */
PHP_FUNCTION(key)
{
- pval **array;
+ zval **array;
char *string_key;
uint string_length;
ulong num_key;
@@ -976,7 +976,7 @@
PHP_FUNCTION(min)
{
int argc=ZEND_NUM_ARGS();
- pval **result;
+ zval **result;
if (argc<=0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Atleast one value
should be passed");
@@ -984,7 +984,7 @@
}
set_compare_func(SORT_REGULAR TSRMLS_CC);
if (argc == 1) {
- pval **arr;
+ zval **arr;
if (zend_get_parameters_ex(1, &arr) == FAILURE ||
Z_TYPE_PP(arr) != IS_ARRAY) {
WRONG_PARAM_COUNT;
@@ -996,8 +996,8 @@
RETURN_FALSE;
}
} else {
- pval ***args = (pval ***) safe_emalloc(sizeof(pval **),
ZEND_NUM_ARGS(), 0);
- pval **min, result;
+ zval ***args = (zval ***) safe_emalloc(sizeof(zval **),
ZEND_NUM_ARGS(), 0);
+ zval **min, result;
int i;
if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(),
args)==FAILURE) {
@@ -1026,7 +1026,7 @@
PHP_FUNCTION(max)
{
int argc=ZEND_NUM_ARGS();
- pval **result;
+ zval **result;
if (argc<=0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Atleast one value
should be passed");
@@ -1034,7 +1034,7 @@
}
set_compare_func(SORT_REGULAR TSRMLS_CC);
if (argc == 1) {
- pval **arr;
+ zval **arr;
if (zend_get_parameters_ex(1, &arr) == FAILURE ||
Z_TYPE_PP(arr) != IS_ARRAY) {
WRONG_PARAM_COUNT;
@@ -1046,8 +1046,8 @@
RETURN_FALSE;
}
} else {
- pval ***args = (pval ***) safe_emalloc(sizeof(pval **),
ZEND_NUM_ARGS(), 0);
- pval **max, result;
+ zval ***args = (zval ***) safe_emalloc(sizeof(zval **),
ZEND_NUM_ARGS(), 0);
+ zval **max, result;
int i;
if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) ==
FAILURE) {
http://cvs.php.net/diff.php/php-src/ext/standard/assert.c?r1=1.62&r2=1.63&ty=u
Index: php-src/ext/standard/assert.c
diff -u php-src/ext/standard/assert.c:1.62 php-src/ext/standard/assert.c:1.63
--- php-src/ext/standard/assert.c:1.62 Thu Aug 18 09:34:02 2005
+++ php-src/ext/standard/assert.c Mon Dec 5 17:53:16 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: assert.c,v 1.62 2005/08/18 13:34:02 sniper Exp $ */
+/* $Id: assert.c,v 1.63 2005/12/05 22:53:16 sniper Exp $ */
/* {{{ includes/startup/misc */
@@ -234,7 +234,7 @@
PHP_FUNCTION(assert_options)
{
- pval **what, **value;
+ zval **what, **value;
int oldint;
int ac = ZEND_NUM_ARGS();
http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.739&r2=1.740&ty=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.739
php-src/ext/standard/basic_functions.c:1.740
--- php-src/ext/standard/basic_functions.c:1.739 Thu Dec 1 06:49:46 2005
+++ php-src/ext/standard/basic_functions.c Mon Dec 5 17:53:16 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.739 2005/12/01 11:49:46 dmitry Exp $ */
+/* $Id: basic_functions.c,v 1.740 2005/12/05 22:53:16 sniper Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -165,7 +165,7 @@
#undef sprintf
-function_entry basic_functions[] = {
+zend_function_entry basic_functions[] = {
PHP_FE(constant,
NULL)
PHP_FE(bin2hex,
NULL)
PHP_FE(sleep,
NULL)
@@ -1438,7 +1438,7 @@
Set the value of an environment variable */
PHP_FUNCTION(putenv)
{
- pval **str;
+ zval **str;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str) == FAILURE)
{
WRONG_PARAM_COUNT;
@@ -1734,7 +1734,7 @@
Delay for a given number of seconds */
PHP_FUNCTION(sleep)
{
- pval **num;
+ zval **num;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE)
{
WRONG_PARAM_COUNT;
@@ -1755,7 +1755,7 @@
PHP_FUNCTION(usleep)
{
#if HAVE_USLEEP
- pval **num;
+ zval **num;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE)
{
WRONG_PARAM_COUNT;
@@ -1854,7 +1854,7 @@
Get the value of a PHP configuration option */
PHP_FUNCTION(get_cfg_var)
{
- pval **varname;
+ zval **varname;
char *value;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &varname) ==
FAILURE) {
@@ -1874,7 +1874,7 @@
Set the current active configuration setting of magic_quotes_runtime and
return previous */
PHP_FUNCTION(set_magic_quotes_runtime)
{
- pval **new_setting;
+ zval **new_setting;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &new_setting) ==
FAILURE) {
RETURN_FALSE;
@@ -1920,7 +1920,7 @@
Send an error message somewhere */
PHP_FUNCTION(error_log)
{
- pval **string, **erropt = NULL, **option = NULL, **emailhead = NULL;
+ zval **string, **erropt = NULL, **option = NULL, **emailhead = NULL;
int opt_err = 0;
char *message, *opt = NULL, *headers = NULL;
@@ -2541,7 +2541,7 @@
Get a configuration option */
PHP_FUNCTION(ini_get)
{
- pval **varname;
+ zval **varname;
char *str;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &varname) ==
FAILURE) {
@@ -2639,7 +2639,7 @@
Set a configuration option, returns false on error and the old value of the
configuration option on success */
PHP_FUNCTION(ini_set)
{
- pval **varname, **new_value;
+ zval **varname, **new_value;
char *old_value;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &varname,
&new_value) == FAILURE) {
@@ -2702,7 +2702,7 @@
Restore the value of a configuration option specified by varname */
PHP_FUNCTION(ini_restore)
{
- pval **varname;
+ zval **varname;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &varname) ==
FAILURE) {
WRONG_PARAM_COUNT;
@@ -2719,7 +2719,7 @@
PHP_FUNCTION(set_include_path)
{
- pval **new_value;
+ zval **new_value;
char *old_value;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &new_value) ==
FAILURE) {
@@ -2824,7 +2824,7 @@
Set whether we want to ignore a user abort event or not */
PHP_FUNCTION(ignore_user_abort)
{
- pval **arg;
+ zval **arg;
int old_setting;
old_setting = PG(ignore_user_abort);
@@ -2854,7 +2854,7 @@
Returns port associated with service. Protocol must be "tcp" or "udp" */
PHP_FUNCTION(getservbyname)
{
- pval **name, **proto;
+ zval **name, **proto;
struct servent *serv;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &name, &proto) ==
FAILURE) {
@@ -2879,7 +2879,7 @@
Returns service name associated with port. Protocol must be "tcp" or "udp"
*/
PHP_FUNCTION(getservbyport)
{
- pval **port, **proto;
+ zval **port, **proto;
struct servent *serv;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &port, &proto) ==
FAILURE) {
@@ -2904,7 +2904,7 @@
Returns protocol number associated with name as per /etc/protocols */
PHP_FUNCTION(getprotobyname)
{
- pval **name;
+ zval **name;
struct protoent *ent;
if (ZEND_NUM_ARGS() != 1
@@ -2932,7 +2932,7 @@
Returns protocol name associated with protocol number proto */
PHP_FUNCTION(getprotobynumber)
{
- pval **proto;
+ zval **proto;
struct protoent *ent;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &proto) ==
FAILURE) {
http://cvs.php.net/diff.php/php-src/ext/standard/browscap.c?r1=1.85&r2=1.86&ty=u
Index: php-src/ext/standard/browscap.c
diff -u php-src/ext/standard/browscap.c:1.85
php-src/ext/standard/browscap.c:1.86
--- php-src/ext/standard/browscap.c:1.85 Wed Aug 3 10:07:57 2005
+++ php-src/ext/standard/browscap.c Mon Dec 5 17:53:17 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: browscap.c,v 1.85 2005/08/03 14:07:57 sniper Exp $ */
+/* $Id: browscap.c,v 1.86 2005/12/05 22:53:17 sniper Exp $ */
#include "php.h"
#include "php_regex.h"
@@ -33,17 +33,17 @@
/* OBJECTS_FIXME: This whole extension needs going through. The use of objects
looks pretty broken here */
-static void browscap_entry_dtor(zval **pvalue)
+static void browscap_entry_dtor(zval **zvalue)
{
- if (Z_TYPE_PP(pvalue) == IS_ARRAY) {
- zend_hash_destroy(Z_ARRVAL_PP(pvalue));
- free(Z_ARRVAL_PP(pvalue));
- } else if (Z_TYPE_PP(pvalue) == IS_STRING) {
- if (Z_STRVAL_PP(pvalue)) {
- free(Z_STRVAL_PP(pvalue));
+ if (Z_TYPE_PP(zvalue) == IS_ARRAY) {
+ zend_hash_destroy(Z_ARRVAL_PP(zvalue));
+ free(Z_ARRVAL_PP(zvalue));
+ } else if (Z_TYPE_PP(zvalue) == IS_STRING) {
+ if (Z_STRVAL_PP(zvalue)) {
+ free(Z_STRVAL_PP(zvalue));
}
}
- free(*pvalue);
+ free(*zvalue);
}
/* {{{ convert_browscap_pattern
http://cvs.php.net/diff.php/php-src/ext/standard/cyr_convert.c?r1=1.27&r2=1.28&ty=u
Index: php-src/ext/standard/cyr_convert.c
diff -u php-src/ext/standard/cyr_convert.c:1.27
php-src/ext/standard/cyr_convert.c:1.28
--- php-src/ext/standard/cyr_convert.c:1.27 Wed Aug 3 10:07:57 2005
+++ php-src/ext/standard/cyr_convert.c Mon Dec 5 17:53:17 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cyr_convert.c,v 1.27 2005/08/03 14:07:57 sniper Exp $ */
+/* $Id: cyr_convert.c,v 1.28 2005/12/05 22:53:17 sniper Exp $ */
#include <stdlib.h>
@@ -271,7 +271,7 @@
Convert from one Cyrillic character set to another */
PHP_FUNCTION(convert_cyr_string)
{
- pval **str_arg, **fr_cs, **to_cs;
+ zval **str_arg, **fr_cs, **to_cs;
unsigned char *str;
if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3,&str_arg,&fr_cs,
&to_cs)==FAILURE)
http://cvs.php.net/diff.php/php-src/ext/standard/dir.c?r1=1.148&r2=1.149&ty=u
Index: php-src/ext/standard/dir.c
diff -u php-src/ext/standard/dir.c:1.148 php-src/ext/standard/dir.c:1.149
--- php-src/ext/standard/dir.c:1.148 Tue Aug 23 08:53:22 2005
+++ php-src/ext/standard/dir.c Mon Dec 5 17:53:17 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dir.c,v 1.148 2005/08/23 12:53:22 dmitry Exp $ */
+/* $Id: dir.c,v 1.149 2005/12/05 22:53:17 sniper Exp $ */
/* {{{ includes/startup/misc */
@@ -231,7 +231,7 @@
Close directory connection identified by the dir_handle */
PHP_FUNCTION(closedir)
{
- pval **id, **tmp, *myself;
+ zval **id, **tmp, *myself;
php_stream *dirp;
FETCH_DIRP();
@@ -329,7 +329,7 @@
Rewind dir_handle back to the start */
PHP_FUNCTION(rewinddir)
{
- pval **id, **tmp, *myself;
+ zval **id, **tmp, *myself;
php_stream *dirp;
FETCH_DIRP();
@@ -342,7 +342,7 @@
Read directory entry from dir_handle */
PHP_NAMED_FUNCTION(php_if_readdir)
{
- pval **id, **tmp, *myself;
+ zval **id, **tmp, *myself;
php_stream *dirp;
php_stream_dirent entry;
http://cvs.php.net/diff.php/php-src/ext/standard/exec.c?r1=1.113&r2=1.114&ty=u
Index: php-src/ext/standard/exec.c
diff -u php-src/ext/standard/exec.c:1.113 php-src/ext/standard/exec.c:1.114
--- php-src/ext/standard/exec.c:1.113 Wed Aug 3 10:07:58 2005
+++ php-src/ext/standard/exec.c Mon Dec 5 17:53:18 2005
@@ -16,7 +16,7 @@
| Ilia Alshanetsky <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: exec.c,v 1.113 2005/08/03 14:07:58 sniper Exp $ */
+/* $Id: exec.c,v 1.114 2005/12/05 22:53:18 sniper Exp $ */
#include <stdio.h>
#include "php.h"
@@ -57,7 +57,7 @@
* If type==3, output will be printed binary, no lines will be saved or
returned (passthru)
*
*/
-int php_exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC)
+int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC)
{
FILE *fp;
char *buf, *tmp=NULL;
@@ -372,7 +372,7 @@
Escape shell metacharacters */
PHP_FUNCTION(escapeshellcmd)
{
- pval **arg1;
+ zval **arg1;
char *cmd = NULL;
if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
@@ -392,7 +392,7 @@
Quote and escape an argument for use in a shell command */
PHP_FUNCTION(escapeshellarg)
{
- pval **arg1;
+ zval **arg1;
char *cmd = NULL;
if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
@@ -414,7 +414,7 @@
{
FILE *in;
size_t total_readbytes;
- pval **cmd;
+ zval **cmd;
char *ret;
php_stream *stream;
http://cvs.php.net/diff.php/php-src/ext/standard/exec.h?r1=1.25&r2=1.26&ty=u
Index: php-src/ext/standard/exec.h
diff -u php-src/ext/standard/exec.h:1.25 php-src/ext/standard/exec.h:1.26
--- php-src/ext/standard/exec.h:1.25 Sat Sep 24 11:22:57 2005
+++ php-src/ext/standard/exec.h Mon Dec 5 17:53:19 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exec.h,v 1.25 2005/09/24 15:22:57 edink Exp $ */
+/* $Id: exec.h,v 1.26 2005/12/05 22:53:19 sniper Exp $ */
#ifndef EXEC_H
#define EXEC_H
@@ -36,6 +36,6 @@
PHPAPI char *php_escape_shell_cmd(char *);
PHPAPI char *php_escape_shell_arg(char *);
-int php_exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC);
+int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC);
#endif /* EXEC_H */
http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.412&r2=1.413&ty=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.412 php-src/ext/standard/file.c:1.413
--- php-src/ext/standard/file.c:1.412 Fri Oct 21 08:14:11 2005
+++ php-src/ext/standard/file.c Mon Dec 5 17:53:19 2005
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.412 2005/10/21 12:14:11 dmitry Exp $ */
+/* $Id: file.c,v 1.413 2005/12/05 22:53:19 sniper Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -823,7 +823,7 @@
Create a unique filename in a directory */
PHP_FUNCTION(tempnam)
{
- pval **arg1, **arg2;
+ zval **arg1, **arg2;
char *d;
char *opened_path;
char p[64];
@@ -1501,7 +1501,7 @@
Return or change the umask */
PHP_FUNCTION(umask)
{
- pval **arg1;
+ zval **arg1;
int oldumask;
int arg_count = ZEND_NUM_ARGS();
http://cvs.php.net/diff.php/php-src/ext/standard/filestat.c?r1=1.138&r2=1.139&ty=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.138
php-src/ext/standard/filestat.c:1.139
--- php-src/ext/standard/filestat.c:1.138 Sat Oct 22 13:26:16 2005
+++ php-src/ext/standard/filestat.c Mon Dec 5 17:53:21 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.138 2005/10/22 17:26:16 wez Exp $ */
+/* $Id: filestat.c,v 1.139 2005/12/05 22:53:21 sniper Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -118,7 +118,7 @@
Get total disk space for filesystem that path is on */
PHP_FUNCTION(disk_total_space)
{
- pval **path;
+ zval **path;
#ifdef WINDOWS
double bytestotal;
@@ -221,7 +221,7 @@
Get free disk space for filesystem that path is on */
PHP_FUNCTION(disk_free_space)
{
- pval **path;
+ zval **path;
#ifdef WINDOWS
double bytesfree;
@@ -329,7 +329,7 @@
PHP_FUNCTION(chgrp)
{
#if !defined(WINDOWS)
- pval **filename, **group;
+ zval **filename, **group;
gid_t gid;
struct group *gr=NULL;
int ret;
@@ -379,7 +379,7 @@
PHP_FUNCTION(chown)
{
#if !defined(WINDOWS)
- pval **filename, **user;
+ zval **filename, **user;
int ret;
uid_t uid;
struct passwd *pw = NULL;
@@ -425,7 +425,7 @@
Change file mode */
PHP_FUNCTION(chmod)
{
- pval **filename, **mode;
+ zval **filename, **mode;
int ret;
mode_t imode;
@@ -466,7 +466,7 @@
Set modification time of file */
PHP_FUNCTION(touch)
{
- pval **filename, **filetime, **fileatime;
+ zval **filename, **filetime, **fileatime;
int ret;
struct stat sb;
FILE *file;
@@ -547,7 +547,7 @@
/* {{{ php_stat
*/
-PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int
type, pval *return_value TSRMLS_DC)
+PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int
type, zval *return_value TSRMLS_DC)
{
zval *stat_dev, *stat_ino, *stat_mode, *stat_nlink, *stat_uid,
*stat_gid, *stat_rdev,
*stat_size, *stat_atime, *stat_mtime, *stat_ctime,
*stat_blksize, *stat_blocks;
@@ -793,7 +793,7 @@
/* another quickie macro to make defining similar functions easier */
#define FileFunction(name, funcnum) \
void name(INTERNAL_FUNCTION_PARAMETERS) { \
- pval **filename; \
+ zval **filename; \
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) ==
FAILURE) { \
WRONG_PARAM_COUNT; \
} \
http://cvs.php.net/diff.php/php-src/ext/standard/image.c?r1=1.116&r2=1.117&ty=u
Index: php-src/ext/standard/image.c
diff -u php-src/ext/standard/image.c:1.116 php-src/ext/standard/image.c:1.117
--- php-src/ext/standard/image.c:1.116 Tue Aug 23 05:33:46 2005
+++ php-src/ext/standard/image.c Mon Dec 5 17:53:21 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: image.c,v 1.116 2005/08/23 09:33:46 dmitry Exp $ */
+/* $Id: image.c,v 1.117 2005/12/05 22:53:21 sniper Exp $ */
#include "php.h"
#include <stdio.h>
@@ -468,7 +468,7 @@
/* {{{ php_handle_jpeg
main loop to parse JPEG structure */
-static struct gfxinfo *php_handle_jpeg (php_stream * stream, pval *info
TSRMLS_DC)
+static struct gfxinfo *php_handle_jpeg (php_stream * stream, zval *info
TSRMLS_DC)
{
struct gfxinfo *result = NULL;
unsigned int marker = M_PSEUDO;
@@ -796,7 +796,7 @@
/* {{{ php_handle_tiff
main loop to parse TIFF structure */
-static struct gfxinfo *php_handle_tiff (php_stream * stream, pval *info, int
motorola_intel TSRMLS_DC)
+static struct gfxinfo *php_handle_tiff (php_stream * stream, zval *info, int
motorola_intel TSRMLS_DC)
{
struct gfxinfo *result = NULL;
int i, num_entries;
http://cvs.php.net/diff.php/php-src/ext/standard/info.c?r1=1.256&r2=1.257&ty=u
Index: php-src/ext/standard/info.c
diff -u php-src/ext/standard/info.c:1.256 php-src/ext/standard/info.c:1.257
--- php-src/ext/standard/info.c:1.256 Tue Nov 22 19:15:26 2005
+++ php-src/ext/standard/info.c Mon Dec 5 17:53:22 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.256 2005/11/23 00:15:26 iliaa Exp $ */
+/* $Id: info.c,v 1.257 2005/12/05 22:53:22 sniper Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -708,7 +708,7 @@
}
if (flag & PHP_INFO_VARIABLES) {
- pval **data;
+ zval **data;
SECTION("PHP Variables");
http://cvs.php.net/diff.php/php-src/ext/standard/iptc.c?r1=1.50&r2=1.51&ty=u
Index: php-src/ext/standard/iptc.c
diff -u php-src/ext/standard/iptc.c:1.50 php-src/ext/standard/iptc.c:1.51
--- php-src/ext/standard/iptc.c:1.50 Wed Aug 3 10:08:07 2005
+++ php-src/ext/standard/iptc.c Mon Dec 5 17:53:29 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: iptc.c,v 1.50 2005/08/03 14:08:07 sniper Exp $ */
+/* $Id: iptc.c,v 1.51 2005/12/05 22:53:29 sniper Exp $ */
/*
* Functions to parse & compse IPTC data.
@@ -360,7 +360,7 @@
INIT_PZVAL(values);
array_init(values);
- zend_hash_update(Z_ARRVAL_P(return_value), key,
strlen(key)+1, (void *) &values, sizeof(pval*), (void **) &element);
+ zend_hash_update(Z_ARRVAL_P(return_value), key,
strlen(key)+1, (void *) &values, sizeof(zval*), (void **) &element);
}
add_next_index_stringl(*element, buffer+inx, len, 1);
http://cvs.php.net/diff.php/php-src/ext/standard/php_filestat.h?r1=1.24&r2=1.25&ty=u
Index: php-src/ext/standard/php_filestat.h
diff -u php-src/ext/standard/php_filestat.h:1.24
php-src/ext/standard/php_filestat.h:1.25
--- php-src/ext/standard/php_filestat.h:1.24 Wed Aug 3 10:08:09 2005
+++ php-src/ext/standard/php_filestat.h Mon Dec 5 17:53:29 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_filestat.h,v 1.24 2005/08/03 14:08:09 sniper Exp $ */
+/* $Id: php_filestat.h,v 1.25 2005/12/05 22:53:29 sniper Exp $ */
#ifndef PHP_FILESTAT_H
#define PHP_FILESTAT_H
@@ -81,7 +81,7 @@
typedef int php_stat_len;
#endif
-PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int
type, pval *return_value TSRMLS_DC);
+PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int
type, zval *return_value TSRMLS_DC);
/* Switches for various filestat functions: */
#define FS_PERMS 0
http://cvs.php.net/diff.php/php-src/ext/standard/php_string.h?r1=1.93&r2=1.94&ty=u
Index: php-src/ext/standard/php_string.h
diff -u php-src/ext/standard/php_string.h:1.93
php-src/ext/standard/php_string.h:1.94
--- php-src/ext/standard/php_string.h:1.93 Fri Oct 28 15:21:46 2005
+++ php-src/ext/standard/php_string.h Mon Dec 5 17:53:29 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_string.h,v 1.93 2005/10/28 19:21:46 fmk Exp $ */
+/* $Id: php_string.h,v 1.94 2005/12/05 22:53:29 sniper Exp $ */
/* Synced with php 3.0 revision 1.43 1999-06-16 [ssb] */
@@ -142,8 +142,8 @@
PHPAPI char *php_trim(char *c, int len, char *what, int what_len, zend_uchar
str_type, zval *return_value, int mode TSRMLS_DC);
PHPAPI int32_t php_u_strip_tags(UChar *rbuf, int32_t len, int *stateptr, UChar
*allow, int32_t allow_len TSRMLS_DC);
PHPAPI size_t php_strip_tags(char *rbuf, int len, int *state, char *allow, int
allow_len);
-PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int
to_len, pval *result, int case_sensitivity, int *replace_count);
-PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int
to_len, pval *result);
+PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int
to_len, zval *result, int case_sensitivity, int *replace_count);
+PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int
to_len, zval *result);
PHPAPI void php_implode(zval *delim, zval *arr, zval *return_value);
PHPAPI void php_explode(char *delim, uint delim_len, char *str, uint str_len,
zend_uchar str_type, zval *return_value, int limit);
http://cvs.php.net/diff.php/php-src/ext/standard/quot_print.c?r1=1.29&r2=1.30&ty=u
Index: php-src/ext/standard/quot_print.c
diff -u php-src/ext/standard/quot_print.c:1.29
php-src/ext/standard/quot_print.c:1.30
--- php-src/ext/standard/quot_print.c:1.29 Wed Aug 3 10:08:11 2005
+++ php-src/ext/standard/quot_print.c Mon Dec 5 17:53:30 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: quot_print.c,v 1.29 2005/08/03 14:08:11 sniper Exp $ */
+/* $Id: quot_print.c,v 1.30 2005/12/05 22:53:30 sniper Exp $ */
#include <stdlib.h>
@@ -151,7 +151,7 @@
Convert a quoted-printable string to an 8 bit string */
PHP_FUNCTION(quoted_printable_decode)
{
- pval **arg1;
+ zval **arg1;
char *str_in, *str_out;
int i = 0, j = 0, k;
http://cvs.php.net/diff.php/php-src/ext/standard/reg.c?r1=1.82&r2=1.83&ty=u
Index: php-src/ext/standard/reg.c
diff -u php-src/ext/standard/reg.c:1.82 php-src/ext/standard/reg.c:1.83
--- php-src/ext/standard/reg.c:1.82 Wed Aug 3 10:08:12 2005
+++ php-src/ext/standard/reg.c Mon Dec 5 17:53:30 2005
@@ -17,7 +17,7 @@
| Jaakko Hyvätti <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.82 2005/08/03 14:08:12 sniper Exp $ */
+/* $Id: reg.c,v 1.83 2005/12/05 22:53:30 sniper Exp $ */
#include <stdio.h>
#include <ctype.h>
@@ -184,7 +184,7 @@
*/
static void php_ereg(INTERNAL_FUNCTION_PARAMETERS, int icase)
{
- pval **regex, /* Regular expression */
+ zval **regex, /* Regular expression */
**findin, /* String to apply expression to */
**array = NULL; /* Optional register array */
regex_t re;
@@ -442,7 +442,7 @@
*/
static void php_ereg_replace(INTERNAL_FUNCTION_PARAMETERS, int icase)
{
- pval **arg_pattern,
+ zval **arg_pattern,
**arg_replace,
**arg_string;
char *pattern;
http://cvs.php.net/diff.php/php-src/ext/standard/scanf.c?r1=1.31&r2=1.32&ty=u
Index: php-src/ext/standard/scanf.c
diff -u php-src/ext/standard/scanf.c:1.31 php-src/ext/standard/scanf.c:1.32
--- php-src/ext/standard/scanf.c:1.31 Wed Aug 3 10:08:12 2005
+++ php-src/ext/standard/scanf.c Mon Dec 5 17:53:30 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: scanf.c,v 1.31 2005/08/03 14:08:12 sniper Exp $ */
+/* $Id: scanf.c,v 1.32 2005/12/05 22:53:30 sniper Exp $ */
/*
scanf.c --
@@ -126,7 +126,7 @@
static char *BuildCharSet(CharSet *cset, char *format);
static int CharInSet(CharSet *cset, int ch);
static void ReleaseCharSet(CharSet *cset);
-static inline void scan_set_error_return(int numVars, pval **return_value);
+static inline void scan_set_error_return(int numVars, zval **return_value);
/* {{{ BuildCharSet
@@ -594,7 +594,7 @@
PHPAPI int php_sscanf_internal( char *string, char *format,
int argCount, zval ***args,
- int varStart, pval **return_value TSRMLS_DC)
+ int varStart, zval **return_value TSRMLS_DC)
{
int numVars, nconversions, totalVars = -1;
int i, value, result;
@@ -1238,13 +1238,13 @@
/* }}} */
/* the compiler choked when i tried to make this a macro */
-static inline void scan_set_error_return(int numVars, pval **return_value)
+static inline void scan_set_error_return(int numVars, zval **return_value)
{
if (numVars) {
Z_TYPE_PP(return_value) = IS_LONG;
Z_LVAL_PP(return_value) = SCAN_ERROR_EOF; /* EOF marker */
} else {
- /* pval_destructor( *return_value ); */
+ /* zval_dtor( *return_value ); */
/* convert_to_null calls destructor */
convert_to_null( *return_value );
}
http://cvs.php.net/diff.php/php-src/ext/standard/scanf.h?r1=1.14&r2=1.15&ty=u
Index: php-src/ext/standard/scanf.h
diff -u php-src/ext/standard/scanf.h:1.14 php-src/ext/standard/scanf.h:1.15
--- php-src/ext/standard/scanf.h:1.14 Wed Aug 3 10:08:12 2005
+++ php-src/ext/standard/scanf.h Mon Dec 5 17:53:30 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: scanf.h,v 1.14 2005/08/03 14:08:12 sniper Exp $ */
+/* $Id: scanf.h,v 1.15 2005/12/05 22:53:30 sniper Exp $ */
#ifndef SCANF_H
#define SCANF_H
@@ -42,8 +42,6 @@
* e.g. fscanf
*/
PHPAPI int ValidateFormat(char *format, int numVars, int *totalVars);
-PHPAPI int php_sscanf_internal(char *string,char *format,int argCount,zval
***args,
- int varStart, pval **return_value TSRMLS_DC);
-
+PHPAPI int php_sscanf_internal(char *string, char *format, int argCount, zval
***args, int varStart, zval **return_value TSRMLS_DC);
#endif /* SCANF_H */
http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.507&r2=1.508&ty=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.507 php-src/ext/standard/string.c:1.508
--- php-src/ext/standard/string.c:1.507 Tue Nov 29 11:14:47 2005
+++ php-src/ext/standard/string.c Mon Dec 5 17:53:31 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.507 2005/11/29 16:14:47 iliaa Exp $ */
+/* $Id: string.c,v 1.508 2005/12/05 22:53:31 sniper Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -5159,7 +5159,7 @@
Set locale information */
PHP_FUNCTION(setlocale)
{
- pval ***args = (pval ***) safe_emalloc(sizeof(pval **),
ZEND_NUM_ARGS(), 0);
+ zval ***args = (zval ***) safe_emalloc(sizeof(zval **),
ZEND_NUM_ARGS(), 0);
zval **pcategory, **plocale;
int i, cat, n_args=ZEND_NUM_ARGS();
char *loc, *retval;
http://cvs.php.net/diff.php/php-src/ext/standard/type.c?r1=1.36&r2=1.37&ty=u
Index: php-src/ext/standard/type.c
diff -u php-src/ext/standard/type.c:1.36 php-src/ext/standard/type.c:1.37
--- php-src/ext/standard/type.c:1.36 Tue Aug 23 08:53:30 2005
+++ php-src/ext/standard/type.c Mon Dec 5 17:53:34 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: type.c,v 1.36 2005/08/23 12:53:30 dmitry Exp $ */
+/* $Id: type.c,v 1.37 2005/12/05 22:53:34 sniper Exp $ */
#include "php.h"
#include "php_incomplete_class.h"
@@ -25,7 +25,7 @@
Returns the type of the variable */
PHP_FUNCTION(gettype)
{
- pval **arg;
+ zval **arg;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE)
{
WRONG_PARAM_COUNT;
@@ -99,7 +99,7 @@
Set the type of the variable */
PHP_FUNCTION(settype)
{
- pval **var, **type;
+ zval **var, **type;
char *new_type;
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &var, &type) ==
FAILURE) {
@@ -144,7 +144,7 @@
Get the integer value of a variable using the optional base for the
conversion */
PHP_FUNCTION(intval)
{
- pval **num, **arg_base;
+ zval **num, **arg_base;
int base;
switch (ZEND_NUM_ARGS()) {
@@ -176,7 +176,7 @@
Get the float value of a variable */
PHP_FUNCTION(floatval)
{
- pval **num;
+ zval **num;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE)
{
WRONG_PARAM_COUNT;
@@ -211,7 +211,7 @@
static void php_is_type(INTERNAL_FUNCTION_PARAMETERS, int type)
{
- pval **arg;
+ zval **arg;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE)
{
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only one argument
expected");
@@ -312,7 +312,7 @@
Returns true if variable is a native, unicode or binary string */
PHP_FUNCTION(is_buffer)
{
- pval **arg;
+ zval **arg;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE)
{
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only one argument
expected");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php