cvs: ZendEngine2 /tests compare_001.phpt compare_002.phpt compare_003.phpt compare_004.phpt compare_005.phpt compare_006.phpt decrement_001.phpt
exception_handler_001.phpt exception_handler_002.phpt exception_handler_003.phpt exception_handler_004.phpt exception_handler_005.phpt
exception_handler_006.phpt

From: Date: Sat, 05 May 2007 21:43:42 +0000
Subject: cvs: ZendEngine2 /tests compare_001.phpt compare_002.phpt compare_003.phpt compare_004.phpt compare_005.phpt compare_006.phpt decrement_001.phpt
exception_handler_001.phpt exception_handler_002.phpt exception_handler_003.phpt exception_handler_004.phpt exception_handler_005.phpt
exception_handler_006.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5782@lists.php.net to get a copy of this message
tony2001 Sat May 5 21:43:42 2007 UTC Added files: /ZendEngine2/tests exception_handler_001.phpt exception_handler_002.phpt exception_handler_003.phpt exception_handler_004.phpt exception_handler_005.phpt exception_handler_006.phpt Modified files: /ZendEngine2/tests compare_001.phpt compare_002.phpt compare_003.phpt compare_004.phpt compare_005.phpt compare_006.phpt decrement_001.phpt Log: fix tests, add more http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_001.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_001.phpt diff -u ZendEngine2/tests/compare_001.phpt:1.1 ZendEngine2/tests/compare_001.phpt:1.2 --- ZendEngine2/tests/compare_001.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_001.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables for equality +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_002.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_002.phpt diff -u ZendEngine2/tests/compare_002.phpt:1.1 ZendEngine2/tests/compare_002.phpt:1.2 --- ZendEngine2/tests/compare_002.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_002.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables for identity +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_003.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_003.phpt diff -u ZendEngine2/tests/compare_003.phpt:1.1 ZendEngine2/tests/compare_003.phpt:1.2 --- ZendEngine2/tests/compare_003.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_003.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables (greater than) +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_004.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_004.phpt diff -u ZendEngine2/tests/compare_004.phpt:1.1 ZendEngine2/tests/compare_004.phpt:1.2 --- ZendEngine2/tests/compare_004.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_004.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables (less than) +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_005.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_005.phpt diff -u ZendEngine2/tests/compare_005.phpt:1.1 ZendEngine2/tests/compare_005.phpt:1.2 --- ZendEngine2/tests/compare_005.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_005.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables (greater or equal than) +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/compare_006.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/compare_006.phpt diff -u ZendEngine2/tests/compare_006.phpt:1.1 ZendEngine2/tests/compare_006.phpt:1.2 --- ZendEngine2/tests/compare_006.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/compare_006.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- comparing different variables (smaller or equal than) +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/decrement_001.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/decrement_001.phpt diff -u ZendEngine2/tests/decrement_001.phpt:1.1 ZendEngine2/tests/decrement_001.phpt:1.2 --- ZendEngine2/tests/decrement_001.phpt:1.1 Fri May 4 12:45:30 2007 +++ ZendEngine2/tests/decrement_001.phpt Sat May 5 21:43:41 2007 @@ -1,5 +1,7 @@ --TEST-- decrementing different variables +--SKIPIF-- +<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_001.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_001.phpt +++ ZendEngine2/tests/exception_handler_001.phpt --TEST-- exception handler tests - 1 --FILE-- <?php set_exception_handler("foo"); function foo($e) { var_dump(get_class($e)." thrown!"); } class test extends Exception { } throw new test(); echo "Done\n"; ?> --EXPECTF-- string(12) "test thrown!" --UEXPECTF-- unicode(12) "test thrown!" http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_002.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_002.phpt +++ ZendEngine2/tests/exception_handler_002.phpt --TEST-- exception handler tests - 2 --FILE-- <?php set_exception_handler("foo"); function foo($e) { var_dump(get_class($e)." thrown!"); throw new Exception(); } class test extends Exception { } throw new test(); echo "Done\n"; ?> --EXPECTF-- string(12) "test thrown!" Fatal error: Exception thrown without a stack frame in Unknown on line 0 --UEXPECTF-- unicode(12) "test thrown!" Fatal error: Exception thrown without a stack frame in Unknown on line 0 http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_003.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_003.phpt +++ ZendEngine2/tests/exception_handler_003.phpt --TEST-- exception handler tests - 3 --FILE-- <?php class test { function foo () { set_exception_handler(array($this, "bar")); } function bar($e) { var_dump(get_class($e)." thrown!"); } } $a = new test; $a->foo(); throw new Exception(); echo "Done\n"; ?> --EXPECTF-- string(17) "Exception thrown!" --UEXPECTF-- unicode(17) "Exception thrown!" http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_004.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_004.phpt +++ ZendEngine2/tests/exception_handler_004.phpt --TEST-- exception handler tests - 4 --FILE-- <?php set_exception_handler("fo"); set_exception_handler(array("", "")); set_exception_handler(); set_exception_handler("foo", "bar"); echo "Done\n"; ?> --EXPECTF-- Warning: set_exception_handler() expects the argument (fo) to be a valid callback in %s on line %d Warning: set_exception_handler() expects the argument (::) to be a valid callback in %s on line %d Warning: Wrong parameter count for set_exception_handler() in %s on line %d Warning: Wrong parameter count for set_exception_handler() in %s on line %d Done http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_005.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_005.phpt +++ ZendEngine2/tests/exception_handler_005.phpt --TEST-- exception handler tests - 5 --FILE-- <?php set_exception_handler("foo"); set_exception_handler("foo1"); function foo($e) { var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); } function foo1($e) { var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); } throw new excEption(); echo "Done\n"; ?> --EXPECTF-- string(25) "foo1(): Exception thrown!" --UEXPECTF-- unicode(25) "foo1(): Exception thrown!" http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_handler_006.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/exception_handler_006.phpt +++ ZendEngine2/tests/exception_handler_006.phpt --TEST-- exception handler tests - 6 --FILE-- <?php set_exception_handler("foo"); set_exception_handler("foo1"); restore_exception_handler(); function foo($e) { var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); } function foo1($e) { var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); } throw new excEption(); echo "Done\n"; ?> --EXPECTF-- string(24) "foo(): Exception thrown!" --UEXPECTF-- unicode(24) "foo(): Exception thrown!"

« previous php.zend-engine.cvs (#5782) next »