Link to home
Start Free TrialLog in
Avatar of estrelow
estrelowFlag for Chile

asked on

PHP popen() yields an error "NoNe SuCh=: is not an identifier"

I've been working on this a while now, so I better ask for more help.

I have a 1.3.36 Apache running in a SCO OpenServer 5.0.7 machine. Every time I do a popen I get a "NoNe  SuCh=: is not an identifier" error logged. popen() still manage to return a valid handle, but with no outptut. In fact, the command doesn't get started.

I've tried several php flavors and configuration scenarios. I went from PHP 4.4.6 to 5.2.5. Still the same. I am constrained in the Apache platform, since it's been pretty hard to set a stable Apache in our platform.

The error itself is clearly a misformed environment variable definition. Indeed, phpinfo() shows a ENV["NoNe__SuCh"] ==> no value entry (note the underscores). Somehow an ill set environment gets through the PHP running process.

Any ideas?

Thanks.

ASKER CERTIFIED SOLUTION
Avatar of estrelow
estrelow
Flag of Chile image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe Wu
glad you solved your problem, next time you encouter a annoying warning or error though, whch you want to suppress in PHP, you can do this in your script:
error_reporting(0);

or edit this in your php.ini:
display_errors = Off/On

hope this helps in the future.

Avatar of modus_operandi
modus_operandi

Closed, 500 points refunded.
modus_operandi
EE Moderator