PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #9549

escaping PHP_PEAR_PHP_BIN

Details

Submitted2006-12-05 15:27 UTC
Fromonur at php dot net
StatusNo Feedback
PackagePEAR
PHP Version5.2.0 RC4
OSWindows
Roadmaps(Not assigned)

Comments

[2006-12-05 15:27 UTC] onur at php dot net

Description:
------------
Pear Installation via go-pear.org

Test script:
---------------
go-pear.org

Expected result:
----------------
I want to install PEAR in my computer via go-pear.org ( go-pear.php) file when i install it.

i gave this error :
Parse error: parse error, unexpected T_STRING in C:\Documents and Settings\a\Desktop\www\down\index.php on line 40

When i look into file i see that ;
putenv('PHP_PEAR_PHP_BIN=C:\Documents and Settings\a\Desktop\www\down\');

\' piece of the line produce an error when i remove \ character it works successful.

We can use addslashes for defining path of the PHP_PEAR_PHP_BIN constant.

Regards ..