diff -r 90a869b3f47a -r 6a82655eda42 components/php-5_3/php-sapi/patches/024_php_Zend_zend_dtrace_gen.php.patch --- a/components/php-5_3/php-sapi/patches/024_php_Zend_zend_dtrace_gen.php.patch Fri Oct 16 07:42:27 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ ---- 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);