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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC