I got the following error for PHP after recent portupgrade:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/memcache.so' - /usr/local/lib/php/20090626/memcache.so: Undefined symbol "php_session_create_id" in Unknown on line 0
to fix this all you need to do is reinstall pecl-memcache, like this:
Sometimes during PHP unit testing You'll need to redefine a function, and then - later - restore it to it's original state. One way to do that with Runkit ... Let's say that we don't want to get "Cannot modify header information - headers already sent by" error messages when testing a code which uses setcookie php command. We can use the following trick:
use it with caution, and do not forget to RESTORE the function - or it may surprise you !
I have been struggling with setting up runkit with PHP 5.3 under Windows 7, and found out that there is no DLL released for that version, and PHP will not work with pre-compiled DLL's you can found on the net, so I made my own dll which works. Just wanted to share it in hope that it will help others as well.