Skip to content

Commit

Permalink
Remove stray ZTS macros from codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerGee committed Dec 28, 2020
1 parent 11d3ca8 commit 912f242
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion php-object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ zend_object_handlers php_git2::php_zend_object<StorageType>::handlers;
// This function registers all classes. It should be called by the MINIT startup
// function.

void php_git2::php_git2_register_classes(TSRMLS_D)
void php_git2::php_git2_register_classes()
{
zend_class_entry ce, *pce;

Expand Down
4 changes: 2 additions & 2 deletions php-object.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ extern "C" {

// Helper macros

#define is_subclass_of(a,b) \
(a == b || instanceof_function(a,b TSRMLS_CC))
#define is_subclass_of(a,b) \
(a == b || instanceof_function(a,b))

#define PHP_EMPTY_METHOD(C,M) \
PHP_METHOD(C,M) { }
Expand Down
4 changes: 2 additions & 2 deletions php-odb-backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ ZEND_FUNCTION(backend_foreach_callback)
php_bailout_context ctx(bailer);

if (BAILOUT_ENTER_REGION(ctx)) {
ex.handle(TSRMLS_C);
ex.handle();
}
}
}
Expand Down Expand Up @@ -923,7 +923,7 @@ ZEND_FUNCTION(backend_transfer_progress_callback)
php_bailout_context ctx(bailer);

if (BAILOUT_ENTER_REGION(ctx)) {
ex.handle(TSRMLS_C);
ex.handle();
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions php-refdb-backend-internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ PHP_METHOD(GitRefDBBackend_Internal,rename)
}

// Parse method parameters.
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,"ssba!s",
if (zend_parse_parameters(ZEND_NUM_ARGS(),
"ssba!s",
&oldname,
&oldname_len,
&newname,
Expand Down Expand Up @@ -509,10 +510,10 @@ PHP_METHOD(GitRefDBBackend_Internal,del)
}

} catch (php_git2::php_git2_exception_base& ex) {
php_bailout_context ctx(bailer TSRMLS_CC);
php_bailout_context ctx(bailer);

if (BAILOUT_ENTER_REGION(ctx)) {
ex.handle(TSRMLS_C);
ex.handle();
}
}
}
Expand Down

0 comments on commit 912f242

Please sign in to comment.