Solved

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

Posted on 2007-11-23
4
695 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

717 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