/php-src/ext/standard/tests/streams/ |
H A D | bug75031.phpt | 2 Bug #75031: Append mode in php://temp and php://memory 4 <?php 15 test_75031("php://temp", "w+"); 16 test_75031("php://memory", "w+"); 17 test_75031("php://temp", "a+"); 18 test_75031("php://memory", "a+");
|
/php-src/ext/opcache/tests/jit/ |
H A D | fe_reset_001.phpt | 8 <?php 16 Warning: Undefined variable $0 in %sfe_reset_001.php on line 4 18 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 20 Warning: Undefined variable $1 in %sfe_reset_001.php on line 4 22 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 24 Warning: Undefined variable $2 in %sfe_reset_001.php on line 4 26 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 28 Warning: Undefined variable $3 in %sfe_reset_001.php on line 4 30 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 32 Warning: Undefined variable $4 in %sfe_reset_001.php on line 4 [all …]
|
/php-src/ext/phar/tests/ |
H A D | stat2_5.3.phpt | 9 <?php 13 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.tar'; 14 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar'; 20 $b['foo/stat.php'] = '<?php 22 var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops")); 30 $b->setStub('<?php 31 include "phar://" . __FILE__ . "/foo/stat.php"; 36 <?php 37 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); 38 @unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.tar');
|
H A D | test_unset.phpt | 8 <?php 9 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; 10 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php'; 35 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?> 38 string(%d) "%stest_unset.phar.php"
|
H A D | 015.phpt | 9 <?php 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; 12 $file = "<?php __HALT_COMPILER(); ?>"; 21 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
|
H A D | 015b.phpt | 9 <?php 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; 12 $file = "<?php __HALT_COMPILER(); ?>"; 21 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
|
H A D | 031.phpt | 8 <?php 16 $pname = 'phar://' . $fname . '/a.php'; 24 <?php 25 unlink(__DIR__ . '/files/031.phar.php'); 29 string(25) "<?php echo new new class;" 31 Parse error: %s in phar://%s031.phar.php/a.php on line %d
|
H A D | cached_manifest_1.phpt | 8 <?php 10 var_dump(file_get_contents($pname . '/b/c.php')); 20 var_dump(is_dir($pname . '/b/c.php')); 23 string(131) "<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a);fc… 26 string(9) "index.php" 27 string(7) "web.php" 28 string(%d) "phar://%snophar.phar/b%cc.php" 30 string(%d) "phar://%snophar.phar%cindex.php" 31 string(%d) "phar://%snophar.phar%cweb.php"
|
H A D | frontcontroller13.phpt | 8 SCRIPT_NAME=/frontcontroller13.php 9 REQUEST_URI=/frontcontroller13.php/a.php 10 PATH_INFO=/a.php 16 …or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed in %sfrontcontroller13.php:2 18 #0 %sfrontcontroller13.php(2): Phar::webPhar('whatever', 'index.php', NULL, Array) 20 thrown in %sfrontcontroller13.php on line 2
|
H A D | phar_oo_012_confirm.phpt | 9 <?php 18 $phar['f.php'] = 'hi'; 19 var_dump(isset($phar['f.php'])); 20 echo $phar['f.php']; 23 unset($phar['f.php']); 26 var_dump(isset($phar['f.php'])); 30 <?php 31 unlink(__DIR__ . '/files/phar_oo_012_confirm.phar.php');
|
/php-src/ext/tokenizer/tests/ |
H A D | parse_errors.phpt | 6 <?php 25 test_parse_error('<?php var_dump(078);'); 26 test_parse_error('<?php var_dump("\u{xyz}");'); 27 test_parse_error('<?php var_dump("\u{ffffff}");'); 28 test_parse_error('<?php var_dump(078 + 078);'); 33 T_OPEN_TAG (<?php ) 41 T_OPEN_TAG (<?php ) 49 T_OPEN_TAG (<?php ) 57 T_OPEN_TAG (<?php )
|
/php-src/ext/opcache/tests/ |
H A D | revalidate_path_01.phpt | 12 <?php 17 $file1 = "$dir1/index.php"; 18 $file2 = "$dir2/index.php"; 19 $main = "$dir/main.php"; 22 @file_put_contents($main, '<?php include(\'' . $link .'/index.php\');'); 42 echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/main.php'); 43 echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/main.php'); 57 <?php 62 $file1 = "$dir1/index.php"; 63 $file2 = "$dir2/index.php"; [all …]
|
/php-src/ext/dom/tests/ |
H A D | bug47530.phpt | 6 <?php 10 …doc->loadXML('<html xmlns="https://php.net/something" xmlns:ns="https://php.net/whatever"><element… 56 …mlns="http://www.w3.org/1999/xhtml" xmlns:test="https://php.net/test" xmlns:example="https://php.n… 69 …oadXML('<?xml version="1.0"?><container xmlns:test="https://php.net/test" xmlns="https://php.net/e… 94 ….0"?><container xmlns:default="http://php.net/default"><a xmlns:foo="http://php.net/bar"/><b xmlns… 121 …="https://php.net/something" xmlns:ns="https://php.net/whatever"><default:element xmlns:default="h… 126 string(19) "https://php.net/bar" 136 …mlns:test="https://php.net/test" xmlns="https://php.net/example"><feed xmlns="http://www.w3.org/19… 145 <div xmlns:example="https://php.net/somethingelse"><p xmlns="https://php.net/default" xmlns:example… 148 <div xmlns:example="https://php.net/somethingelse"><p xmlns="https://php.net/default" xmlns:example… [all …]
|
/php-src/ext/phar/tests/cache_list/ |
H A D | frontcontroller4.phpt | 2 Phar front controller index.php relocate (no /) [cache_list] 4 phar.cache_list={PWD}/frontcontroller4.php 8 SCRIPT_NAME=/frontcontroller4.php 9 REQUEST_URI=/frontcontroller4.php 14 Location: /frontcontroller4.php/index.php
|
H A D | frontcontroller5.phpt | 2 Phar front controller index.php relocate [cache_list] 4 phar.cache_list={PWD}/frontcontroller5.php 8 SCRIPT_NAME=/frontcontroller5.php 9 REQUEST_URI=/frontcontroller5.php/ 15 Location: /frontcontroller5.php/index.php
|
/php-src/sapi/cgi/tests/ |
H A D | apache_response_headers.phpt | 4 <?php 8 <?php 11 $php = get_cgi_path(); 14 $test_file = __DIR__ . DIRECTORY_SEPARATOR ."apache_response_headers.test.php"; 16 $code = '<?php'; 31 passthru( "$php -n -q " . escapeshellarg( $test_file ) ); 35 <?php 36 @unlink( __DIR__ . DIRECTORY_SEPARATOR ."apache_response_headers.test.php" );
|
H A D | 003.phpt | 4 <?php 13 <?php 17 $php = get_cgi_path(); 20 $filename = __DIR__.'/003.test.php'; 22 <?php 40 var_dump(`$php -n -w "$filename"`); 41 var_dump(`$php -n -w "wrong"`); 42 var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -n … 53 <?php 65 <?php class test { function foo() {} } ?>
|
/php-src/ext/phar/tests/tar/ |
H A D | frontcontroller12.phar.phpt | 8 SCRIPT_NAME=/frontcontroller12.phar.php 9 REQUEST_URI=/frontcontroller12.phar.php/a.php 10 PATH_INFO=/a.php 16 …ed, only Phar::PHP, Phar::PHPS and a mime type string are allowed in %sfrontcontroller12.phar.php:2 18 #0 %sfrontcontroller12.phar.php(2): Phar::webPhar('whatever', 'index.php', NULL, Array) 20 thrown in %sfrontcontroller12.phar.php on line 2
|
H A D | phar_copy.phpt | 10 <?php 12 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar.php'; 13 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '2.phar.php'; 48 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.php'); ?> 49 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar.php'); ?>
|
/php-src/ext/phar/tests/zip/ |
H A D | phar_copy.phpt | 9 <?php 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php'; 12 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '2.phar.php'; 47 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php'); ?> 48 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar.php'); ?>
|
/php-src/Zend/tests/ |
H A D | ErrorException_construct.phpt | 4 <?php 26 $e = new ErrorException("Fifth", 0, E_ERROR, "abc.php"); 31 $e = new ErrorException("Sixth", 0, E_ERROR, "abc.php", null); 36 $e = new ErrorException("Seventh", 0, E_ERROR, "abc.php", 123); 44 string(%d) "%sErrorException_construct.php" 47 string(%d) "%sErrorException_construct.php" 50 string(%d) "%sErrorException_construct.php" 53 string(%d) "%sErrorException_construct.php" 56 string(7) "abc.php" 59 string(7) "abc.php" [all …]
|
/php-src/ |
H A D | README.md | 2 <a href="https://php.net"> 5 src="https://www.php.net/images/logos/new-php-logo.svg" 17 [![Push](https://github.com/php/php-src/actions/workflows/push.yml/badge.svg)](https://github.com/p… 18 [![Build status](https://travis-ci.com/php/php-src.svg?branch=master)](https://travis-ci.com/github… 23 The PHP manual is available at [php.net/docs](https://php.net/docs). 32 [windows.php.net](https://windows.php.net). After extracting the archive the 85 The [qa.php.net](https://qa.php.net) site provides more detailed info about 106 [github.com/php/php-src](https://github.com/php/php-src). Contributions are most 119 [bugs.php.net](https://bugs.php.net) bug tracker. 134 - [Internal documentation](https://php.github.io/php-src/) [all …]
|
/php-src/ext/xsl/tests/ |
H A D | bug71540.phpt | 6 <?php 10 <?php 22 xmlns:php="http://php.net/xsl"> 31 select="php:function('test',uid,test(test))"/> 52 …ocessor::transformToXml(): xmlXPathCompOpEval: function test not found in %sbug71540.php on line %d 54 Warning: XSLTProcessor::transformToXml(): Unregistered function in %sbug71540.php on line %d 56 Warning: XSLTProcessor::transformToXml(): Stack usage error in %sbug71540.php on line %d 58 Warning: XSLTProcessor::transformToXml(): Stack usage error in %sbug71540.php on line %d 60 Warning: XSLTProcessor::transformToXml(): Handler name must be a string in %sbug71540.php on line %d 66 Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. in %sbug71540.php on… [all …]
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | bug47530.phpt | 6 <?php 9 …teFromString('<html xmlns="https://php.net/something" xmlns:ns="https://php.net/whatever"><element… 55 …mlns="http://www.w3.org/1999/xhtml" xmlns:test="https://php.net/test" xmlns:example="https://php.n… 66 …String('<?xml version="1.0"?><container xmlns:test="https://php.net/test" xmlns="https://php.net/e… 88 ….0"?><container xmlns:default="http://php.net/default"><a xmlns:foo="http://php.net/bar"/><b xmlns… 115 <html xmlns="https://php.net/something" xmlns:ns="https://php.net/whatever"><element ns:foo="https:… 120 string(19) "https://php.net/bar" 132 …mlns:test="https://php.net/test" xmlns="https://php.net/example"><feed xmlns="http://www.w3.org/19… 141 <div xmlns:example="https://php.net/somethingelse"><p xmlns="https://php.net/default" xmlns:example… 143 <div xmlns:example="https://php.net/somethingelse"><p xmlns="https://php.net/default" xmlns:example… [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | rename_variation13-win32.phpt | 6 <?php 13 <?php 20 "", // I think both p8 and php are wrong on the messages here 21 //p8 generates different messages to php, php is probably wrong 22 //php has either "File Exists" or "Permission Denied". 27 "php/php" 68 …): The system cannot find the file specified (code: 2) in %srename_variation13-win32.php on line %d 73 …): The system cannot find the file specified (code: 2) in %srename_variation13-win32.php on line %d 103 -- 6 testing 'php/php' string -- 105 Warning: rename(%safile.tmp,php/php): The system cannot find the path specified (code: 3) in %srena… [all …]
|