Bug #3263: Bad things with NULs in arrays
| From: | mike at mikebell dot org | Date: | Thu, 20 Jan 2000 22:59:18 +0000 |
| Subject: | Bug #3263: Bad things with NULs in arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14795@lists.php.net to get a copy of this message | ||
From: mike@mikebell.org
Operating system: GNU/Linux
PHP version: 3.0.14
PHP Bug Type: Other
Bug description: Bad things with NULs in arrays
$forwards=sprintf("%s%c%s", "bob@", 0, "bill@somehost.dom");
$forward[]=$forwards;
$debug=fopen("/tmp/output", "w");
fwrite ($debug, implode("", $forward), 255);
print "Hello";
Produces the output:
bob@<00><string of bytes from memory>