View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - PHP ***** ERROR ***** cause = is_a(): Deprecated. Please use the instanceof operator - ProjeQtOr
 
 

PHP ***** ERROR ***** cause = is_a(): Deprecated. Please use the instanceof operator

More
23 Jan 2016 06:56 - 23 Jan 2016 16:39 #1 by hawkeye
:blink:
After creating a completely new 5.2.1. environment for testing issues

1) :huh:
on creating almost any new object ticket, activity ...a.s.o. the following PHP error occurs:
2016-01-23 06:37:40.451 ***** ERROR ***** ERROR *****
2016-01-23 06:37:40.452 ***** ERROR ***** on file 'E:\develop\php_mysql_bsp\projeqtor_new\model\persistence\SqlElement.php' at line (4229)
2016-01-23 06:37:40.453 ***** ERROR ***** cause = is_a(): Deprecated. Please use the instanceof operator

this error occurs once per to be created object and somehow appears to be is similar to Ticket #1937 by lfrugere !

Changing the operator towards PHP5 compatibility makes the program run much more smoothly:

public static function is_a($object,$class) {
global $hideAutoloadError;
$hideAutoloadError=true; // Avoid error message in autoload
//$result=is_a($object,$class); // is_a classic
$result=($object instanceof $class); // instanceof in PHP5 style makes it run more smoothly
$hideAutoloadError=true;
return $result;
}
2) :oops:
language hr is not selectable in the parameter dialogue when creating a completely new 5.2.1. environment

Thank you ! :)
Last edit: 23 Jan 2016 16:39 by hawkeye. Reason: found a way to solve 1), but 2) is still open

Please Log in or Create an account to join the conversation.

More
24 Jan 2016 14:43 #2 by babynus
1) is_a is deprecated from php 5.0 to 5.2, but not any more in PHP 5.3
There is a difference between is_a and instanceof as is_a accepts a string and not only an object.
Workaround will be proposed on patch 5.2.2

2) will be fixed in V5.2.2

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.