]> granicus.if.org Git - php/commitdiff
ZTS fixes.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 19 Jan 2003 08:32:26 +0000 (08:32 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 19 Jan 2003 08:32:26 +0000 (08:32 +0000)
ext/dbase/dbf_rec.c
ext/oci8/oci8.c
ext/oracle/oracle.c
ext/rpc/java/java.c
ext/w32api/w32api.c

index 082e7050f349c56f1a5e75ff081f71294115deef..928a2bfc0f977c8e56e9c8b4e25fd3d6842db029 100644 (file)
@@ -136,6 +136,7 @@ void pack_dbf(dbhead_t *dbh)
 
        /* Try to truncate the file to the right size. */
        if (ftruncate(dbh->db_fd, out_off) != 0) {
+           TSRMLS_FETCH();
            php_error_docref(NULL TSRMLS_CC, E_WARNING, "dbase_pack() couldn't truncate the file to the right size. Some deleted records may still be left in there.");
        }
 
index a0ea9ff770b659d42b02f5da4e7a11c35d2c3d36..32e16f82bc840a4bae1b807fba2f98e60339395e 100644 (file)
@@ -1113,6 +1113,7 @@ oci_get_col(oci_statement *statement, int col, zval **value)
 {
        oci_out_column *outcol = NULL;
        int i;
+       TSRMLS_FETCH();
 
        if (statement->columns == 0) { /* we release the columns at the end of a fetch */
                return NULL;
index e6acf24e4488f86ce5a647f1ce0117c6b718fb1f..41df112f399bb517adbc4609ccd1c24d03a05ce8 100644 (file)
@@ -619,7 +619,7 @@ PHP_FUNCTION(ora_open)
        }
        ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
 
-       cursor = (oraCursor *)emalloc(sizeof(oraCursor);
+       cursor = (oraCursor *)emalloc(sizeof(oraCursor));
        memset(cursor, 0, sizeof(oraCursor));
        if (oopen(&cursor->cda, &conn->lda, (text *) 0, -1, -1, (text *) 0, -1)) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open new cursor (%s)",
index 3203bd3afb514e320f288e9a39c18bb805668728..3ddf457e41393d9a3e9cea4e0ee272f410ba40b5 100644 (file)
@@ -407,7 +407,7 @@ static jobjectArray _java_makeArray(int argc, pval** argv TSRMLS_DC)
 
 /* {{{ checkError 
  */
-static int checkError(pval *value)
+static int checkError(pval *value TSRMLS_DC)
 {
   if (Z_TYPE_P(value) == IS_EXCEPTION) {
     php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", Z_STRVAL_P(value));
@@ -493,7 +493,7 @@ void java_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_refe
   efree(arguments);
   pval_destructor(&function_name->element);
 
-  checkError((pval*)(long)result);
+  checkError((pval*)(long)result TSRMLS_CC);
 }
 /* }}} */
 
@@ -593,7 +593,7 @@ pval java_get_property_handler(zend_property_reference *property_reference)
   TSRMLS_FETCH();
 
   presult = _java_getset_property(property_reference, 0 TSRMLS_CC);
-  checkError(&presult);
+  checkError(&presult TSRMLS_CC);
   return presult;
 }
 /* }}} */
@@ -606,7 +606,7 @@ int java_set_property_handler(zend_property_reference *property_reference, pval
   TSRMLS_FETCH();
 
   presult = _java_getset_property(property_reference, _java_makeArray(1, &value TSRMLS_CC) TSRMLS_CC);
-  return checkError(&presult) ? FAILURE : SUCCESS;
+  return checkError(&presult TSRMLS_CC) ? FAILURE : SUCCESS;
 }
 /* }}} */
 
index 8e8e5a34b3e15e40ddde3598edf15956e2216414..7edd607a2e694f8476f4b3f23a606e8b86426f16 100644 (file)
@@ -2178,8 +2178,8 @@ arguments *w32api_parser_make_argument(char *arg_type, char *arg_name, int byref
        argument_value->type_name = arg_type;
        argument_value->type_id = php_w32api_get_type_id_from_name(arg_type);
 
-       if(argument_value->type_id == W32API_UNKNOWN)
-       {
+       if(argument_value->type_id == W32API_UNKNOWN) {
+               TSRMLS_FETCH();
                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown type %s used as arugment type", arg_type);
        }