Skip to content

Commit

Permalink
Add more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colder committed Apr 11, 2012
1 parent 4c3f4e2 commit 4762410
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/weakref_008.phpt
@@ -0,0 +1,16 @@
--TEST--
Weakref: zval splitting causes crash
--FILE--
<?php
$obj = new StdClass();
$ref = new WeakRef($obj);
echo "get...\n";
$obj = $ref->get();
echo "unset...\n";
unset($ref);
echo "done...\n";
?>
--EXPECTF--
set...
unset...
done...
19 changes: 19 additions & 0 deletions tests/weakref_009.phpt
@@ -0,0 +1,19 @@
--TEST--
Weakref: zval splitting causes crash
--FILE--
<?php
$obj = new StdClass();
$ref = new WeakRef($obj);
echo "get...\n";
$obj2 = $ref->get();
echo "unset1...\n";
unset($obj);
echo "unset2...\n";
unset($ref);
echo "done...\n";
?>
--EXPECTF--
get...
unset1...
unset2...
done...

0 comments on commit 4762410

Please sign in to comment.