php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
create-test.php File Reference

Go to the source code of this file.

Variables

 $phpdbg = getenv('TEST_PHPDBG_EXECUTABLE') ?: null
 
 $pass_options = ' -qbI -n -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0"'
 
 $file = ""
 
 $cmdargv = ""
 
if(isset($argc) && $argc > 1) $proc = proc_open("$phpdbg $pass_options $file -- $cmdargv", [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]], $pipes)
 
if(! $proc) $input = $output = ""
 
 do
 
 $w = $e = null
 
 $n = @stream_select($r, $w, $e, null)
 
 print
 
if(!isset( $name)) while(!isset($testfile)) $output = str_replace("string(".strlen($file).") \"$file\"", 'string(%d) "%s"', $output)
 
 $testdata =
 
if(!empty($ini)) if( $cmdargv !="") if($file !="") if( $testfile=="") elseif(file_put_contents($testfile, $testdata)) else
 
 $testfile = ""
 

Variable Documentation

◆ $cmdargv

$cmdargv = ""

Definition at line 30 of file create-test.php.

◆ $file

$file = ""

Definition at line 29 of file create-test.php.

◆ $input

$input = $output = ""

Definition at line 66 of file create-test.php.

◆ $n

$n = @stream_select($r, $w, $e, null)

Definition at line 73 of file create-test.php.

◆ $output

$output = str_replace("string(".strlen($file).") \"$file\"", 'string(%d) "%s"', $output)

Definition at line 114 of file create-test.php.

◆ $pass_options

$pass_options = ' -qbI -n -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0"'

Definition at line 28 of file create-test.php.

◆ $phpdbg

$phpdbg = getenv('TEST_PHPDBG_EXECUTABLE') ?: null

Definition at line 27 of file create-test.php.

◆ $proc

if (isset( $argc) &&$argc > 1) $proc = proc_open("$phpdbg $pass_options $file -- $cmdargv", [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]], $pipes)

Definition at line 61 of file create-test.php.

◆ $testdata

$testdata =

Definition at line 118 of file create-test.php.

◆ $testfile

$testfile = ""

Definition at line 143 of file create-test.php.

◆ $w

$w = $e = null

Definition at line 72 of file create-test.php.

◆ do

do
Initial value:
{
$r = [$pipes[1], STDIN]

Definition at line 70 of file create-test.php.

◆ else

if(!empty( $ini)) if($cmdargv !="") if( $file !="") if($testfile=="") elseif (file_put_contents( $testfile, $testdata)) else
Initial value:
{
print "The test could not be saved to $testfile; outputting on stderr now\n"
print

Definition at line 141 of file create-test.php.

◆ print

print

Definition at line 97 of file create-test.php.