#17173 [Opn->Fbk]: "case" causes AV

From: Date: Sat, 08 Feb 2003 06:48:50 +0000
Subject: #17173 [Opn->Fbk]: "case" causes AV
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32472@lists.php.net to get a copy of this message
ID: 17173 Updated by: sniper@php.net Reported By: mbretter@inode.at -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: any -PHP Version: latest CVS +PHP Version: 4.2.3? New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Wrong PHP version string caused this bug to get lost.. Previous Comments: ------------------------------------------------------------------------ [2002-08-05 19:48:21] phanto@php.net reclassify: switch($obj->prop) {..} does not work on overloaded objects, a NULL zval is passed as the property_reference parameter to the get_property handler. here is a short sample script: $field = new variant("huh"); convert_field($field); function convert_field($field) { $tmp = $field->type; switch($tmp) { case 123: break; default: return $field->value; } } function convert_field_crash($field) { switch($field->type) { case 123: break; default: return $field->value; } } ------------------------------------------------------------------------ [2002-08-05 19:44:11] phanto@php.net the crash caused by your second script is fixed now. actually it was caused by an error in your script as the right property is ->ActiveConnection and not ->Connection and there was a NULL pointer reference in the error handler function :) the first bug is a bug in the engine, thus i'll reclassify the bugreport. ------------------------------------------------------------------------ [2002-06-13 09:17:33] mbretter@inode.at also this lets php hang:(Assigning a Connection to a Recordset) $conn = new COM( "ADODB.Connection" ); $rs = new COM( "ADODB.Recordset" ); $rs2 = new COM( "ADODB.Recordset" ); $conn->Provider = 'SQLOLEDB'; $conn->Open( "Server=wincubix;Uid=oebb;Pwd=oebb;Database=cubix" ); $rs2->Connection = $conn; @$rs->Open( "SELECT * FROM news ", $conn); ------------------------------------------------------------------------ [2002-06-12 14:13:49] mbretter@inode.at Now I had the chance to try it with latest php (11.06.2002). Now the System doesen't crash, instead the php-process hangs, also the max_execution_time doesen't end the php-process. ------------------------------------------------------------------------ [2002-06-09 11:48:02] phanto@php.net 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 "Open". Thank you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17173 -- Edit this bug report at http://bugs.php.net/?id=17173&edit=1

« previous php.bugs (#32472) next »