php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #5111 $php_errormsg is local rather than global variable
Submitted: 2000-06-18 17:10 UTC Modified: 2000-06-18 19:35 UTC
From: sp at alkor dot ru Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.0 Release OS: FreeBSD, probably any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sp at alkor dot ru
New email:
PHP Version: OS:

 

 [2000-06-18 17:10 UTC] sp at alkor dot ru
Script & sources available at

http://cs.alkor.ru/e.php3

This bug in PHP3 & PHP4. I cannot make public PHP4
version now.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-18 19:35 UTC] rasmus at cvs dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC