[phc-internals] Issue 114 in phc: $php_errormsg is not working inside a function

codesite-noreply at google.com codesite-noreply at google.com
Mon Oct 5 13:24:54 IST 2009


Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 114 by jeanroch.rossi: $php_errormsg is not working inside a  
function
http://code.google.com/p/phc/issues/detail?id=114

Hello

Here is a script to reproduce the bug :

<?php
function show_error()
{
         @strpos();
         $error_message = $php_errormsg;
         echo "inside the function : $error_message \n";
}
show_error();
?>

With the php cli it works, but the same script compiled with phc does not
works.


What steps will reproduce the problem?
1. I put what I do on a attach file


What version of the product are you using? On what operating system?
Slackware 13.0 x86 32bits
PHP 5.2.11 and 5.2.10
PHC 0.2.0.3


Thanks

Attachments:
	phpinfo.html  47.2 KB
	what_I_do.txt  540 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the phc-internals mailing list