Skip to content

Commit

Permalink
ZTS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Jan 19, 2003
1 parent 2500199 commit 1fe4990
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions ext/dbase/dbf_rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down
1 change: 1 addition & 0 deletions ext/oci8/oci8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ext/oracle/oracle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
8 changes: 4 additions & 4 deletions ext/rpc/java/java.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
}
/* }}} */

Expand Down Expand Up @@ -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;
}
/* }}} */
Expand All @@ -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;
}
/* }}} */

Expand Down
4 changes: 2 additions & 2 deletions ext/w32api/w32api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1fe4990

Please sign in to comment.