zak Sun Jun 24 07:11:35 2001 EDT
Modified files:
/phpdoc/en/functions var.xml
Log:
Added note on behavior of is_scalar() with regards to resource type values
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.54 phpdoc/en/functions/var.xml:1.55
--- phpdoc/en/functions/var.xml:1.54 Sat Jun 23 22:10:51 2001
+++ phpdoc/en/functions/var.xml Sun Jun 24 07:11:35 2001
@@ -747,6 +747,14 @@
</para>
<note>
<para>
+ Note that the PHP resource type is not considered a scalar value.
+ Andi Gutmans states: "[Resources] are abstract datatypes which
+ happen to be in ID (integer) form ... people should [not] count
+ on it being an integer as this could change one day."
+ </para>
+ </note>
+ <note>
+ <para>
This function was added to the CVS code after the release of PHP
4.0.4pl1
</para>
@@ -1291,7 +1299,7 @@
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
-
+
/* output:
array(3) {
[0]=>
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Zak Greant
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml jeroen
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Hojtsy Gabor
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml jeroen
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml eschmid+sic
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Zak Greant
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Daniel Beckham
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Rasmus Lerdorf
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Hojtsy Gabor
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Zak Greant
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Zak Greant
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
