diff --git a/Zend/tests/bug19859.phpt b/Zend/tests/bug19859.phpt index d961b75a785..6eb1701e7b0 100644 --- a/Zend/tests/bug19859.phpt +++ b/Zend/tests/bug19859.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #19859 (__call() does not catch call_user_func_array() calls) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- diff --git a/Zend/tests/bug21888.phpt b/Zend/tests/bug21888.phpt index a13da1943a0..b32bd356073 100644 --- a/Zend/tests/bug21888.phpt +++ b/Zend/tests/bug21888.phpt @@ -1,9 +1,5 @@ --TEST-- Bug #21888 (protected property and protected method of the same name) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --INI-- error_reporting=2047 --FILE-- diff --git a/Zend/tests/bug24635.phpt b/Zend/tests/bug24635.phpt index d9466d971e2..758a803a06b 100644 --- a/Zend/tests/bug24635.phpt +++ b/Zend/tests/bug24635.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #24635 (crash on dtor calling other functions) ---SKIPIF-- - --FILE-- --FILE-- __clone(); crashes php) ---SKIPIF-- - --FILE-- --EXPECTF-- Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d -I am alive - +NULL +NULL diff --git a/Zend/tests/bug39304_2_4.phpt b/Zend/tests/bug39304_2_4.phpt deleted file mode 100644 index 917c64e2cda..00000000000 --- a/Zend/tests/bug39304_2_4.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -Bug #39304 (Segmentation fault with list unpacking of string offset) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d -NULL -NULL diff --git a/Zend/tests/dtor_scope.phpt b/Zend/tests/dtor_scope.phpt index ab991cf9492..80f42cacb59 100644 --- a/Zend/tests/dtor_scope.phpt +++ b/Zend/tests/dtor_scope.phpt @@ -1,7 +1,5 @@ --TEST-- Scoping in destructor call ---SKIPIF-- - --FILE-- ---FILE-- -a)); - -var_dump(isset($c[0][1][2]->a->b->c->d)); - -var_dump(isset(${$a}->{$b->{$c[$d]}})); - -var_dump(isset($GLOBALS)); - -var_dump(isset($GLOBALS[1])); - -var_dump(isset($GLOBALS[1]->$GLOBALS)); - -?> ---EXPECTF-- -bool(true) -bool(true) -bool(false) -bool(false) - -Notice: Undefined variable: c in %s on line %d - -Notice: Undefined variable: d in %s on line %d - -Notice: Trying to get property of non-object in %s on line %d -bool(false) -bool(true) -bool(false) -bool(false) diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt index ffd81ffb874..ab8afb8cb9f 100644 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt @@ -3,8 +3,6 @@ ReflectionClass::getStaticPropertyValue() --CREDITS-- Robin Fernandes Steve Seear ---SKIPIF-- -=')) die('skip ZendEngine 2.3 or below needed'); ?> --FILE-- getStaticPropertyValue('\x00A\x00privateOverr...') +#1 {main} + thrown in %s on line %d diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001_2_4.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001_2_4.phpt deleted file mode 100644 index 02f7595cb42..00000000000 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001_2_4.phpt +++ /dev/null @@ -1,61 +0,0 @@ ---TEST-- -ReflectionClass::getStaticPropertyValue() ---CREDITS-- -Robin Fernandes -Steve Seear ---SKIPIF-- - ---FILE-- -getStaticPropertyValue("privateOverridden", "default value")); -var_dump($rcA->getStaticPropertyValue("\0A\0privateOverridden")); -var_dump($rcA->getStaticPropertyValue("protectedOverridden", "default value")); -var_dump($rcA->getStaticPropertyValue("\0*\0protectedOverridden")); -var_dump($rcA->getStaticPropertyValue("publicOverridden")); - -echo "\nRetrieving static values from B:\n"; -$rcB = new ReflectionClass('B'); -var_dump($rcB->getStaticPropertyValue("\0A\0privateOverridden")); -var_dump($rcB->getStaticPropertyValue("\0B\0privateOverridden")); -var_dump($rcB->getStaticPropertyValue("\0*\0protectedOverridden")); -var_dump($rcB->getStaticPropertyValue("publicOverridden")); - -echo "\nRetrieving non-existent values from A with no default value:\n"; -try { - var_dump($rcA->getStaticPropertyValue("protectedOverridden")); - echo "you should not see this"; -} catch (Exception $e) { - echo $e->getMessage() . "\n"; -} - -try { - var_dump($rcA->getStaticPropertyValue("privateOverridden")); - echo "you should not see this"; -} catch (Exception $e) { - echo $e->getMessage() . "\n"; -} - -?> ---EXPECTF-- -Retrieving static values from A: -string(13) "default value" - -Fatal error: Uncaught ReflectionException: Class A does not have a property named in %sReflectionClass_getStaticPropertyValue_001_2_4.php:%d -Stack trace: -#0 %sReflectionClass_getStaticPropertyValue_001_2_4.php(%d): ReflectionClass->getStaticPropertyValue('\x00A\x00privateOverr...') -#1 {main} - thrown in %sReflectionClass_getStaticPropertyValue_001_2_4.php on line %d diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt index 9e8f01e6796..0004f3ff5a7 100644 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt +++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt @@ -3,8 +3,6 @@ ReflectionClass::setStaticPropertyValue() --CREDITS-- Robin Fernandes Steve Seear ---SKIPIF-- -=')) die('skip ZendEngine 2.3 or below needed'); ?> --FILE-- --EXPECTF-- Set static values in A: -Array -( - [privateOverridden] => new value 1 - [protectedOverridden] => new value 2 - [publicOverridden] => new value 3 -) -Set static values in B: -Array -( - [privateOverridden] => new value 4 - [protectedOverridden] => new value 2 - [publicOverridden] => new value 3 -) -Array -( - [privateOverridden] => new value 5 - [protectedOverridden] => new value 6 - [publicOverridden] => new value 7 -) - -Set non-existent values from A with no default value: -Class A does not have a property named protectedOverridden -Class A does not have a property named privateOverridden +Fatal error: Uncaught ReflectionException: Class A does not have a property named in %s:%d +Stack trace: +#0 %s(%d): ReflectionClass->setStaticPropertyValue('\x00A\x00privateOverr...', 'new value 1') +#1 {main} + thrown in %s on line %d diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001_2_4.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001_2_4.phpt deleted file mode 100644 index 6720d2daa21..00000000000 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001_2_4.phpt +++ /dev/null @@ -1,61 +0,0 @@ ---TEST-- -ReflectionClass::setStaticPropertyValue() ---CREDITS-- -Robin Fernandes -Steve Seear ---SKIPIF-- - ---FILE-- -setStaticPropertyValue("\0A\0privateOverridden", "new value 1"); -$rcA->setStaticPropertyValue("\0*\0protectedOverridden", "new value 2"); -$rcA->setStaticPropertyValue("publicOverridden", "new value 3"); -print_r($rcA->getStaticProperties()); - -echo "\nSet static values in B:\n"; -$rcB = new ReflectionClass('B'); -$rcB->setStaticPropertyValue("\0A\0privateOverridden", "new value 4"); -$rcB->setStaticPropertyValue("\0B\0privateOverridden", "new value 5"); -$rcB->setStaticPropertyValue("\0*\0protectedOverridden", "new value 6"); -$rcB->setStaticPropertyValue("publicOverridden", "new value 7"); -print_r($rcA->getStaticProperties()); -print_r($rcB->getStaticProperties()); - -echo "\nSet non-existent values from A with no default value:\n"; -try { - var_dump($rcA->setStaticPropertyValue("protectedOverridden", "new value 8")); - echo "you should not see this"; -} catch (Exception $e) { - echo $e->getMessage() . "\n"; -} - -try { - var_dump($rcA->setStaticPropertyValue("privateOverridden", "new value 9")); - echo "you should not see this"; -} catch (Exception $e) { - echo $e->getMessage() . "\n"; -} - -?> ---EXPECTF-- -Set static values in A: - -Fatal error: Uncaught ReflectionException: Class A does not have a property named in %sReflectionClass_setStaticPropertyValue_001_2_4.php:%d -Stack trace: -#0 %sReflectionClass_setStaticPropertyValue_001_2_4.php(%d): ReflectionClass->setStaticPropertyValue('\x00A\x00privateOverr...', 'new value 1') -#1 {main} - thrown in %sReflectionClass_setStaticPropertyValue_001_2_4.php on line %d diff --git a/ext/standard/tests/array/array_fill_object.phpt b/ext/standard/tests/array/array_fill_object.phpt index 86773b17f8e..aa1db044cc0 100644 --- a/ext/standard/tests/array/array_fill_object.phpt +++ b/ext/standard/tests/array/array_fill_object.phpt @@ -1,7 +1,5 @@ --TEST-- Test array_fill() function : usage variations - various object values for 'val' argument ---SKIPIF-- -=')) die('skip ZendEngine 2.3 or below needed'); ?> --FILE-- int(102) - ["member1":"Test2":private]=> - int(100) ["var1"]=> int(30) ["var2"]=> int(101) + ["member1":"Test2":private]=> + int(100) } [1]=> object(Child_test2)#%d (4) { ["member1":"Child_test2":private]=> int(102) - ["member1":"Test2":private]=> - int(100) ["var1"]=> int(30) ["var2"]=> int(101) + ["member1":"Test2":private]=> + int(100) } } -- Iteration 6 -- diff --git a/ext/standard/tests/array/array_fill_object_2_4.phpt b/ext/standard/tests/array/array_fill_object_2_4.phpt deleted file mode 100644 index fb8179766c0..00000000000 --- a/ext/standard/tests/array/array_fill_object_2_4.phpt +++ /dev/null @@ -1,434 +0,0 @@ ---TEST-- -Test array_fill() function : usage variations - various object values for 'val' argument ---SKIPIF-- - ---FILE-- -member1 = $value1; - $this->var2 = $value2; - } -} - -// child class which inherits parent class test1 -class Child_test1 extends Test1 -{ - public $member2; - - function __construct($value1 , $value2 , $value3) - { - parent::__construct($value1 , $value2); - $this->member2 = $value3; - } -} - -//class with private member, static member, constant and constructor to initialize the private member -class Test2 -{ - const test2_constant = "test2"; - public static $test2_static = 0; - private $member1; - var $var1 = 30; - var $var2; - - function __construct($value1 , $value2) - { - $this->member1 = $value1; - $this->var2 = $value2; - } -} - -// child class which inherits parent class test2 -class Child_test2 extends Test2 -{ - private $member1; - - function __construct($value1 , $value2 , $value3) - { - parent::__construct($value1 , $value2); - $this->member1 = $value3; - } -} - -// class with protected member, static member, constant and consturctor to initialize the protected member -class Test3 -{ - const test3_constant = "test3"; - public static $test3_static = 0; - protected $member1; - var $var1 = 30; - var $var2; - - function __construct($value1 , $value2) - { - $this->member1 = $value1; - $this->var2 = $value2; - } -} - -// child class which inherits parent class test3 -class Child_test3 extends Test3 -{ - protected $member1; - - function __construct($value1 , $value2 , $value3) - { - parent::__construct($value1 , $value2); - $this->member1 = $value3; - } -} - -// class with public, private, protected members, static, constant members and constructor to initialize all the members -class Test4 -{ - const test4_constant = "test4"; - public static $test4_static = 0; - public $member1; - private $member2; - protected $member3; - - function __construct($value1 , $value2 , $value3) - { - $this->member1 = $value1; - $this->member2 = $value2; - $this->member3 = $value3; - } -} - -// child class which inherits parent class test4 -class Child_test4 extends Test4 -{ - var $var1; - - function __construct($value1 , $value2 , $value3 , $value4) - { - parent::__construct($value1 , $value2 , $value3); - $this->var1 = $value4; - } -} - -// abstract class with public, private, protected members -abstract class AbstractClass -{ - public $member1; - private $member2; - protected $member3; - var $var1 = 30; - - abstract protected function display(); -} - -// implement abstract 'AbstractClass' class -class ConcreteClass1 extends AbstractClass -{ - protected function display() - { - echo "class name is ConcreteClass1 \n"; - } -} - - -// declarationn of the interface 'iTemplate' -interface iTemplate -{ - public function display(); -} - -// implement the interface 'iTemplate' -class Template1 implements iTemplate -{ - public function display() - { - echo "class name is Template1\n"; - } -} - -//array of object values for 'val' argument -$objects = array( - - /* 1 */ new Test(), - new Test1(100 , 101), - new Child_test1(100 , 101 , 102), - new Test2(100 , 101), - /* 5 */ new Child_test2(100 , 101 , 102), - new Test3(100 , 101), - new Child_test3(100 , 101 , 102), - new Test4( 100 , 101 , 102), - new Child_test4(100 , 101 , 102 , 103), - new ConcreteClass1(), - /* 11 */ new Template1() -); - -// loop through each element of the array for 'val' argument -// check the working of array_fill() -echo "--- Testing array_fill() with different object values for 'val' argument ---\n"; -$counter = 1; -for($index = 0; $index < count($objects); $index ++) -{ - echo "-- Iteration $counter --\n"; - $val = $objects[$index]; - - var_dump( array_fill($start_key,$num,$val) ); - - $counter++; -} - -echo "Done"; -?> ---EXPECTF-- -*** Testing array_fill() : usage variations *** ---- Testing array_fill() with different object values for 'val' argument --- --- Iteration 1 -- -array(2) { - [0]=> - object(Test)#%d (0) { - } - [1]=> - object(Test)#%d (0) { - } -} --- Iteration 2 -- -array(2) { - [0]=> - object(Test1)#%d (3) { - ["member1"]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } - [1]=> - object(Test1)#%d (3) { - ["member1"]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } -} --- Iteration 3 -- -array(2) { - [0]=> - object(Child_test1)#%d (4) { - ["member2"]=> - int(102) - ["member1"]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } - [1]=> - object(Child_test1)#%d (4) { - ["member2"]=> - int(102) - ["member1"]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } -} --- Iteration 4 -- -array(2) { - [0]=> - object(Test2)#%d (3) { - ["member1":"Test2":private]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } - [1]=> - object(Test2)#%d (3) { - ["member1":"Test2":private]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } -} --- Iteration 5 -- -array(2) { - [0]=> - object(Child_test2)#%d (4) { - ["member1":"Child_test2":private]=> - int(102) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - ["member1":"Test2":private]=> - int(100) - } - [1]=> - object(Child_test2)#%d (4) { - ["member1":"Child_test2":private]=> - int(102) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - ["member1":"Test2":private]=> - int(100) - } -} --- Iteration 6 -- -array(2) { - [0]=> - object(Test3)#%d (3) { - ["member1":protected]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } - [1]=> - object(Test3)#%d (3) { - ["member1":protected]=> - int(100) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } -} --- Iteration 7 -- -array(2) { - [0]=> - object(Child_test3)#%d (3) { - ["member1":protected]=> - int(102) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } - [1]=> - object(Child_test3)#%d (3) { - ["member1":protected]=> - int(102) - ["var1"]=> - int(30) - ["var2"]=> - int(101) - } -} --- Iteration 8 -- -array(2) { - [0]=> - object(Test4)#%d (3) { - ["member1"]=> - int(100) - ["member2":"Test4":private]=> - int(101) - ["member3":protected]=> - int(102) - } - [1]=> - object(Test4)#%d (3) { - ["member1"]=> - int(100) - ["member2":"Test4":private]=> - int(101) - ["member3":protected]=> - int(102) - } -} --- Iteration 9 -- -array(2) { - [0]=> - object(Child_test4)#%d (4) { - ["var1"]=> - int(103) - ["member1"]=> - int(100) - ["member2":"Test4":private]=> - int(101) - ["member3":protected]=> - int(102) - } - [1]=> - object(Child_test4)#%d (4) { - ["var1"]=> - int(103) - ["member1"]=> - int(100) - ["member2":"Test4":private]=> - int(101) - ["member3":protected]=> - int(102) - } -} --- Iteration 10 -- -array(2) { - [0]=> - object(ConcreteClass1)#%d (4) { - ["member1"]=> - NULL - ["member2":"AbstractClass":private]=> - NULL - ["member3":protected]=> - NULL - ["var1"]=> - int(30) - } - [1]=> - object(ConcreteClass1)#%d (4) { - ["member1"]=> - NULL - ["member2":"AbstractClass":private]=> - NULL - ["member3":protected]=> - NULL - ["var1"]=> - int(30) - } -} --- Iteration 11 -- -array(2) { - [0]=> - object(Template1)#%d (0) { - } - [1]=> - object(Template1)#%d (0) { - } -} -Done diff --git a/ext/standard/tests/class_object/is_a.phpt b/ext/standard/tests/class_object/is_a.phpt index 832d5550f15..db74cdcc9ae 100644 --- a/ext/standard/tests/class_object/is_a.phpt +++ b/ext/standard/tests/class_object/is_a.phpt @@ -1,7 +1,5 @@ --TEST-- is_a and is_subclass_of behaviour (with and without autoload) ---SKIPIF-- - --FILE-- --FILE-- diff --git a/ext/standard/tests/strings/bug24281.phpt b/ext/standard/tests/strings/bug24281.phpt index 3c041d67cba..66a30913e89 100644 --- a/ext/standard/tests/strings/bug24281.phpt +++ b/ext/standard/tests/strings/bug24281.phpt @@ -1,9 +1,5 @@ --TEST-- Bug #24281 (str_replace count not returned if variable wasn't initialized) ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- diff --git a/tests/classes/autoload_002.phpt b/tests/classes/autoload_002.phpt index 27dea0f9d4f..582cb460f4c 100644 --- a/tests/classes/autoload_002.phpt +++ b/tests/classes/autoload_002.phpt @@ -2,7 +2,6 @@ ZE2 Autoload and get_class_methods --SKIPIF-- --FILE-- diff --git a/tests/classes/autoload_003.phpt b/tests/classes/autoload_003.phpt index 7bdb5da36af..41e877cdd9b 100644 --- a/tests/classes/autoload_003.phpt +++ b/tests/classes/autoload_003.phpt @@ -2,7 +2,6 @@ ZE2 Autoload and derived classes --SKIPIF-- --FILE-- diff --git a/tests/classes/autoload_004.phpt b/tests/classes/autoload_004.phpt index 23aea5d0866..88b10b50d70 100644 --- a/tests/classes/autoload_004.phpt +++ b/tests/classes/autoload_004.phpt @@ -2,7 +2,6 @@ ZE2 Autoload and recursion --SKIPIF-- --FILE-- diff --git a/tests/classes/autoload_005.phpt b/tests/classes/autoload_005.phpt index 36a4e18f0ba..c5741396d5f 100644 --- a/tests/classes/autoload_005.phpt +++ b/tests/classes/autoload_005.phpt @@ -2,7 +2,6 @@ ZE2 Autoload from destructor --SKIPIF-- --FILE-- diff --git a/tests/classes/autoload_006.phpt b/tests/classes/autoload_006.phpt index 9af6fc98299..173b87db044 100644 --- a/tests/classes/autoload_006.phpt +++ b/tests/classes/autoload_006.phpt @@ -2,7 +2,6 @@ ZE2 Autoload from destructor --SKIPIF-- --FILE-- diff --git a/tests/classes/class_abstract.phpt b/tests/classes/class_abstract.phpt index 10fcdba4618..fe95d9bcc33 100644 --- a/tests/classes/class_abstract.phpt +++ b/tests/classes/class_abstract.phpt @@ -1,7 +1,5 @@ --TEST-- ZE2 An abstract class cannot be instanciated ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --INI-- error_reporting=2047 --FILE-- diff --git a/tests/classes/constants_scope_001.phpt b/tests/classes/constants_scope_001.phpt index 50066282eaa..c2585b2212e 100644 --- a/tests/classes/constants_scope_001.phpt +++ b/tests/classes/constants_scope_001.phpt @@ -1,7 +1,5 @@ --TEST-- ZE2 class constants and scope ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --INI-- error_reporting=2039 --FILE-- diff --git a/tests/lang/error_2_exception_001.phpt b/tests/lang/error_2_exception_001.phpt index 9596ba23310..e084b92dd76 100644 --- a/tests/lang/error_2_exception_001.phpt +++ b/tests/lang/error_2_exception_001.phpt @@ -1,7 +1,5 @@ --TEST-- ZE2 errors caught as exceptions ---SKIPIF-- - --FILE-- --FILE-- --FILE-- --FILE--