cvs: phpdoc /en/language/types string.xml

From: Date: Wed, 05 Nov 2008 17:17:58 +0000
Subject: cvs: phpdoc /en/language/types string.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2414@lists.php.net to get a copy of this message
vrana Wed Nov 5 17:17:58 2008 UTC Modified files: /phpdoc/en/language/types string.xml Log: Weird offsets (bug #44808) http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types/string.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/language/types/string.xml diff -u phpdoc/en/language/types/string.xml:1.14 phpdoc/en/language/types/string.xml:1.15 --- phpdoc/en/language/types/string.xml:1.14 Fri Aug 22 13:39:59 2008 +++ phpdoc/en/language/types/string.xml Wed Nov 5 17:17:57 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <sect1 xml:id="language.types.string"> <title>Strings</title> @@ -353,7 +353,7 @@ <programlisting role="php"> <![CDATA[ <?php -$str = <<<'EOD' +//~ $str = <<<'EOD' Example of string spanning multiple lines using nowdoc syntax. @@ -375,7 +375,7 @@ $foo = new foo(); $name = 'MyName'; -echo <<<'EOT' +//~ echo <<<'EOT' My name is "$name". I am printing some $foo->foo. Now, I am printing some {$foo->bar[1]}. This should not print a capital 'A': \x41 @@ -403,7 +403,7 @@ <![CDATA[ <?php class foo { - public $bar = <<<'EOT' + //~ public $bar = <<<'EOT' bar EOT; } @@ -623,6 +623,17 @@ </simpara> </note> + <warning> + <simpara> + Writing to an out of range offset pads the string with spaces. + Non-integer types are converted to integer. + Illegal offset type emits <constant>E_NOTICE</constant>. + Negative offset emits <constant>E_NOTICE</constant> in write but reads empty string. + Only the first character of an assigned string is used. + Assigning empty string assigns NUL byte. + </simpara> + </warning> + <example> <title>Some string examples</title> <programlisting role="php">

« previous php.doc.cvs (#2414) next »