|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-06 08:14 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2013-12-06 08:14 UTC] mike@php.net
[2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 08:00:02 2025 UTC |
Description: ------------ If you initialize a $mysqli object in an auto_prepend_file it is unavailable in and auto_append_file, even though auto_prepend_file and auto_append_file Test script: --------------- .htaccess: php_value auto_prepend_file /path/to/file/prepend.php php_value auto_append_file /path/to/file/append.php prepend.php: $mysqli = new mysqli('localhost', 'user', 'pass', 'DBASE'); append.php: $mysqli->close(); (or any mysqli method) Expected result: ---------------- No Errors Actual result: -------------- Warning: mysqli::close() [mysqli.close]: Couldn't fetch mysqli in /path/to/file/append.php