Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Notice on lots of variables #8

Open
drewwells opened this issue Jan 26, 2011 · 3 comments
Open

PHP Notice on lots of variables #8

drewwells opened this issue Jan 26, 2011 · 3 comments

Comments

@drewwells
Copy link

There are many bits of logic simply checking for the existence of properties. This throws a notice in PHP. You can safely check for variables by using isset

@zkhalapyan
Copy link

I second @drewwells

@inphovore
Copy link

I have this issue too, two years after first mention:

Notice: Undefined index: send_cookies in /usr/htdocs/proxy.php on line 167

Notice: Undefined index: user_agent in /usr/htdocs/proxy.php on line 184

Notice: Undefined index: mode in /usr/htdocs/proxy.php on line 196

Notice: Undefined index: full_headers in /usr/htdocs/proxy.php on line 217

Notice: Undefined index: full_status in /usr/htdocs/proxy.php on line 229

Notice: Undefined index: HTTP_X_REQUESTED_WITH in /usr/htdocs/proxy.php on line 241
{"status":{"http_code":200},"contents":null}

This interferes with method=native, generating an XML parsing error (and halting):
XML Parsing Error: syntax error
Location: http://localhost/proxy.php?url=http://losangeles.craigslist.org/web/index.rss&mode=native
Line Number 2, Column 1:Notice: Undefined index: send_cookies in /usr/htdocs/proxy.php on line 167

Is it possible these notices are suppressed in the developer environments?

@valecarlos
Copy link

@inphovore sorry to bring you back to this, but how did you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants