|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-20 15:04 UTC] felipe@php.net
[2009-01-20 15:46 UTC] lunter at interia dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 18:00:01 2025 UTC |
Description: ------------ total mishmash with casting and gettype Reproduce code: --------------- <? $v=(string)''; print('1. variable casted as string has type: '.gettype($v).'<br>'); $v=(unicode)''; print('2. variable casted as unicode has type: '.gettype($v).'<br>'); $v=(binary)''; print('3. variable casted as binary has type: '.gettype($v).'<br>'); ?> Expected result: ---------------- I suggest: 1. variable casted as string has type: string (OLD PHP 5 behaviour, in PHP 6 for binary operation) 2. variable casted as unicode has type: unicode Actual result: -------------- 1. variable casted as string has type: unicode 2. variable casted as unicode has type: unicode 3. variable casted as binary has type: string