note 36980 added to class.variant

From: Date: Wed, 29 Oct 2003 16:51:00 +0000
Subject: note 36980 added to class.variant
Groups: php.notes 
Request: Send a blank email to php-notes+get-59482@lists.php.net to get a copy of this message
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! ---- Manual Page -- http://www.php.net/manual/en/class.variant.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36980 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36980&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36980&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59482) next »