stefanesser/suhosin — Issue #1: Thread safe build failure
Author: NewEraCracker
Created: 2012-01-20 14:14:44+00:00
State: open

Attempt to build php with:
configure --disable-all --enable-cli --enable-session --enable-zlib --enable-object-out-dir="." --enable-one-shot --enable-suhosin="shared"

Error:
ext\suhosin\post_handler.c(171) : error C2065: 'tsrm_ls' : undeclared identifier
ext\suhosin\post_handler.c(174) : error C2065: 'tsrm_ls' : undeclared identifier

If I add TSRMLS_FETCH(); after zend_ini_entry *ini_entry; on line 168 build no longer fails.
I don't know if this change is appropriate or not but seems to fix the issue for me.