From 710b0415e93e3db3ec9e6b11ecacff6adbc35aca Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Sat, 30 Apr 2011 12:22:15 +0000 Subject: [PATCH] createDefaultWebStub doesnt exist (doc #54475) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310657 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/phar/Phar/buildFromDirectory.xml | 6 +++--- reference/phar/Phar/buildFromIterator.xml | 6 +++--- reference/phar/PharData/buildFromIterator.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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')); ?> ]]>