php 5.3装apd高级调试器

php 5.3 apd-1.0.1:
php_apd.c
-    CG(extended_info) = 1;  /* XXX: this is ridiculous */
+    CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
-ZEND_DLEXPORT void onStatement(zend_op_array *op_array TSRMLS_DC);
+ZEND_DLEXPORT void onStatement(zend_op_array *op_array);
php_apd.h:
-#define APD_VERSION “0.9″
+#define APD_VERSION “1.0.1″
[apd]
zend_extension=/usr/server/phpfpm/lib/php/extensions/no-debug-zts-20090626/apd.so
apd.dumpdir=/tmp
apd.statement_tracing=0

rename_function('unlink', 'debug_unlink');
override_function('unlink', '$filename',
    '$flag = debug_unlink($filename);
    if ($flag) {
         $fp = fopen(“/tmp/delfile.txt”, “ab”);
        fwrite($fp, $filename);
        fclose($fp);
    }
    return $flag;'
);
unlink('/tmp/oktest');
echo 'OK';
exit;
if ( !-f $request_filename ) {
           rewrite ^/([0-9]*)$ /space.php?uid=$1& last;
        }

你可能感兴趣的:(php 5.3装apd高级调试器)