Home
last modified time | relevance | path

Searched refs:stub (Results 1 – 25 of 87) sorted by relevance

1234

/PHP-7.0/ext/phar/tests/
H A Dphar_stub_write_file.phpt13 $stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
14 $file = $stub;
24 var_dump($stub);
26 var_dump($phar->getStub() == $stub);
28 $stub = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
29 $sexp = $stub . "\r\n";
30 $stub = fopen('data://,'.$stub, 'r');
31 $phar->setStub($stub);
33 var_dump($phar->getStub() == $stub);
37 var_dump($phar->getStub() == $stub);
[all …]
H A Dphar_stub_write.phpt12 $stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
13 $file = $stub;
23 var_dump($stub);
25 var_dump($phar->getStub() == $stub);
27 $stub = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
28 $sexp = $stub . "\r\n";
30 $phar->setStub($stub);
32 var_dump($phar->getStub() == $stub);
36 var_dump($phar->getStub() == $stub);
40 var_dump($phar->getStub() == $stub);
[all …]
H A Dphar_stub_error.phpt12 $stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
13 $file = $stub;
21 var_dump($stub);
23 var_dump($phar->getStub() == $stub);
35 var_dump($phar->getStub() == $stub);
38 var_dump($phar->getStub() == $stub);
48 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
49 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
51 Exception: illegal stub for phar "%sphar_stub_error.phar.php"
52 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
[all …]
H A Dphar_stub.phpt12 $file = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
21 $file = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
27 $file = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
36 $file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
69 // ensure stub is not overwritten
86 <?php echo "first stub\n"; __HALT_COMPILER(); ?>
87 <?php echo "second stub\n"; __HALT_COMPILER(); ?>
88 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
89 <?php echo "third stub\n"; __HALT_COMPILER(); ?>booya
90 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
[all …]
H A Dinvalid_setstubalias.phpt2 Phar: invalid set alias or stub via array access
14 $p['.phar/stub.php'] = 'hi';
25 $p['.phar/stub.php'] = 'hi';
43 Cannot set stub ".phar/stub.php" directly in phar "%sinvalid_setstubalias.phar.tar", use setStub
45 Cannot set stub ".phar/stub.php" directly in phar "%sinvalid_setstubalias.phar.zip", use setStub
H A Dphar_convert_tar.phpt15 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
16 $file = $stub;
50 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
52 string(60) "<?php // tar-based phar archive stub file
55 string(60) "<?php // tar-based phar archive stub file
H A Dphar_convert_zip.phpt15 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
16 $file = $stub;
49 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
51 string(60) "<?php // zip-based phar archive stub file
54 string(60) "<?php // zip-based phar archive stub file
H A Dphar_offset_check.phpt2 Phar: disallow stub and alias setting via offset*() methods
22 $phar->offsetGet('.phar/stub.php');
34 $phar->offsetSet('.phar/stub.php', '<?php __HALT_COMPILER(); ?>');
42 $phar->offsetUnset('.phar/stub.php');
70 Entry .phar/stub.php does not exist
72 Cannot set stub ".phar/stub.php" directly in phar "%sphar_offset_check.phar.php", use setStub
H A Dphar_convert_tar3.phpt16 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
17 $file = $stub;
56 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
59 string(60) "<?php // tar-based phar archive stub file
63 string(60) "<?php // tar-based phar archive stub file
H A Dphar_convert_tar2.phpt16 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
17 $file = $stub;
55 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
58 string(60) "<?php // tar-based phar archive stub file
62 string(60) "<?php // tar-based phar archive stub file
H A Dphar_convert_repeated.phpt15 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
16 $file = $stub;
106 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
112 string(60) "<?php // tar-based phar archive stub file
119 string(60) "<?php // zip-based phar archive stub file
132 string(60) "<?php // zip-based phar archive stub file
139 string(60) "<?php // tar-based phar archive stub file
146 string(60) "<?php // zip-based phar archive stub file
H A Dphar_unlinkarchive.phpt36 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
37 $file = $stub;
95 string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
98 string(60) "<?php // zip-based phar archive stub file
101 string(60) "<?php // zip-based phar archive stub file
H A Dphar_dotted_path.phpt16 $stub = Phar::createDefaultStub();
17 $file = $stub;
/PHP-7.0/ext/phar/tests/tar/
H A Dphar_stub_error.phpt14 $stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>' ."\r\n";
15 $phar->setStub($stub);
21 var_dump($phar->getStub() == $stub);
23 $newstub = '<?php echo "second stub\n"; _x_HALT_COMPILER(); ?>';
32 var_dump($phar->getStub() == $stub);
35 var_dump($phar->getStub() == $stub);
45 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
48 Exception: illegal stub for tar-based phar "%sphar_stub_error.phar.tar"
49 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
52 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
H A Dphar_stub.phpt16 $p->setStub('<?php echo "first stub\n"; __HALT_COMPILER(); ?>');
25 $file = b'<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
32 $file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
69 <?php echo "first stub\n"; __HALT_COMPILER(); ?>
70 <?php echo "second stub\n"; __HALT_COMPILER(); ?>
71 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
72 <?php echo "third stub\n"; __HALT_COMPILER(); ?>booya
73 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
74 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
H A Dphar_setdefaultstub.phpt66 string(60) "<?php // tar-based phar archive stub file
71 Warning: Phar::setDefaultStub(): method accepts no arguments for a tar- or zip-based phar stub, 1 g…
72 string(60) "<?php // tar-based phar archive stub file
77 Warning: Phar::setDefaultStub(): method accepts no arguments for a tar- or zip-based phar stub, 2 g…
78 string(60) "<?php // tar-based phar archive stub file
/PHP-7.0/ext/phar/
H A Dmakestub.php33 $stub = '/* variable
79 $stub .= "\tstatic const char newstub0[] = \"" . $webs . '";
83 $stub .= "\tstatic const char newstub1_" . $i . '[] = "' . $chunk . '";
86 $stub .= "\tstatic const char newstub2[] = \"" . $s2 . "\";
93 $stub .= "\n\tstatic const int newstub_len = " . $slen . ";
98 $stub .= ', newstub1_' . $i;
100 $stub .= ', index_php, newstub2';
101 $stub .= ", name_len + web_len + newstub_len";
103 $stub .= ', newstub3_' . $i;
105 $stub .= ");
[all …]
H A DTODO17 X Phar->begin()/Phar->commit() for specifying a new stub to the phar,
19 X Phar->getStub() for retrieving the stub of the phar [Marcus]
85 X don't automatically add a stub to .zip or .tar files [Steph]
86 X don't allow a stub or alias to be added to a .zip/.tar that does not have
87 ".phar" in the filename (or already have stub/alias) [Steph]
88 X allow read/write on .tar/.zip files that do not contain a stub or alias [Steph/Greg]
89 X prevent manual addition of stub via $a['.phar/stub.php'] = '<?php my stub'; [Greg]
96 X convertTo*() should always use the default stub [Steph]
/PHP-7.0/ext/phar/tests/zip/
H A Dphar_stub_error.phpt14 $phar->setStub($stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>' . "\r\n");
20 var_dump($phar->getStub() == $stub);
22 $newstub = '<?php echo "second stub\n"; _x_HALT_COMPILER(); ?>';
32 var_dump($phar->getStub() == $stub);
35 var_dump($phar->getStub() == $stub);
45 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
48 Exception: illegal stub for zip-based phar "%sphar_stub_error.phar.zip"
49 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
52 string(50) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>
H A Dphar_stub.phpt16 $p->setStub('<?php echo "first stub\n"; __HALT_COMPILER(); ?>');
25 $file = b'<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
32 $file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
69 <?php echo "first stub\n"; __HALT_COMPILER(); ?>
70 <?php echo "second stub\n"; __HALT_COMPILER(); ?>
71 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
72 <?php echo "third stub\n"; __HALT_COMPILER(); ?>booya
73 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
74 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
H A Dphar_setdefaultstub.phpt66 string(60) "<?php // zip-based phar archive stub file
71 Warning: Phar::setDefaultStub(): method accepts no arguments for a tar- or zip-based phar stub, 1 g…
72 string(60) "<?php // zip-based phar archive stub file
77 Warning: Phar::setDefaultStub(): method accepts no arguments for a tar- or zip-based phar stub, 2 g…
78 string(60) "<?php // zip-based phar archive stub file
H A Dnotphar.phpt2 Phar: a non-executable zip with no stub named .phar.zip
24 Warning: include(phar://%snotphar.phar.zip/.phar/stub.php): failed to open stream: '%snotphar.phar.…
/PHP-7.0/scripts/dev/generate-phpt/
H A DgtPackage.php21 $stub = <<<ENDSTUB variable
28 $phar->setStub($stub);
/PHP-7.0/ext/opcache/tests/
H A Dissue0115.phpt13 $stub = '<?php
23 $p->setStub($stub);
31 $p->setStub($stub);
/PHP-7.0/Zend/tests/
H A Dbug72101.phpt28 public $stub = null;
30 return $this->stub->invoke($invocation);
73 $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo, 'callback']);

Completed in 25 milliseconds

1234