This is reported to work for others, but with PHP 5.4 I get some errors. You can see them below. I tried pointing to an archive from master but got different errors. I would wager that it's because archives of commit hashes have a "runkit-HASHNAMEHERE" directory in them, under which are all of the files I'd expect at the top level.
As a workaround I have compressed up a copy of the git repository and I'm hosting it on my server, but it would be fantastic to have version 1.0.4 released.
running: make
/bin/bash /tmp/pear/temp/pear-build-root5ZhCA4/runkit-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/runkit -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root5ZhCA4/runkit-1.0.3/include -I/tmp/pear/temp/pear-build-root5ZhCA4/runkit-1.0.3/main -I/tmp/pear/temp/runkit -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/runkit/runkit.c -o runkit.lo
libtool: compile: cc -I. -I/tmp/pear/temp/runkit -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root5ZhCA4/runkit-1.0.3/include -I/tmp/pear/temp/pear-build-root5ZhCA4/runkit-1.0.3/main -I/tmp/pear/temp/runkit -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/runkit/runkit.c -fPIC -DPIC -o .libs/runkit.o
/tmp/pear/temp/runkit/runkit.c: In function 'php_runkit_register_auto_global':
/tmp/pear/temp/runkit/runkit.c:285:2: warning: passing argument 3 of 'zend_register_auto_global' makes integer from pointer without a cast [enabled by default]
In file included from /usr/include/php5/Zend/zend_modules.h:26:0,
from /usr/include/php5/Zend/zend_API.h:26,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_compile.h:683:14: note: expected 'zend_bool' but argument is of type 'void *'
/tmp/pear/temp/runkit/runkit.c:285:2: error: too few arguments to function 'zend_register_auto_global'
In file included from /usr/include/php5/Zend/zend_modules.h:26:0,
from /usr/include/php5/Zend/zend_API.h:26,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_compile.h:683:14: note: declared here
/tmp/pear/temp/runkit/runkit.c: In function 'zm_deactivate_runkit':
/tmp/pear/temp/runkit/runkit.c:378:3: warning: passing argument 2 of 'zend_hash_apply' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:271:0,
from /usr/include/php5/main/php.h:35,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_hash.h:138:15: note: expected 'apply_func_t' but argument is of type 'int (*)(char *)'
/tmp/pear/temp/runkit/runkit.c:388:3: warning: passing argument 2 of 'zend_hash_apply' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:271:0,
from /usr/include/php5/main/php.h:35,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_hash.h:138:15: note: expected 'apply_func_t' but argument is of type 'int (*)(struct zend_hash_key *)'
/tmp/pear/temp/runkit/runkit.c:396:3: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:271:0,
from /usr/include/php5/main/php.h:35,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_hash.h:140:15: note: expected 'apply_func_args_t' but argument is of type 'int (*)(struct zend_internal_function *, int, struct __va_list_tag *, struct zend_hash_key *)'
make: *** [runkit.lo] Error 1
The PHP5.4.x will be supported as of version 1.4 of runkit. If you need runkit in PHP5.4 right now, please use the runkit from master branch of http://github.com/zenovich/runkit
This is reported to work for others, but with PHP 5.4 I get some errors. You can see them below. I tried pointing to an archive from master but got different errors. I would wager that it's because archives of commit hashes have a "runkit-HASHNAMEHERE" directory in them, under which are all of the files I'd expect at the top level.
As a workaround I have compressed up a copy of the git repository and I'm hosting it on my server, but it would be fantastic to have version 1.0.4 released.