Edit filename: core/Common.php, line number: 257
Before
return $_config[0] =& $config;
After
$_config[0] =& $config; return $_config[0];
Update
Added by NikiC
In PHP assignment expressions always return the assigned value. So $_config[0] =& $config returns $config – but not the variable itself, but a copy of its value. And returning a reference to a temporary value wouldn’t be particularly useful (changing it wouldn’t do anything).
Update
This fix has been merged into CI 2.2.1 (https://github.com/bcit-ci/CodeIgniter/commit/69b02d0f0bc46e914bed1604cfbd9bf74286b2e3). It’s better to upgrade rather than modifying core framework files.
Related Posts:
- How to prevent the “Confirm Form Resubmission” dialog?
- What is a slug?
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How do I resolve a HTTP 414 “Request URI too long” error?
- Getting an error when I visit http://localhost
- Redirect vs RedirectMatch
- What does __FILE__ mean?
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- CodeIgniter removing index.php from url
- file_get_contents( ) not working
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- “End of script output before headers” in Apache + PHP
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- How can I force users to access my page over HTTPS instead of HTTP?
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Using PHP 7 with WAMP
- How to remove index.php from WordPress site URL
- Object of class stdClass could not be converted to string
- Replace ' and similar html codes with their correspondent character?
- Google Calendar API event update always return 404 “not found” error
- navigate back with PHP form submission
- How to set 777 permission on a particular folder? [closed]
- How do I make a redirect in PHP?
- List of All Locales and Their Short Codes?
- Difference between “as $key => $value” and “as $value” in PHP foreach
- How do I get a YouTube video thumbnail from the YouTube API?
- Visual list of all installed fonts with respective pangram phrase?
- How to avoid Request Entity Too Large 413 error
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Array to String PHP?
- Should I use mysqli_real_escape string() or mysql_real_escape_string() for form data?
- count() parameter must be an array or an object that implements countable in laravel
- regex match any whitespace
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How to fix “Headers already sent” error in PHP
- currently unable to handle this request HTTP ERROR 500
- PHP page redirect
- Whoops, looks like something went wrong. Laravel 5.0
- PHP “or” Syntax
- Fatal error: Call to undefined function mysql_connect()
- How to fix “Headers already sent” error in PHP
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- What are namespaces?
- Get the full URL in PHP
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Mysql query- How to use contains?
- How do I get PHP errors to display?
- S_SESSION variable (user role) not recognised
- What are the main differences between PHPExcel and PhpSpreadsheet?
- Is SAJAX dead? What to replace with?
- Get the full URL in PHP
- How do I check if a string contains a specific word?
- PDOException: SQLSTATE[HY000] [2002] No such file or directory
- xajax expanding list query
- How to force file download with PHP
- How do I get a file extension in PHP?
- How to Set Category Page as Home Page in Prestashop
- Get the full URL in PHP
- Data source name not found, and no default driver specified
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
- Invalid column count in CSV input on line 1 Error
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in
- How to copy a file from one directory to another using PHP?
- How to check if a string starts with a specified string?
- what does PHP die() return
- Invalid column count in CSV input on line 1 Error
- how to replace quotation marks with \”
- How do I redirect a page in jQuery?
- mcrypt is deprecated, what is the alternative?
- How can I find my php.ini on wordpress?
- mysqli_real_connect(): (HY000/2002): No such file or directory
- Convert a PHP object to an associative array
- XAMPP Port 80 in use by “Unable to open process” with PID 4
- PHP + curl, HTTP POST sample code?
- PHP random string generator
- How to echo or print an array in PHP?
- Fatal error: Call to undefined function mysqli_connect()
- What are the differences in die() and exit() in PHP?
- How to parse a CSV file using PHP
- How to run php files on my computer
- How to call a JavaScript function from PHP?
- Cannot use object of type stdClass as array?
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- Is a new line = \n OR \r\n?
- What is difference between PHP cli and PHP cgi?
- Resize image in PHP
- Error 500: Premature end of script headers
- Cookies vs. sessions
- Expected status code 200 but received 500
- Whats the point of running Laravel with the command ‘php artisan serve’?
- Regex to check for new line
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- $wpdb->update or $wpdb->insert results in slashes being added in front of quotes