Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

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…
The viewer will learn how to dynamically set the form action using jQuery.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now