summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_044.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-12 12:53:09 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-22 11:39:52 +0200
commit28cf080701082cbb1848d511d38cc1ecd060a752 (patch)
treea99a785b5e8fc9da1a46f043437bf41000b44feb /Zend/tests/closure_044.phpt
parentb3f74b0b7d89ee8efe6897b9ed6397d8b80a15e0 (diff)
downloadphp-git-28cf080701082cbb1848d511d38cc1ecd060a752.tar.gz
Deprecate unbinding $this from non-static closure
Diffstat (limited to 'Zend/tests/closure_044.phpt')
-rw-r--r--Zend/tests/closure_044.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/tests/closure_044.phpt b/Zend/tests/closure_044.phpt
index c71204b130..225d7540d2 100644
--- a/Zend/tests/closure_044.phpt
+++ b/Zend/tests/closure_044.phpt
@@ -38,7 +38,7 @@ $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n";
echo "Done.\n";
---EXPECT--
+--EXPECTF--
Before binding
bool(false)
bool(false)
@@ -50,6 +50,8 @@ After binding, null scope, no instance
bool(false)
bool(false)
+
+Deprecated: Unbinding $this of closure is deprecated in %s on line %d
bool(false)
bool(false)
@@ -64,6 +66,8 @@ After binding, with scope, no instance
bool(true)
bool(false)
+
+Deprecated: Unbinding $this of closure is deprecated in %s on line %d
bool(true)
bool(false)