Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- { version: '8.2', phpunit: '^9.6.21' }
- { version: '8.3', phpunit: '^9.6.21' }
- { version: '8.4', phpunit: '^9.6.21' }
- { version: '8.5', phpunit: '^9.6.21' }
dependencies:
- lowest
- highest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ $array = [];
for ($i = 0; $i < 100000000; ++$i) {
$array[] = 'sentry';
}
--EXPECTF--
Before OOM memory limit: 67108864
Fatal error: Allowed memory size of %d bytes exhausted (tried to allocate %d bytes) in %s on line %d
--EXPECTREGEX--
^Before OOM memory limit: 67108864
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]*)+)?
Transport called
After OOM memory limit: 72351744
After OOM memory limit: 72351744$
4 changes: 2 additions & 2 deletions tests/phpt/error_handler_captures_fatal_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class TestClass implements \JsonSerializable
{
}
?>
--EXPECTF--
Fatal error: Class Sentry\Tests\TestClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize) in %s on line %d
--EXPECTREGEX--
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?)+)?
Transport called
Fatal error listener called
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ echo 'Before OOM memory limit: ' . ini_get('memory_limit');

$foo = str_repeat('x', 1024 * 1024 * 1024);
?>
--EXPECTF--
--EXPECTREGEX--
Before OOM memory limit: 67108864
Fatal error: Allowed memory size of %d bytes exhausted (tried to allocate %d bytes) in %s on line %d
Fatal error: Allowed memory size of 67108864 bytes exhausted \(tried to allocate 1073741856 bytes\) in .* on line 28(?:\RStack trace:\R(?:#\d+.*\R?)+)?
Fatal error listener called
After OOM memory limit: 67108864
6 changes: 3 additions & 3 deletions tests/phpt/fatal_error_integration_captures_fatal_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ final class TestClass implements \JsonSerializable
{
}
?>
--EXPECTF--
Fatal error: Class Sentry\Tests\TestClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize) in %s on line %d
Transport called
--EXPECTREGEX--
^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?)+)?
Transport called\R?$
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ final class TestClass implements \JsonSerializable
{
}
?>
--EXPECTF--
Fatal error: Class Sentry\Tests\TestClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize) in %s on line %d
--EXPECTREGEX--
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 54
Loading