Skip to content

Commit 0a8971d

Browse files
committed
wip
1 parent 24028f3 commit 0a8971d

4 files changed

Lines changed: 6 additions & 15 deletions

tests/phpt-oom/out_of_memory_fatal_error_increases_memory_limit.phpt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ for ($i = 0; $i < 100000000; ++$i) {
7171
$array[] = 'sentry';
7272
}
7373
--EXPECTREGEX--
74-
Before OOM memory limit: 67108864
75-
Fatal error: Allowed memory size of 67108864 bytes exhausted \(tried to allocate 67108872 bytes\) in .* on line 66
76-
(Stack trace:)?
77-
(#0 {main})?
74+
^Before OOM memory limit: 67108864
75+
Fatal error: Allowed memory size of 67108864 bytes exhausted \(tried to allocate \d+ bytes\) in [^\r\n]+ on line \d+(?:\RStack trace:\R(?:#\d+[^\r\n]*)+)?
7876
Transport called
79-
After OOM memory limit: 72351744
77+
After OOM memory limit: 72351744$

tests/phpt/error_handler_captures_fatal_error.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ final class TestClass implements \JsonSerializable
6868
}
6969
?>
7070
--EXPECTREGEX--
71-
Fatal error: Class Sentry\\Tests\\TestClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods? \(JsonSerializable::jsonSerialize\) in .* on line 63
72-
(Stack trace:)?
73-
(#0 {main})?
71+
Fatal error: Class Sentry\\Tests\\TestClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods? \(JsonSerializable::jsonSerialize\) in .* on line 63(?:\RStack trace:\R(?:#\d+[^\r\n]*)+)?
7472
Transport called
7573
Fatal error listener called

tests/phpt/error_handler_captures_out_of_memory_fatal_error.phpt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ $foo = str_repeat('x', 1024 * 1024 * 1024);
3434
?>
3535
--EXPECTREGEX--
3636
Before OOM memory limit: 67108864
37-
Fatal error: Allowed memory size of 67108864 bytes exhausted \(tried to allocate 1073741856 bytes\) in .* on line 28
38-
(Stack trace:)?
39-
(#0 Standard input code\(28\): str_repeat\('x', 1073741824\))?
40-
(#1 {main})?
37+
Fatal error: Allowed memory size of 67108864 bytes exhausted \(tried to allocate 1073741856 bytes\) in .* on line 28(?:\RStack trace:\R(?:#\d+.*\R?)+)?
4138
Fatal error listener called
4239
After OOM memory limit: 67108864

tests/phpt/fatal_error_integration_captures_fatal_error.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,5 @@ final class TestClass implements \JsonSerializable
5858
}
5959
?>
6060
--EXPECTREGEX--
61-
^Fatal error: Class Sentry\\Tests\\TestClass contains 1 abstract methods? and must therefore be declared abstract or implement the remaining methods? \(JsonSerializable::jsonSerialize\) in .* on line 53
62-
(Stack trace:)?
63-
(#0 {main})?
61+
^Fatal error: Class Sentry\\Tests\\TestClass contains 1 abstract methods? and must therefore be declared abstract or implement the remaining methods? \(JsonSerializable::jsonSerialize\) in .* on line 53(?:\RStack trace:\R(?:#\d+[^\r\n]*)+)?
6462
Transport called\R?$

0 commit comments

Comments
 (0)