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

Fix memory leak in zim_Phalcon_Tag__inputField() #1700

Merged
merged 3 commits into from Dec 18, 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
Prev Previous commit
Test case
  • Loading branch information
sjinks committed Dec 15, 2013
commit aa2ec0f2cc61d74902869b2626a3ba66e5c7010e
12 changes: 12 additions & 0 deletions ext/tests/issue-1700.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Memory leak in zim_Phalcon_Tag__inputField() - https://github.com/phalcon/cphalcon/pull/1700
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$di = new \Phalcon\Di\FactoryDefault();
Phalcon\Tag::setAutoescape(true);
echo Phalcon\Tag::submitButton('ľščťžýáíéôňď'), PHP_EOL;
?>
--EXPECT--
<input type="submit" value="ľščťžýáíéôňď" />