php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5011 get_cfg_var doesn't return anything
Submitted: 2000-06-13 21:44 UTC Modified: 2000-07-23 14:53 UTC
From: mark dot lubratt at indeq dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 Release OS: Linux 2.2.5 RedHat 6.0
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: mark dot lubratt at indeq dot com
New email:
PHP Version: OS:

 

 [2000-06-13 21:44 UTC] mark dot lubratt at indeq dot com
<?
$LIFE = get_cfg_var("session.gc_maxlifetime");

session_start();
echo '-'.$LIFE.'-';
echo '<br><br>';
phpinfo();
?>
       
This sample script shows that get_cfg_var doesn't return anything into $LIFE.  At the top of the page, the two '-'s are right next to each other.

In general, sessions work on my machine.

I'm running:

Apache 1.3.6
Linux 2.2.5
PHP 4.0.0

PHP Configuration:
./configure --with-apxs=/usr/sbin/apxs --with-mysql --enable-ftp --enable-track-vars

I can't find a php.ini file on my system.

I haven't tried any other configuration variables other than session.gc_maxlifetime.

Mark Lubratt

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-23 14:53 UTC] jalal at cvs dot php dot net
get_cfg_var will not return anything if there is no php.ini file.

 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 02:05:48 2023 UTC