-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrefcounts.php
More file actions
33 lines (27 loc) · 830 Bytes
/
Copy pathrefcounts.php
File metadata and controls
33 lines (27 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*
* phc -- the open source PHP compiler
* See doc/license/README.license for licensing information
*
* Adds debug_zval_dump after each statement, then compared the outputs of the
* compiled and interpreted code.
*/
array_push($tests, new Refcounts ());
class Refcounts extends CompiledVsInterpreted
{
function get_dependent_test_names ()
{
return array ("CompiledVsInterpreted");
}
function get_phc_command ($subject, $exe_name)
{
global $phc, $plugin_dir;
return get_phc_command_line ($subject) . " -c --run $plugin_dir/tools/debug_zval.la -o $exe_name";
}
function get_php_command ($subject)
{
global $phc, $plugin_dir;
return "$phc --run $plugin_dir/tools/debug_zval.la --convert-uppered --dump=$plugin_dir/tools/debug_zval.la $subject | ". get_php_command_line ($subject, "pipe");
}
}
?>