File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
cli /
tests /
008.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:35 2012 UTC (12 years, 2 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: execute a file with -f
3: --SKIPIF--
4: <?php
5: include "skipif.inc";
6: if (substr(PHP_OS, 0, 3) == 'WIN') {
7: die ("skip not for Windows");
8: }
9: ?>
10: --FILE--
11: <?php
12:
13: $php = getenv('TEST_PHP_EXECUTABLE');
14:
15: $filename = dirname(__FILE__).'/008.test.php';
16: $code ='
17: <?php
18:
19: class test {
20: private $pri;
21: }
22:
23: var_dump(test::$pri);
24: ?>
25: ';
26:
27: file_put_contents($filename, $code);
28:
29: var_dump(`$php -n -f "$filename"`);
30: var_dump(`$php -n -f "wrong"`);
31:
32: @unlink($filename);
33:
34: echo "Done\n";
35: ?>
36: --EXPECTF--
37: string(%d) "
38:
39: Fatal error: Cannot access private property test::$pri in %s on line %d
40: "
41: string(33) "Could not open input file: wrong
42: "
43: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>