From 266578f58483a08d7af51714636564df36a926d0 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Thu, 10 May 2012 17:07:38 +0200 Subject: [PATCH] Fix bug #61992 ext\standard\tests\general_functions\bug44295.phpt fails Exception text differ on windows --- .../tests/general_functions/bug44295-win.phpt | 29 +++++++++++++++++++ .../tests/general_functions/bug44295.phpt | 5 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ext/standard/tests/general_functions/bug44295-win.phpt diff --git a/ext/standard/tests/general_functions/bug44295-win.phpt b/ext/standard/tests/general_functions/bug44295-win.phpt new file mode 100644 index 00000000000..d210a54d517 --- /dev/null +++ b/ext/standard/tests/general_functions/bug44295-win.phpt @@ -0,0 +1,29 @@ +--TEST-- +user defined error handler + set_error_handling(EH_THROW) +--SKIPIF-- + +--FILE-- +getMessage()."\n"; +} +?> +==DONE== + +--EXPECT-- +before +in catch: DirectoryIterator::__construct(c:\not\exists\here,c:\not\exists\here): The system cannot find the path specified. (code: 3) +==DONE== diff --git a/ext/standard/tests/general_functions/bug44295.phpt b/ext/standard/tests/general_functions/bug44295.phpt index 9c127199128..a184719193e 100644 --- a/ext/standard/tests/general_functions/bug44295.phpt +++ b/ext/standard/tests/general_functions/bug44295.phpt @@ -1,7 +1,10 @@ --TEST-- user defined error handler + set_error_handling(EH_THROW) --SKIPIF-- - + --FILE--