]> granicus.if.org Git - php/commitdiff
MFH: nuke php3 legacy
authorfoobar <sniper@php.net>
Tue, 6 Dec 2005 01:21:28 +0000 (01:21 +0000)
committerfoobar <sniper@php.net>
Tue, 6 Dec 2005 01:21:28 +0000 (01:21 +0000)
ext/gd/gd.c
ext/sybase/php_sybase_db.c
ext/sybase_ct/php_sybase_ct.h

index b580c1333ca1475d338d4eab54ef76103d45452f..0ebd3489ca2c78126ee2201dccd55384366e76ac 100644 (file)
@@ -2597,7 +2597,7 @@ PHP_FUNCTION(imageinterlace)
 static void php_imagepolygon(INTERNAL_FUNCTION_PARAMETERS, int filled)
 {
        zval **IM, **POINTS, **NPOINTS, **COL;
-       pval **var = NULL;
+       zval **var = NULL;
        gdImagePtr im;
        gdPointPtr points;
        int npoints, col, nelem, i;
@@ -4190,7 +4190,7 @@ PHP_FUNCTION(imagefilter)
 PHP_FUNCTION(imageconvolution)
 {
        zval *SIM, *hash_matrix;
-       pval **var = NULL, **var2 = NULL;
+       zval **var = NULL, **var2 = NULL;
        gdImagePtr im_src = NULL;
        double div, offset;
        int nelem, i, j, res;
index 69cfb67f6e24e4fab18385e1f37dbf286e58a2f3..6cd6db1b03574d8684947baa4c6b67e60b3a97a9 100644 (file)
@@ -72,7 +72,7 @@ typedef struct {
 } sybase_field;
 
 typedef struct {
-        pval ***data;
+        zval ***data;
         sybase_field *fields;
         sybase_link *sybase_ptr;
         int cur_row,cur_field;
@@ -140,7 +140,7 @@ THREAD_LS sybase_module php_sybase_module;
 #define CHECK_LINK(link) { if (link==-1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  A link to the server could not be established"); RETURN_FALSE; } }
 
 
-static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pval **result_ptr, int column_type);
+static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,zval **result_ptr, int column_type);
 
 /* error handler */
 static int php_sybase_error_handler(DBPROCESS *dbproc,int severity,int dberr,
@@ -671,7 +671,7 @@ PHP_FUNCTION(sybase_select_db)
 /* }}} */
        
 
-static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pval **result_ptr, int column_type)
+static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,zval **result_ptr, int column_type)
 {
        zval *result;
 
@@ -840,7 +840,7 @@ PHP_FUNCTION(sybase_query)
        }
        
        result = (sybase_result *) emalloc(sizeof(sybase_result));
-       result->data = (pval ***) safe_emalloc(sizeof(pval **), SYBASE_ROWS_BLOCK, 0);
+       result->data = (zval ***) safe_emalloc(sizeof(zval **), SYBASE_ROWS_BLOCK, 0);
        result->sybase_ptr = sybase_ptr;
        result->cur_field=result->cur_row=result->num_rows=0;
        result->num_fields = num_fields;
@@ -849,9 +849,9 @@ PHP_FUNCTION(sybase_query)
        while (retvalue!=FAIL && retvalue!=NO_MORE_ROWS) {
                result->num_rows++;
                if (result->num_rows > blocks_initialized*SYBASE_ROWS_BLOCK) {
-                       result->data = (pval ***) erealloc(result->data,sizeof(pval **)*SYBASE_ROWS_BLOCK*(++blocks_initialized));
+                       result->data = (zval ***) erealloc(result->data,sizeof(zval **)*SYBASE_ROWS_BLOCK*(++blocks_initialized));
                }
-               result->data[i] = (pval **) safe_emalloc(sizeof(pval *), num_fields, 0);
+               result->data[i] = (zval **) safe_emalloc(sizeof(zval *), num_fields, 0);
                for (j=1; j<=num_fields; j++) {
                        php_sybase_get_column_content(sybase_ptr, j, &result->data[i][j-1], column_types[j-1]);
                        if (!php_sybase_module.compatability_mode) {
@@ -1041,7 +1041,7 @@ PHP_FUNCTION(sybase_fetch_row)
        zval **sybase_result_index;
        int type,i,id;
        sybase_result *result;
-       pval *field_content;
+       zval *field_content;
 
        if (ZEND_NUM_ARGS() !=1 || zend_get_parameters_ex(1, &sybase_result_index)==FAILURE) {
                WRONG_PARAM_COUNT;
@@ -1063,7 +1063,7 @@ PHP_FUNCTION(sybase_fetch_row)
        array_init(return_value);
        for (i=0; i<result->num_fields; i++) {
                ZVAL_ADDREF(result->data[result->cur_row][i]);
-               zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &result->data[result->cur_row][i], sizeof(pval *), NULL);
+               zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &result->data[result->cur_row][i], sizeof(zval *), NULL);
        }
        result->cur_row++;
 }
@@ -1097,9 +1097,9 @@ static void php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS)
        
        for (i=0; i<result->num_fields; i++) {
                ZVAL_ADDREF(result->data[result->cur_row][i]);
-               zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &result->data[result->cur_row][i], sizeof(pval *), NULL);
+               zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &result->data[result->cur_row][i], sizeof(zval *), NULL);
                ZVAL_ADDREF(result->data[result->cur_row][i]);
-               zend_hash_update(Z_ARRVAL_P(return_value), result->fields[i].name, strlen(result->fields[i].name)+1, (void *) &result->data[result->cur_row][i], sizeof(pval  *), NULL);
+               zend_hash_update(Z_ARRVAL_P(return_value), result->fields[i].name, strlen(result->fields[i].name)+1, (void *) &result->data[result->cur_row][i], sizeof(zval  *), NULL);
        }
        result->cur_row++;
 }
index 024d908e6390f576a17841aa5f0234c9fba99ea8..b05a651fccec4f4cc360f5617620b80bc578a67a 100644 (file)
@@ -96,7 +96,7 @@ typedef struct {
 } sybase_field;
 
 typedef struct {
-       pval **data;
+       zval **data;
        sybase_field *fields;
        sybase_link *sybase_ptr;
        int cur_row,cur_field;