We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test case (will be similar for all functions):
$d = new \Phalcon\Debug(); $f1 = 1; $f2 = $f1; $d->setCharset($f2);
Produces:
[Tue Oct 8 04:29:11 2013] Script: '/home/vladimir/workspace/cphalcon/ext/tests/memleak.phpt' /home/vladimir/workspace/cphalcon/ext/debug.c(1236) : Freeing 0x7F004D66F538 (32 bytes), script=/home/vladimir/workspace/cphalcon/ext/tests/memleak.phpt [Tue Oct 8 04:29:11 2013] Script: '/home/vladimir/workspace/cphalcon/ext/tests/memleak.phpt' /tmp/php-build/source/5.5.4/main/spprintf.c(777) : Freeing 0x7F004D66F5B8 (79 bytes), script=/home/vladimir/workspace/cphalcon/ext/tests/memleak.phpt
The text was updated successfully, but these errors were encountered:
This happens because PHALCON_SEPARATE_PARAM_NMO() does not decrement the refcount when it separates the argument.
PHALCON_SEPARATE_PARAM_NMO()
Sorry, something went wrong.
No branches or pull requests
Test case (will be similar for all functions):
Produces:
The text was updated successfully, but these errors were encountered: