Bug #61180 [Fbk->NoF]: $mysqli object created in auto_prepend_file closes before auto_append_file

From: Date: Tue, 30 Dec 2014 10:41:48 +0000
Subject: Bug #61180 [Fbk->NoF]: $mysqli object created in auto_prepend_file closes before auto_append_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189409@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61180&edit=1 ID: 61180 Updated by: php-bugs@lists.php.net Reported by: khaos337 at gmail dot com Summary: $mysqli object created in auto_prepend_file closes before auto_append_file -Status: Feedback +Status: No Feedback Type: Bug Package: *General Issues Operating System: Free BSD PHP Version: 5.3.10 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2013-12-06 08:14:04] mike@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Cannot reproduce. ------------------------------------------------------------------------ [2012-02-25 00:38:48] khaos337 at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61180&edit=1

« previous php.bugs (#189409) next »