From:             flexibill2001 at hotmail dot com
Operating system: linux
PHP version:      4.4.7
PHP Bug Type:     *Configuration Issues
Bug description:  bug in ini_set(), include_path function 

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 bug report at http://bugs.php.net/?id=41556&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41556&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41556&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41556&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41556&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41556&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41556&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41556&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41556&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41556&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41556&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41556&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41556&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41556&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41556&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41556&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41556&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41556&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41556&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41556&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41556&r=mysqlcfg

Reply via email to