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

From: Date: Fri, 06 Dec 2013 08:14:04 +0000
Subject: Bug #61180 [Opn->Fbk]: $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-183173@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: mike@php.net Reported by: khaos337 at gmail dot com Summary: $mysqli object created in auto_prepend_file closes before auto_append_file -Status: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: Free BSD PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Cannot reproduce. Previous Comments: ------------------------------------------------------------------------ [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 (#183173) next »