diff --git a/reference/phar/Phar/buildFromDirectory.xml b/reference/phar/Phar/buildFromDirectory.xml index b4e2420b6b..3c30b1c4be 100644 --- a/reference/phar/Phar/buildFromDirectory.xml +++ b/reference/phar/Phar/buildFromDirectory.xml @@ -83,12 +83,12 @@ $phar = new Phar('project.phar', 0, 'project.phar'); // add all files in the project $phar->buildFromDirectory(dirname(__FILE__) . '/project'); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); $phar2 = new Phar('project2.phar', 0, 'project2.phar'); // add all files in the project, only include php files -$phar->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/'); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar2->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/'); +$phar2->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); ?> ]]> diff --git a/reference/phar/Phar/buildFromIterator.xml b/reference/phar/Phar/buildFromIterator.xml index 2339e3b4aa..fad5637fe5 100644 --- a/reference/phar/Phar/buildFromIterator.xml +++ b/reference/phar/Phar/buildFromIterator.xml @@ -99,7 +99,7 @@ $phar->buildFromIterator( new RecursiveIteratorIterator( new RecursiveDirectoryIterator('/path/to/project')), '/path/to/project'); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); ?> ]]> @@ -124,7 +124,7 @@ $phar->buildFromIterator( new RecursiveIteratorIterator( new Phar('/path/to/anotherphar.phar')), 'phar:///path/to/anotherphar.phar/path/to/project'); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); ?> ]]> @@ -148,7 +148,7 @@ $phar->buildFromIterator( 'internal/file.php' => dirname(__FILE__) . '/somefile.php', 'another/file.jpg' => fopen('/path/to/bigfile.jpg', 'rb'), ))); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); ?> ]]> diff --git a/reference/phar/PharData/buildFromIterator.xml b/reference/phar/PharData/buildFromIterator.xml index de4bfcd249..d699fdd5a6 100644 --- a/reference/phar/PharData/buildFromIterator.xml +++ b/reference/phar/PharData/buildFromIterator.xml @@ -84,7 +84,7 @@ $phar->buildFromIterator( new RecursiveIteratorIterator( new Phar('/path/to/anotherphar.phar')), 'phar:///path/to/anotherphar.phar/path/to/project'); -$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php')); +$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php')); ?> ]]>