php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20474 Loging
Submitted: 2002-11-18 02:03 UTC Modified: 2010-12-03 18:14 UTC
From: netim at icentrum dot pl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.0RC1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: netim at icentrum dot pl
New email:
PHP Version: OS:

 

 [2002-11-18 02:03 UTC] netim at icentrum dot pl
I rewrited my scripts and now i'm not using globals wariables... but when I set register_globals = off
sometime scripts don't work...

When register_globals = On Php should loging notice for example "In line X you use a global variable"...

Marek Wr?bel

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-18 02:06 UTC] derick@php.net
Do I correctly understand that you want that PHP emits warnings of you use globals in your script? The best way to check for this is to set error_reporting(E_ALL); as the first line of your script. It then shows all reads for variables which were not initialized before. If you feel that that is not enough, please change the status back to open.
 [2002-11-18 04:57 UTC] netim at icentrum dot pl
It's not the same...

The Notice "Undefined variable" is loging when I read variable which were not initialized before.
if I would see this message I must set 
register_globals = off

I can't test all my scripts, becouse my system consist of 1600 scripts.

I can't set register_globals = off becouce that system must correctly work.

So, I want set register_globals = on, and check my logs
for notice "in this line you used globals variable".

if I found this message I would correct that script.

if I didn't find this message for month I would be sure that now I can set register_globals = on...
 [2002-11-18 10:40 UTC] sniper@php.net
You can get this info with these php.ini settings:

display_errors = Off
error_reporting = E_ALL
log_errors = On
error_log = /full/path/to/my/log/filename

 [2010-12-03 18:14 UTC] jani@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-03 18:14 UTC] jani@php.net
And how?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC