Welcome Guest, Not a member yet? Register   Sign In
codeigniter 1.7 on PHP5.3
#11

[eluser]leviathan28[/eluser]
[quote author="Gustav" date="1247148756"]More errors when migrating from PHP v5.2.3 to v5.3.0:

Deprecated: Assigning the return value of new by reference is deprecated in system\codeigniter\Common.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in system\codeigniter\Common.php on line 136

Code:
// File Common.php in system\codeigniter\
// Lines from 127 to 137

if ($is_subclass == TRUE)
{
    $name = config_item('subclass_prefix').$class;
    $objects[$class] =& new $name(); // line 130
    return $objects[$class];
}

$name = ($class != 'Controller') ? 'CI_'.$class : $class;

$objects[$class] =& new $name(); // line 136
return $objects[$class];

And not only in that file.

v5.3.0 is big problem for CI 1.7.1 because all my CI projects throw errors.
CI needs an update.[/quote]

Those errors can be avoided by replacing line 13 in index.php

Code:
error_reporting(E_ALL);

with

Code:
error_reporting(E_ALL & ~E_DEPRECATED);

I agree that CI needs an upgrade.


Messages In This Thread
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 01:55 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 02:22 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 02:41 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-06-2009, 10:24 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 03:12 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 04:49 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 05:02 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:12 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:22 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-09-2009, 06:24 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-14-2009, 08:47 AM
codeigniter 1.7 on PHP5.3 - by El Forum - 07-14-2009, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB