From 5043da41b9982621b21b108fa0379a2a731582e0 Mon Sep 17 00:00:00 2001 From: Cinderella-Man Date: Mon, 2 Dec 2013 22:42:57 +0000 Subject: [PATCH] fwrite fix + rebased to master --- Library/Optimizers/FunctionCall/FwriteOptimizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Optimizers/FunctionCall/FwriteOptimizer.php b/Library/Optimizers/FunctionCall/FwriteOptimizer.php index 37a4f14f8f7..cda20f4c487 100644 --- a/Library/Optimizers/FunctionCall/FwriteOptimizer.php +++ b/Library/Optimizers/FunctionCall/FwriteOptimizer.php @@ -61,10 +61,10 @@ public function optimize(array $expression, Call $call, CompilationContext $cont $resolvedParams = $call->getReadOnlyResolvedParams($expression['parameters'], $context, $expression); if ($symbolVariable) { - $context->codePrinter->output('zephir_fwrite(' . $symbolVariable->getName() . ', ' . $resolvedParams[0] . ', ' . $resolvedParams[1] . ');'); + $context->codePrinter->output('zephir_fwrite(' . $symbolVariable->getName() . ', ' . $resolvedParams[0] . ', ' . $resolvedParams[1] . ' TSRMLS_CC);'); return new CompiledExpression('variable', $symbolVariable->getRealName(), $expression); } else { - $context->codePrinter->output('zephir_fwrite(NULL, ' . $resolvedParams[0] . ', ' . $resolvedParams[1] . ');'); + $context->codePrinter->output('zephir_fwrite(NULL, ' . $resolvedParams[0] . ', ' . $resolvedParams[1] . ' TSRMLS_CC);'); } return new CompiledExpression('null', 'null', $expression);