/PHP-5.4/ext/phar/tests/ |
H A D | phar_stub_write_file.phpt | 13 $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 D | phar_stub_write.phpt | 12 $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 D | phar_stub_error.phpt | 12 $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 D | phar_stub.phpt | 12 $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 D | invalid_setstubalias.phpt | 2 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 D | phar_convert_tar.phpt | 15 $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 D | phar_convert_zip.phpt | 15 $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 D | phar_offset_check.phpt | 2 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 D | phar_convert_tar2.phpt | 16 $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 D | phar_convert_tar3.phpt | 16 $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 D | phar_convert_repeated.phpt | 15 $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 D | phar_unlinkarchive.phpt | 36 $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 D | phar_dotted_path.phpt | 16 $stub = Phar::createDefaultStub(); 17 $file = $stub;
|
/PHP-5.4/ext/phar/tests/tar/ |
H A D | phar_stub_error.phpt | 14 $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 D | phar_stub.phpt | 16 $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 D | phar_setdefaultstub.phpt | 66 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-5.4/ext/phar/ |
H A D | makestub.php | 33 $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 D | stub.h | 21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, … in phar_get_stub() argument 33 …*len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, new… in phar_get_stub()
|
H A D | TODO | 17 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-5.4/ext/phar/tests/zip/ |
H A D | phar_stub_error.phpt | 14 $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 D | phar_stub.phpt | 16 $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 D | phar_setdefaultstub.phpt | 66 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 D | notphar.phpt | 2 Phar: a non-executable zip with no stub named .phar.zip 23 Warning: include(phar://%snotphar.phar.zip/.phar/stub.php): failed to open stream: '%snotphar.phar.…
|
/PHP-5.4/scripts/dev/generate-phpt/ |
H A D | gtPackage.php | 21 $stub = <<<ENDSTUB variable 28 $phar->setStub($stub);
|
/PHP-5.4/ext/phar/phar/ |
H A D | pharcommand.inc | 132 'inf' => '<stub> Select the stub file.' 444 "When using -s <stub>, then the stub file is being " . 472 * Set the stub 476 if (isset($stub)) { 531 * Set stub end 580 $stub = $this->phar_set_stub_begin($phar, $stub, $loader, $hashbang); 647 if ((empty($stub) || $file->getRealPath() != $stub->getRealPath()) && !is_dir($file)) { 1032 * Set the argument stub 1045 * Cli Command run stub set 1062 * Get the command stub infos. [all …]
|