Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3aa5ed2

Browse filesBrowse files
[Php70] Workaround https://bugs.php.net/63206
1 parent fef21ad commit 3aa5ed2
Copy full SHA for 3aa5ed2

1 file changed

+5-1Lines changed: 5 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Php70/Php70.php‎

Copy file name to clipboardExpand all lines: src/Php70/Php70.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public static function preg_replace_callback_array(array $patterns, $subject, $l
5151

5252
public static function error_clear_last()
5353
{
54-
set_error_handler('var_dump', 0);
54+
static $handler;
55+
if (!$handler) {
56+
$handler = function() { return false; };
57+
}
58+
set_error_handler($handler);
5559
@trigger_error('');
5660
restore_error_handler();
5761
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.