Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

16 Experts available now in Live!

Get 1:1 Help Now