/php-src/Zend/ |
H A D | zend_exceptions.stub.php | 37 protected $code = 0; // TODO add proper type (i.e. int|string) variable in Exception 45 public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {} argument 74 int $code = 0, argument 96 protected $code = 0; // TODO add proper type (i.e. int|string) variable in Error 106 public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {} argument
|
H A D | zend_vm_gen.php | 788 $code = "{\n\tfprintf(stderr, \"$name\\n\");\n" . substr($code, 1); 826 $code); 860 $code); 884 $code); 908 $code); 913 $code = preg_replace('/^\s*;\s*$/m', '', $code); 916 $code = preg_replace('/[ \t]+\n/m', "\n", $code); 918 out($f, $code); 1057 $code = 1068 $code = [all …]
|
/php-src/sapi/fuzzer/ |
H A D | generate_corpus_util.php | 15 $code = $matches[1]; 16 if (strlen($code) > $maxLen) continue; 21 file_put_contents($corpusDir . '/' . $outFile, $code);
|
/php-src/ext/openssl/tests/ |
H A D | ServerClientTestCase.inc | 92 private function spawnWorkerProcess($worker, $code) 120 fwrite($this->workerStdIn[$worker], $code . "\n---\n"); 130 private function stripPhpTagsFromCode($code) 132 return preg_replace('/^\s*<\?(?:php)?|\?>\s*$/i', '', $code); 137 $code = ''; 146 $code .= $line; 149 eval($code); 157 foreach ($workerCode as $worker => $code) { 158 $this->spawnWorkerProcess($worker, $this->stripPhpTagsFromCode($code)); 161 foreach ($workerCode as $worker => $code) {
|
/php-src/ext/dom/lexbor/lexbor/dom/ |
H A D | exception.h | 52 lxb_dom_exception_code_t code) in lxb_dom_exception_code_ref_set() argument 55 *var = code; in lxb_dom_exception_code_ref_set() 66 lxb_dom_exception_code_t code);
|
H A D | exception.c | 15 lxb_dom_exception_code_t code) in lxb_dom_exception_code_ref_set_noi() argument 17 return lxb_dom_exception_code_ref_set(var, code); in lxb_dom_exception_code_ref_set_noi()
|
/php-src/sapi/cli/tests/ |
H A D | 011.phpt | 13 $code = ' 27 file_put_contents($filename, $code); 32 $code = ' 42 file_put_contents($filename, $code);
|
/php-src/Zend/tests/ |
H A D | bug35655.phpt | 12 $code = ' 19 highlight_string($code); 22 <pre><code style="color: #000000"> 28 </span><span style="color: #0000BB">?></span></code></pre>
|
H A D | nowdoc_013.phpt | 12 $code = <<<'EOF' 20 highlight_string($code); 23 <pre><code style="color: #000000"><span style="color: #0000BB"><?php 28 </span><span style="color: #0000BB">?></span></code></pre>
|
H A D | bug75252.phpt | 6 $code = <<<'CODE' 14 eval($code); 20 eval($code);
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_createAttribute_error.phpt | 13 $code = $e->getCode(); 14 if(DOM_INVALID_CHARACTER_ERR === $code) { 18 echo 'Wrong exception code';
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | bug75063_utf8.phpt | 31 $code = <<<CODE 47 $code_fn = "code.php"; 48 file_put_contents($code_fn, $code); 50 print(shell_exec(getenv('TEST_PHP_EXECUTABLE_ESCAPED') . " -nf code.php")); 75 string(8) "code.php"
|
H A D | bug75063_cp1251.phpt | 33 $code = <<<CODE 49 $code_fn = "code.php"; 50 file_put_contents($code_fn, $code); 52 print(shell_exec(getenv('TEST_PHP_EXECUTABLE_ESCAPED') . " -n -d default_charset=cp1251 -f code.php… 74 string(8) "code.php"
|
H A D | bug61315.phpt | 48 Active code page: 65001 53 Active code page: %d 54 Active code page: 65001 59 Active code page: %d
|
/php-src/ext/standard/tests/file/ |
H A D | rename_variation13-win32.phpt | 68 Warning: rename(-1,%safile.tmp): The system cannot find the file specified (code: 2) in %srename_va… 73 Warning: rename(1,%safile.tmp): The system cannot find the file specified (code: 2) in %srename_var… 77 …|(The parameter is incorrect|The system cannot find the path specified) \(code: \d+\))%r in %srena… 80 …|(The parameter is incorrect|The system cannot find the path specified) \(code: \d+\))%r in %srena… 84 …|(The parameter is incorrect|The system cannot find the path specified) \(code: \d+\))%r in %srena… 91 Warning: rename(%s): The filename, directory name, or volume label syntax is incorrect (code: 123) … 94 Warning: rename(%s): The filename, directory name, or volume label syntax is incorrect (code: 123) … 98 Warning: rename(%safile.tmp,/no/such/file/dir): The system cannot find the path specified (code: 3)… 101 Warning: rename(/no/such/file/dir,%safile.tmp): The system cannot find the path specified (code: 3)… 105 Warning: rename(%safile.tmp,php/php): The system cannot find the path specified (code: 3) in %srena… [all …]
|
H A D | bug69442.phpt | 6 $code = <<< 'EOC' 14 file_put_contents($tmpFile, $code); 26 $cmd = '(echo "foo" ; exit 42;) 3>/dev/null; code=$?; echo $code >&3; exit $code';
|
/php-src/tests/strings/ |
H A D | 004.phpt | 16 …code style="color: #000000"><br /><span style="color: #0000BB"><?php </span><span style="… 17 …code style="color: #000000"><br /><span style="color: #0000BB"><?php </span><span style="…
|
/php-src/ext/tokenizer/tests/ |
H A D | bug76437.phpt | 12 foreach ($tests as [$code, $index]) { 13 $open_tag1 = token_get_all($code)[$index]; 14 $open_tag2 = token_get_all($code, TOKEN_PARSE)[$index];
|
H A D | token_get_all_variation18.phpt | 2 Test token_get_all() function : usage variations - with HTML code 8 * Testing token_get_all() with source string containing HTML code with PHP 22 echo "php code with HTML"; 89 string(20) ""php code with HTML""
|
/php-src/sapi/phpdbg/tests/ |
H A D | stdin_001.phpt | 16 prompt> [Breakpoint #0 added at Standard input code:3] 17 prompt> [Breakpoint #0 at Standard input code:3, hits: 1] 22 prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
|
/php-src/ext/ffi/tests/ |
H A D | utils.inc | 3 function ffi_cdef($code, $lib) 6 return FFI::cdef($code, $lib); 8 return FFI::cdef($code);
|
/php-src/Zend/tests/type_declarations/ |
H A D | weak_include_strict.phpt | 2 strict_types=0 code including strict_types=1 code 6 // implicitly weak code
|
/php-src/ext/standard/ |
H A D | pack.c | 258 char code = format[i++]; in PHP_FUNCTION() local 279 switch ((int) code) { in PHP_FUNCTION() 311 if (code == 'Z') { in PHP_FUNCTION() 388 switch ((int) code) { in PHP_FUNCTION() 471 switch ((int) code) { in PHP_FUNCTION() 545 if (code == 'n') { in PHP_FUNCTION() 547 } else if (code == 'v') { in PHP_FUNCTION() 572 if (code == 'N') { in PHP_FUNCTION() 574 } else if (code == 'V') { in PHP_FUNCTION() 592 if (code == 'J') { in PHP_FUNCTION() [all …]
|
/php-src/sapi/cgi/tests/ |
H A D | 006.phpt | 16 $code = ' 30 file_put_contents($filename, $code); 35 $code = ' 45 file_put_contents($filename, $code);
|
/php-src/.github/actions/brew/ |
H A D | action.yml | 11 code=" keg.link\(verbose: verbose\?" 12 sudo sed -Ei '' "s/$code.*/$code, overwrite: true\)/" "$formula_installer"
|