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

Strict Standards: Non-static method tmhUtilities::pr() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\examples\entities.php on line 85 #52

Closed
DrayChou opened this issue May 9, 2012 · 4 comments
Assignees
Labels
Milestone

Comments

@DrayChou
Copy link

DrayChou commented May 9, 2012

Strict Standards: Non-static method tmhUtilities::pr() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\examples\entities.php on line 85

Strict Standards: Non-static method tmhUtilities::is_cli() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\tmhUtilities.php on line 157

when i run http://localhost/themattharris-tmhOAuth-d0b0bc6/examples/entities.php

@themattharris
Copy link
Owner

which version of PHP are you running and what level of logging is your system set to?

@ghost ghost assigned themattharris May 22, 2012
@DrayChou
Copy link
Author

PHP Version 5.3.8
System Windows NT SRPC1193 5.1 build 2600 (Windows XP Professional Service Pack 3) i586
Build Date Aug 23 2011 11:47:20
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"
Server API Apache 2.0 Handler

[22-May-2012 05:49:20] PHP Strict Standards: Non-static method tmhUtilities::pr() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\examples\entities.php on line 85

[22-May-2012 05:49:20] PHP Strict Standards: Non-static method tmhUtilities::is_cli() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\tmhUtilities.php on line 157

[22-May-2012 05:49:20] PHP Strict Standards: Non-static method tmhUtilities::is_cli() should not be called statically in E:\xampp\htdocs\themattharris-tmhOAuth-d0b0bc6\tmhUtilities.php on line 165

and i don't know what level of logging my system set .

@qwebot
Copy link

qwebot commented Jun 20, 2012

change function pr($obj) to public static function pr($obj) in your tmhUtilities class. It must help you. And don't forgot to change like this all other function. I think it must help you

themattharris pushed a commit that referenced this issue Sep 4, 2012
- changed version numbers to x.y.z format
- stronger method scoping (public and private)
- Typo fix in depenencies. (Issue #42) Props: tantek
- Only lowercase the host and scheme, and not path, in prepare_url. (Issue #56) Props: uzyn
- Fixed a number of PHP warnings by changing some tmhUtilty methods to static. (Issue #52) Props: DrayChou
- Raw headers and response body are now available as `$tmhOAuth->response['raw']`
- Moved the examples to their own repository <https://github.com/themattharris/tmhOAuth-examples>
- Removed the `noexamples` branch as master does not contain examples anymore
- Introduced `$tmhOAuth->config['timezone']` and set `date_default_timezone_set`. (Issue #70) Props: iamctodd
@themattharris
Copy link
Owner

i've been through and made as much as i can find strict compliant in 0.7.0. if you get any more warnings open up a new issue and i'll get to fixing them.

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

No branches or pull requests

3 participants