hpt_to_php needs TSRMLS_FETCH too; update swig to version perl uses
This commit is contained in:
parent
4826607e67
commit
8286ce087d
2 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ matrix:
|
|||
env: BINDINGS=php CC=clang
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- if [ "$BINDINGS" != "none" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; swig -version; fi
|
||||
- if [ "$BINDINGS" != "none" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi
|
||||
- if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
|
||||
|
||||
install: true
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@
|
|||
|
||||
%inline {
|
||||
void hpt_to_php(const HParsedToken *token, zval *return_value) {
|
||||
TSRMLS_FETCH();
|
||||
if (!token) {
|
||||
RETVAL_NULL();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue