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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 22 = ?
Subscribe to this entry?

 
 [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 02:01:29 2024 UTC