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

unitialized string warning #5

Open
harleypig opened this issue Nov 13, 2010 · 2 comments
Open

unitialized string warning #5

harleypig opened this issue Nov 13, 2010 · 2 comments

Comments

@harleypig
Copy link

I'm sorry, I closed this issue by mistake. When running 'fbcmd stream' I'm getting the following:

PHP Notice: Uninitialized string offset: 0 in /usr/local/lib/fbcmd/fbcmd.php on line 3512
PHP Notice: Uninitialized string offset: 0 in /usr/local/lib/fbcmd/fbcmd.php on line 3512

I'm using 1.0-beta3. It doesn't seem to be affecting anything, but it is annoying.

@affix
Copy link

affix commented Dec 20, 2010

its just a stupid notice :)

you can add error_reporting('E_NONE'); to the top of the file and you won't see the notice appearing again. However this will stop all PHP errors and warnings showing up when running the script

@harleypig
Copy link
Author

Hmmm ... in perl there is a way to turn off warnings in scope. E.g.:

{ no warnings 'uninitialized' ; # do something };

Is there a similar option in PHP?

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

2 participants