Skip to content
This repository

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 · 4 comments

3 participants

Dray Matt Harris qwebot
Dray

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

Matt Harris
Owner

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

Dray

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
qwebot commented

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

Matt Harris themattharris referenced this issue from a commit
Matt Harris Version 0.7.0
- 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
d3034a1
Matt Harris

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
Something went wrong with that request. Please try again.