Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRASH] Fix segmentation fault in zend_std_write_property for PHP 5.4+ #1003

Merged
merged 3 commits into from Aug 5, 2013
Merged
Changes from 1 commit
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
Next Next commit
Test case
  • Loading branch information
sjinks committed Aug 5, 2013
commit 3e19d1f72ea0d1b25fde3e022534a0abc5f14f51
17 changes: 17 additions & 0 deletions unit-tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
+------------------------------------------------------------------------+
*/

class Issue1000 extends Phalcon\Config
{
private $_section;

public function __construct($file, $section = null)
{
$this->_section = $section;
}
}

class ConfigTest extends PHPUnit_Framework_TestCase
{

Expand Down Expand Up @@ -299,4 +309,11 @@ public function testIssue980()
$b = unserialize($s);
$this->assertEquals($a, $b);
}

public function testIssue1000()
{
$t1 = new Issue1000('test');
$t2 = new Issue1000('test', 'test');
$this->assertTrue(true);
}
}