Re: Re: cvs: php-src / run-tests.php

From: Date: Thu, 24 Jul 2008 08:00:46 +0000
Subject: Re: Re: cvs: php-src / run-tests.php
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-39257@lists.php.net to get a copy of this message
Marcus Boerger schrieb:
to be honest this is the wrong way. The correct way of fixing this is to have PHP 6 name it correct: string and binary. And to have b for binary
Aside from the question of how to write a portable test, here is an example speaking for your argument of making a distinction between binary (strings) and strings (= always unicode) in the var_dump()/print_r()/etc. output of PHP 6. In early PHP 6 days var_dump((binary)"PHP") has printed "string", like PHP 5 does. And in earlier versions of PHP 6 var_dump("PHP") has printed "unicode". There was a distinction between the two types of strings in PHP 6. That was nice, because it was simple to test if SELECT varbinary_column really returned a binary (string) or a (unicode) string. Ulf

« previous php.internals (#39257) next »