Skip to content

Commit

Permalink
bug #19379 [VarDumper] Fix for PHP 7.1 (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] Fix for PHP 7.1

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19377
| License       | MIT
| Doc PR        | -

Tests fail on 7.1 otherwise

Commits
-------

d422939 [VarDumper] Fix for 7.1
  • Loading branch information
fabpot committed Jul 18, 2016
2 parents 1376e14 + d422939 commit 37b299b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarDumper/Cloner/VarCloner.php
Expand Up @@ -315,7 +315,7 @@ private static function initHashMask()
if (!empty($frame['line'])) {
ob_start();
debug_zval_dump($obj);
self::$hashMask = substr(ob_get_clean(), 17);
self::$hashMask = (int) substr(ob_get_clean(), 17);
}
}

Expand Down

0 comments on commit 37b299b

Please sign in to comment.