]> granicus.if.org Git - php/commitdiff
Update tests to accommodate those two extra bytes
authorSteph Fox <sfox@php.net>
Thu, 21 Feb 2008 15:20:46 +0000 (15:20 +0000)
committerSteph Fox <sfox@php.net>
Thu, 21 Feb 2008 15:20:46 +0000 (15:20 +0000)
ext/phar/tests/phar_commitwrite.phpt
ext/phar/tests/phar_create_in_cwd.phpt
ext/phar/tests/phar_createdefaultstub.phpt
ext/phar/tests/phar_setdefaultstub.phpt
ext/phar/tests/tar/phar_convert_phar.phpt
ext/phar/tests/tar/phar_convert_phar2.phpt
ext/phar/tests/tar/phar_convert_phar3.phpt
ext/phar/tests/zip/phar_convert_phar.phpt

index 51bab40a54d32cdfccbed13a23cf85f69817f127..2693f0262fef2da3a372dc5fae4d4aee8aaa5b19 100644 (file)
@@ -29,7 +29,7 @@ unlink(dirname(__FILE__) . '/brandnewphar.phar');
 __HALT_COMPILER();
 ?>
 --EXPECT--
-int(6571)
+int(6573)
 string(200) "<?php
 function __autoload($class)
 {
index eec4ca771c5845925dccba24b6ec9f00eb7690bf..206a92a15fe511068e492cde226895a77bae6cb7 100644 (file)
@@ -32,7 +32,7 @@ __HALT_COMPILER();
 unlink(dirname(__FILE__) . '/brandnewphar.phar');
 ?>
 --EXPECT--
-int(6571)
+int(6573)
 string(200) "<?php
 function __autoload($class)
 {
index 1e9925b065a74cdc1190dc8f59800bc9b9b57c26..6569b14d46785282dfec319a0e27bc18413fce70 100644 (file)
@@ -34,7 +34,7 @@ echo $e->getMessage() . "\n";
 ?>
 ===DONE===
 --EXPECT--
-string(6571) "<?php
+string(6573) "<?php
 
 $web = 'index.php';
 
@@ -45,7 +45,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -143,7 +143,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'index.php';
-const LEN = 6573;
+const LEN = 6575;
 
 static function go($return = false)
 {
@@ -327,7 +327,7 @@ Extract_Phar::go();
 __HALT_COMPILER(); ?>"
 ============================================================================
 ============================================================================
-string(6582) "<?php
+string(6584) "<?php
 
 $web = 'index.php';
 
@@ -338,7 +338,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -436,7 +436,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'my/custom/thingy.php';
-const LEN = 6584;
+const LEN = 6586;
 
 static function go($return = false)
 {
@@ -620,7 +620,7 @@ Extract_Phar::go();
 __HALT_COMPILER(); ?>"
 ============================================================================
 ============================================================================
-int(6962)
+int(6964)
 ============================================================================
 ============================================================================
 Illegal filename passed in for stub creation, was 401 characters long, and only 400 or less is allowed
@@ -628,7 +628,7 @@ Illegal filename passed in for stub creation, was 401 characters long, and only
 ============================================================================
 ============================================================================
 ============================================================================
-string(6584) "<?php
+string(6586) "<?php
 
 $web = 'the/web.php';
 
@@ -639,7 +639,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -737,7 +737,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'my/custom/thingy.php';
-const LEN = 6586;
+const LEN = 6588;
 
 static function go($return = false)
 {
@@ -921,6 +921,6 @@ Extract_Phar::go();
 __HALT_COMPILER(); ?>"
 ============================================================================
 ============================================================================
-int(6962)
+int(6964)
 Illegal web filename passed in for stub creation, was 401 characters long, and only 400 or less is allowed
-===DONE===
\ No newline at end of file
+===DONE===
index 1131ad1013e109d6eab18526d26f4eae2c6dc10c..ce0077bf5cac0cfc1635e27222cc4333f9c22b6b 100644 (file)
@@ -52,7 +52,7 @@ try {
 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
 ?>
 --EXPECT--
-string(6573) "<?php
+string(6575) "<?php
 
 $web = 'index.php';
 
@@ -63,7 +63,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -161,7 +161,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'index.php';
-const LEN = 6573;
+const LEN = 6575;
 
 static function go($return = false)
 {
@@ -346,7 +346,7 @@ __HALT_COMPILER(); ?>
 "
 ============================================================================
 ============================================================================
-string(6584) "<?php
+string(6586) "<?php
 
 $web = 'index.php';
 
@@ -357,7 +357,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -455,7 +455,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'my/custom/thingy.php';
-const LEN = 6584;
+const LEN = 6586;
 
 static function go($return = false)
 {
@@ -640,7 +640,7 @@ __HALT_COMPILER(); ?>
 "
 ============================================================================
 ============================================================================
-string(6586) "<?php
+string(6588) "<?php
 
 $web = 'the/web.php';
 
@@ -651,7 +651,7 @@ include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
 return;
 }
 
-if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST')) {
+if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) {
 Extract_Phar::go(true);
 $mimes = array(
 'phps' => 2,
@@ -749,7 +749,7 @@ const GZ = 0x1000;
 const BZ2 = 0x2000;
 const MASK = 0x3000;
 const START = 'my/custom/thingy.php';
-const LEN = 6586;
+const LEN = 6588;
 
 static function go($return = false)
 {
@@ -934,6 +934,6 @@ __HALT_COMPILER(); ?>
 "
 ============================================================================
 ============================================================================
-int(6964)
+int(6966)
 Illegal filename passed in for stub creation, was 401 characters long, and only 400 or less is allowed
 ===DONE===
index 6a40e9244583c3b501632ec1c451741b08d931f5..4c588720de01c6109cac8e9167ab0b23ecf4f035 100644 (file)
@@ -44,12 +44,12 @@ __HALT_COMPILER();
 ?>
 --EXPECT--
 bool(false)
-int(6571)
+int(6573)
 bool(true)
 string(60) "<?php // tar-based phar archive stub file
 __HALT_COMPILER();"
 bool(true)
-int(6571)
+int(6573)
 bool(true)
-int(6571)
+int(6573)
 ===DONE===
index 0218686f1ea93d31f3ed1bbd869f62e1ae970a1e..b744188e9a34ecea244e12cbbd101e50b4e6b1da 100644 (file)
@@ -47,14 +47,14 @@ __HALT_COMPILER();
 ?>
 --EXPECT--
 bool(false)
-int(6571)
+int(6573)
 bool(true)
 string(60) "<?php // tar-based phar archive stub file
 __HALT_COMPILER();"
 bool(true)
 int(4096)
-int(6571)
+int(6573)
 bool(true)
 bool(true)
-int(6571)
+int(6573)
 ===DONE===
index d49463cc825336cef655a18261fddc20c08dd295..0a99bca3c8a8a5b199e6073218e8f639a1f27396 100644 (file)
@@ -47,14 +47,14 @@ __HALT_COMPILER();
 ?>
 --EXPECT--
 bool(false)
-int(6571)
+int(6573)
 bool(true)
 string(60) "<?php // tar-based phar archive stub file
 __HALT_COMPILER();"
 bool(true)
 int(8192)
-int(6571)
+int(6573)
 bool(true)
 bool(true)
-int(6571)
+int(6573)
 ===DONE===
index 7dffecd3a1065115172b3257e66fa79043b11306..2713ac28e2580dfe1462c419059626c75da3edcc 100644 (file)
@@ -50,7 +50,7 @@ bool(true)
 string(60) "<?php // zip-based phar archive stub file
 __HALT_COMPILER();"
 bool(true)
-int(6571)
+int(6573)
 bool(true)
-int(6571)
+int(6573)
 ===DONE===