Welcome Guest, Not a member yet? Register   Sign In
dbutil backup
#1

from the CI doc i see in the "Backup Your Database" section

// Backup your entire database and assign it to a variable
$backup =& $this->dbutil->backup();

but it brings a runtime error:

Severity: Runtime Notice
Message: Only variables should be assigned by reference

from Php manual
http://php.net/manual/en/language.operat...gnment.php

As of PHP 5, the new operator returns a reference automatically, so assigning the result of new by reference results in an E_DEPRECATED message in PHP 5.3 and later, and an E_STRICT message in earlier versions.


simply removing the & works fine.
please update the doc
Reply


Messages In This Thread
dbutil backup - by el_tou4r3g - 06-16-2015, 08:41 AM
RE: dbutil backup - by sparky672 - 06-23-2015, 11:07 AM
RE: dbutil backup - by Narf - 06-23-2015, 11:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB