note 36980 deleted from class.variant by cmb
| From: | cmb@php.net | Date: | Fri, 18 Oct 2019 12:36:30 +0000 |
| Subject: | note 36980 deleted from class.variant by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212667@lists.php.net to get a copy of this message | ||
Note Submitter: mark dot pearson at capita dot co dot uk
----
Running PHP 4.3.2 on Windows 2000 I had to use the following expression to create an empty Variant:
<?php
$empty = new Variant(null);
print $empty->type // ==> 1
?>
NOT
<?php
$empty = new Variant();
print $empty->type // ==> 0
?>
The two expressions return different Variant type values!