diff -r f38158deaa77 -r fe258446a1ae components/php-5_3/php-sapi/patches/024_php_Zend_zend_dtrace_gen.php.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/php-5_3/php-sapi/patches/024_php_Zend_zend_dtrace_gen.php.patch Thu May 31 14:36:45 2012 -0700 @@ -0,0 +1,34 @@ +--- php-5.3.10_orig/Zend/zend_dtrace_gen.php Wed Nov 23 11:34:50 2011 ++++ php-5.3.10/Zend/zend_dtrace_gen.php Wed Nov 23 11:36:10 2011 +@@ -0,0 +1,31 @@ ++ | ++ +----------------------------------------------------------------------+ ++ ++ $Id:$ ++*/ ++ ++echo "regenerating zend_dtrace.h\n"; ++system('dtrace -h -s zend_dtrace.d'); ++ ++echo "renaming probe definitions\n"; ++$content = file_get_contents('zend_dtrace.h'); ++$content = str_replace('#define PHP_', '#define DTRACE_', $content); ++$content = str_replace('PHP_STABILITY', 'DTRACE_STABILITY', $content); ++$content = str_replace('PHP_TYPEDEFS', 'DTRACE_TYPEDEFS', $content); ++$content = str_replace('#if _DTRACE_VERSION', '#if _DTRACE_VERSION && HAVE_SYS_SDT_H', $content); ++file_put_contents('zend_dtrace.h', $content);