#41556 [Opn->Bgs]: bug in ini_set(), include_path function

From: Date: Fri, 01 Jun 2007 06:41:12 +0000
Subject: #41556 [Opn->Bgs]: bug in ini_set(), include_path function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113253@lists.php.net to get a copy of this message
ID: 41556 Updated by: tony2001@php.net Reported By: flexibill2001 at hotmail dot com -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: linux PHP Version: 4.4.7 New Comment: http://php.net/manual/en/ini.core.php#ini.include-path The format is like the system's PATH environment variable: a list of directories separated with a colon in Unix or semicolon in Windows. Previous Comments: ------------------------------------------------------------------------ [2007-06-01 05:22:16] flexibill2001 at hotmail dot com Description: ------------ ini_set('include_path',ini_get('include_path').';'.$_SERVER['DOCUMENT_ROOT'].'/Dynamic_Form2/pear'); i use this instruction on one of my php file.This worked fine for windows but when i call this page from linux machine it did not work and give error. solution : make sure when you using linux for include new path use ":" and for windows use ";" . Reproduce code: --------------- <?ini_set('include_path',ini_get('include_path').';'.$_SERVER['DOCUMENT_ROOT'].'/Dynamic_Form2/pear'); require_once "HTML/QuickForm.php"; $form = new HTML_QuickForm('frmTest', 'get'); $form->addElement('header', 'MyHeader', 'Testing QuickForm'); $form->display(); ?> Expected result: ---------------- when run this coude on windows it work fine.but on linux give following error: Warning: main(HTML/QuickForm.php) [function.main]: failed to open stream: No such file or directory in F:\apache2triad\htdocs\Dynamic_Form2\delme.php on line 5 Actual result: -------------- when run this coude on windows it work fine.but on linux give following error: Warning: main(HTML/QuickForm.php) [function.main]: failed to open stream: No such file or directory in F:\apache2triad\htdocs\Dynamic_Form2\delme.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41556&edit=1

« previous php.bugs (#113253) next »