Home
last modified time | relevance | path

Searched refs:php (Results 101 – 125 of 7696) sorted by relevance

12345678910>>...308

/php-src/ext/standard/tests/file/
H A Dphp_fd_wrapper_03.phpt2 php://fd wrapper: bad syntax
4 <?php
5 fopen("php://fd", "w");
6 fopen("php://fd/", "w");
7 fopen("php://fd/-2", "w");
8 fopen("php://fd/1/", "w");
13 Warning: fopen(): Invalid php:// URL specified in %s on line %d
15 Warning: fopen(php://fd): Failed to open stream: operation failed in %s on line 2
17 Warning: fopen(php://fd/): Failed to open stream: php://fd/ stream must be specified in the form ph…
19 Warning: fopen(php://fd/-2): Failed to open stream: The file descriptors must be non-negative numbe…
[all …]
/php-src/ext/phar/tests/
H A Dfopen_edgecases.phpt9 <?php
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
11 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php';
12 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.php';
21 $a = fopen($pname . '/b/c.php', 'a');
63 file_put_contents($pname . '/test.php', '<?php
66 include $pname . '/test.php';
70 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
71 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
74 …/%sfopen_edgecases.phar.php/b/c.php): Failed to open stream: phar error: open mode append not supp…
[all …]
H A D024-opcache-win32.phpt7 <?php
24 <?php
26 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
28 $file = "<?php __HALT_COMPILER(); ?>";
31 $files['a.php'] = '<?php echo "This is a\n"; ?>';
32 $files['b.php'] = '<?php echo "This is b\n"; ?>';
33 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
37 include $pname . '/a.php';
38 include $pname . '/b.php';
39 include $pname . '/b/c.php';
[all …]
H A Dphar_mount.phpt8 <?php
9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
14 $a['index.php'] = '<?php
27 $a->setStub('<?php
29 include "index.php";
35 $b->setStub('<?php
37 include "index.php";
53 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
54 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
56 Mounting of testit to %sphar_mount.php within phar %sphar_mount.phar.php failed
[all …]
H A Dphar_oo_007.phpt8 <?php
24 $f = $phar['a.php'];
46 <?php
48 $f = $phar['a.php'];
59 <?php
64 MyFile::__construct(phar://*/files/phar_oo_007.phar.php/a.php)
70 string(32) "<?php echo "This is a.php\n"; ?>"
74 string(12) "a.php\n"; ?>"
77 string(32) "<?php echo "This is a.php\n"; ?>"
80 MyFile::__construct(phar://*/files/phar_oo_007.phar.php/a.php)
[all …]
/php-src/ext/phar/tests/zip/
H A Ddir.phpt9 <?php
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
12 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php';
14 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php';
33 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php'); ?>
34 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.1.phar.php'); ?>
35 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
H A Dopen_for_write_existing.phpt9 <?php
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
15 $phar->setStub('<?php __HALT_COMPILER(); ?>');
19 $files['a.php'] = '<?php echo "This is a\n"; ?>';
20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
28 $fp = fopen($alias . '/b/c.php', 'wb');
31 include $alias . '/b/c.php';
35 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
H A Dphar_begin_setstub_commit.phpt8 <?php
15 $p['a.php'] = '<?php var_dump("Hello");';
17 include 'phar://phar_begin_setstub_commit.phar/a.php';
19 $p['b.php'] = '<?php var_dump("World");';
21 include 'phar://phar_begin_setstub_commit.phar/b.php';
26 include 'phar://phar_begin_setstub_commit.phar/a.php';
27 include 'phar://phar_begin_setstub_commit.phar/b.php';
31 file_put_contents(__DIR__ . '/myfakestub.php', '<?php var_dump("First resource"); Phar::mapPhar("ph…
32 $a = fopen(__DIR__ . '/myfakestub.php', 'rb');
43 <?php
[all …]
/php-src/Zend/tests/
H A Dhalt_compiler2.phpt4 <?php
5 $text = "<?php echo 'test'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
7 file_put_contents(__DIR__ . '/test1.php', $text);
8 $text = "<?php echo 'test2'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
10 file_put_contents(__DIR__ . '/test2.php', $text);
11 include __DIR__ . '/test1.php';
12 include __DIR__ . '/test2.php';
15 <?php
16 unlink(__DIR__ . '/test1.php');
17 unlink(__DIR__ . '/test2.php');
H A Dbug66660.phpt4 <?php __CLASS__ ?>
6 <?php
7 file_put_contents(__DIR__."/bug66660.tmp.php", "<?php __CLASS__ ?>");
8 echo php_strip_whitespace(__DIR__."/bug66660.tmp.php");
11 <?php unlink(__DIR__."/bug66660.tmp.php"); ?>
13 <?php __CLASS__ ?>
/php-src/sapi/cli/tests/
H A D024.phpt4 <?php include "skipif.inc"; ?>
6 <?php
14 $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
16 $filename_good = __DIR__."/024_good.test.php";
18 $filename_bad = __DIR__."/024_bad.test.php";
22 <?php
30 <?php
51 <?php
74 [3] => Errors parsing %s024_bad.test.php
82 [2] => Errors parsing %s024_bad.test.php
[all …]
/php-src/sapi/cgi/tests/
H A D012.phpt4 <?php include "skipif.inc"; ?>
8 <?php
24 $php = get_cgi_path();
27 $filename_good = __DIR__."/012_good.test.php";
29 $filename_bad = __DIR__."/012_bad.test.php";
33 <?php
41 <?php
62 <?php
84 [3] => Errors parsing %s012_bad.test.php
92 [2] => Errors parsing %s012_bad.test.php
[all …]
/php-src/ext/phar/tests/files/
H A Dinclude_path.phar.inc1 <?php
5 $phar2['file1.php'] = 'file1.php
7 $phar2['test/file1.php'] = 'test/file1.php
9 $phar['hello/test.php'] = '<?php
10 include "file1.php";';
12 $phar->setStub("<?php
14 include 'phar://' . __FILE__ . '/hello/test.php';
16 include 'phar://' . __FILE__ . '/hello/test.php';
H A Dfrontcontroller13.phar1 <?php
4 ������������������� ���index.php/����L�G/������w������� ���oof/test.php3����L�G3���B�Z�������
5 ���oof/hi.php����L�G���|D)�������<?php
7 include "oof/test.php";<?php
8 var_dump("oof/test.php");
9 include "./hi.php";<?php
/php-src/ext/phar/tests/cache_list/files/
H A Dfrontcontroller13.phar1 <?php
4 ������������������� ���index.php/����L�G/������w������� ���oof/test.php3����L�G3���B�Z�������
5 ���oof/hi.php����L�G���|D)�������<?php
7 include "oof/test.php";<?php
8 var_dump("oof/test.php");
9 include "./hi.php";<?php
/php-src/ext/phar/tests/tar/
H A Dphar_magic.phpt9 <?php
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar.php';
13 $p['a'] = '<?php include "b/c.php";' . "\n";
14 $p['b/c.php'] = '<?php echo "in b\n";$a = fopen("a", "r", true);echo stream_get_contents($a);fclose…
16 $p->setStub('<?php
23 <?php
24 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.php');
30 <?php include "b/c.php";
H A Dopen_for_write_existing.phpt9 <?php
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
15 $phar->setStub("<?php __HALT_COMPILER(); ?>");
19 $files['a.php'] = '<?php echo "This is a\n"; ?>';
20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
29 $fp = fopen($alias . '/b/c.php', 'wb');
33 include $alias . '/b/c.php';
38 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
H A Dphar_begin_setstub_commit.phpt8 <?php
15 $p['a.php'] = '<?php var_dump("Hello");';
16 $p->setStub('<?php var_dump("First"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
17 include 'phar://phar_begin_setstub_commit.phar/a.php';
19 $p['b.php'] = '<?php var_dump("World");';
20 $p->setStub('<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMP…
21 include 'phar://phar_begin_setstub_commit.phar/b.php';
26 include 'phar://phar_begin_setstub_commit.phar/a.php';
27 include 'phar://phar_begin_setstub_commit.phar/b.php';
31 <?php
[all …]
/php-src/ext/readline/tests/
H A Dbug77812-readline.phpt6 <?php
11 <?php
27 php > echo <<<FOO
35 php > echo <<<FOO
39 php > FOO
40 php > ;
46 php > echo <<<FOO
49 php > ,1;
51 php > echo <<<FOO
54 php > ,2;
[all …]
/php-src/ext/dom/tests/createAttributeNS_prefix_conflicts/
H A DsetAttribute_with_prefix.phpt6 <?php
11 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns1', 'foo…
13 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns2', 'foo…
15 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns3', 'foo…
24 <container xmlns:foo="http://php.net/ns1" foo:hello=""/>
26 string(18) "http://php.net/ns1"
28 <container xmlns:foo="http://php.net/ns1" xmlns:default="http://php.net/ns2" default:hello=""/>
30 string(18) "http://php.net/ns2"
32 <container xmlns:foo="http://php.net/ns1" xmlns:default="http://php.net/ns2" xmlns:default1="http:/…
34 string(18) "http://php.net/ns3"
[all …]
H A DsetAttribute_without_prefix.phpt6 <?php
11 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns1', 'hel…
13 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns2', 'hel…
15 var_dump($doc->documentElement->setAttributeNode($doc->createAttributeNS('http://php.net/ns3', 'hel…
24 <container xmlns:default="http://php.net/ns1" default:hello=""/>
26 string(18) "http://php.net/ns1"
28 <container xmlns:default="http://php.net/ns1" xmlns:default1="http://php.net/ns2" default1:hello=""…
30 string(18) "http://php.net/ns2"
32 <container xmlns:default="http://php.net/ns1" xmlns:default1="http://php.net/ns2" xmlns:default2="h…
34 string(18) "http://php.net/ns3"
[all …]
/php-src/ext/dom/tests/
H A DDOMXPath_callables.phpt6 <?php
30 $xpath->registerNamespace("php", "http://php.net/xpath");
46 $xpath->registerNamespace("php", "http://php.net/xpath");
64 $xpath->registerNamespace("php", "http://php.net/xpath");
78 string(15) "https://php.net"
79 string(15) "https://php.net"
81 string(15) "https://php.net"
82 string(15) "https://php.net"
83 string(15) "https://php.net"
86 dummy: https://php.net
[all …]
/php-src/ext/tokenizer/tests/
H A Dtoken_get_all_heredoc_nowdoc.phpt6 <?php
25 <?php <<<INNER_END
30 <?php <<<INNER_END
35 <?php <<<'INNER_END'
50 <?php <<<INNER_END
55 <?php <<<INNER_END
61 <?php
68 <?php <<<INNER_END
74 <?php <<<INNER_END
80 <?php <<<INNER_END
[all …]
/php-src/ext/pcre/tests/
H A Dpreg_match_error4.phpt4 <?php
42 "heroku-sys\\/php": ">=5.4"
72 "name": "aws\\/aws-sdk-php",
75 "heroku-sys\\/php": ">=5.5"
835 "aws\\/aws-sdk-php": "3.15.7",
836 "aws\\/aws-sdk-php-laravel": "3.1.0",
841 "dnoegel\\/php-xdg-base-dir": "0.1",
855 "intercom\\/intercom-php": "v1.4.0",
871 "mtdowling\\/jmespath.php": "2.3.0",
874 "nikic\\/php-parser": "v2.0.1",
[all …]
/php-src/tests/output/
H A Dsapi_windows_vt100_support.inc1 <?php
30 'STDIN (fopen)' => fopen('php://stdin', 'rb'),
31 'STDIN (php://fd/0)' => fopen('php://fd/0', 'rb'),
33 'STDOUT (fopen)' => fopen('php://stdout', 'wb'),
34 'STDOUT (php://fd/1)' => fopen('php://fd/1', 'wb'),
36 'STDERR (fopen)' => fopen('php://stderr', 'wb'),
37 'STDERR (php://fd/2)' => fopen('php://fd/2', 'wb'),
38 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'),
39 'Invalid stream (php://input)' => fopen('php://input', 'wb'),
40 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'),

Completed in 78 milliseconds

12345678910>>...308