?
Solved

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

Posted on 2007-11-23
4
Medium Priority
?
702 Views
Last Modified: 2013-12-05
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.

0
Comment
Question by:estrelow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
estrelow earned 0 total points
ID: 20340290
The offending variable turned out to be a perl thing. I removed mod_perl from the Apache config and now it's working.

I like perl very much, but we don't use mod_perl features, so I guess we can live without it.
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20340415
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.

0
 
LVL 1

Expert Comment

by:modus_operandi
ID: 20437952
Closed, 500 points refunded.
modus_operandi
EE Moderator
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question