PHP 4.0 Bug #5111 Updated: $php_errormsg is local rather than global variable
| From: | Bug Database | Date: | Sun, 18 Jun 2000 17:35:54 +0000 |
| Subject: | PHP 4.0 Bug #5111 Updated: $php_errormsg is local rather than global variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21688@lists.php.net to get a copy of this message | ||
ID: 5111
Updated by: rasmus
Reported By: sp@alkor.ru
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
This is a feature, not a bug. $php_errormsg gets set in the
current context. If within your function you want $php_errormsg
set in the global context, just stick a:
global $php_errormsg;
at the top of your function and it will be set in the global
context.
Full Bug description available at: http://bugs.php.net/version4/?id=5111