ID:               31635
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ivar at stvk dot no
-Status:           Open
+Status:           Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: Irrelevant (WinXP)
 PHP Version:      5.0.3
 New Comment:

Please provide a patch or at least reproduce code that doesn't require
Windoze. 


Previous Comments:
------------------------------------------------------------------------

[2005-03-01 09:55:34] ivar at stvk dot no

There seems to be no change in the latest (5.1.x) snapshot, compiled 1
march 2005 7:55 GMT.

------------------------------------------------------------------------

[2005-02-28 20:59:08] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2005-01-31 08:49:57] ivar at stvk dot no

The only way I am able to reproduce this behavior is using COM, but the
nature of the bug is not directly linked to the COM libraries itself.
Because of this, I am unable to make a test case that is platform
independent and that does not require external resources.

I will try just once more:
Create a Visual Basic ActiveX DLL project. Name the project
'NullClass', and name the class 'Null'. Add this single function to the
class code:

Public Property Get Value()
    Value = Null
End Property

Place the cursor inside the function, Click the menu "Tools",
"Procedure Properties", "Advanced", and select "User Interface
Default". Click "File", "Make NullClass.dll".

Then run this PHP script:

<?php
$Obj = new COM('NullClass.Null');
echo $Obj;
?>

EXPECTED: The script does not output anything, because the object
contains a NULL value.

ACTUAL: The script either outputs garbage or causes an Access Violation
message.

------------------------------------------------------------------------

[2005-01-29 20:41:32] [EMAIL PROTECTED]

Could you please provide an example that doesn't require any external
resources (especially those that exist only under a particular OS) ?
Also please post what you expect and what you got when you execute the
reproduce code. 

------------------------------------------------------------------------

[2005-01-25 08:53:51] ivar at stvk dot no

To reproduce the bug, use this script. Let 'TestDatabase' be any kind
of database, and let the table field 'Table'.'NullField' be any
database field that contains a NULL value.

<?php
try {
$DB = new COM("ADODB.Connection") or die("Cannot start ADO");
$DB->Open("DRIVER={SQL
Server};SERVER=SERVER\WEB;DATABASE=TestDatabase");

$RS = new COM("ADODB.Recordset");
$RS->Open("SELECT TEXT FROM Table", $DB);

echo $RS["NullField"];

} catch (Exception $e) {
        echo $e->getTraceAsString() . "<br>";
        echo $e->getMessage();
}
?>

------------------------------------------------------------------------

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/31635

-- 
Edit this bug report at http://bugs.php.net/?id=31635&edit=1

Reply via email to