ID: 36229 Updated by: [EMAIL PROTECTED] Reported By: perry dot sebastian at gmail dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: linux - SUSE 10 PHP Version: 5.1.2 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. I don't see any problems with this code. Previous Comments: ------------------------------------------------------------------------ [2006-01-31 15:27:13] perry dot sebastian at gmail dot com Description: ------------ Adding a line of code to a specific object class causes the web application to terminate prematurely. A line of code such as "function testthis() {}" will trigger this problem. When this line is commented out, the application behaves as expected. Code previously worked under PHP 4.4. Reproduce code: --------------- <?php // class DataCon is data container class DataCon { //defined variables function __construct() {} function init( $args, &$dbh ) { // init object } // various functions for getting and setting data # multiple # lines of code # commented out } ?> Expected result: ---------------- Web page with printed output of application states at the top of the page. Actual result: -------------- This problem seems to be isolated with this class file. I have turned on STRICT for error reporting, but no error relevant to this object comes back when the application is executed. I cleaned line endings, changed function names, removed and added code, and the problem persists. Apache does not report an error. Premature termination is also very strange. It seems very inconsistent. Initially an error occurred that flagged an included file for consuming too much memory. This error stopped after the error was investigated (and I have not been able to replicate this error). The failure appears to "reach back" in the code execution and stop application output before the point of failure (noted by various print statement track code execution). Forcing an exit of the application before loading this object class causes termination at the appropriate point - not before. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36229&edit=1