php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3263 Bad things with NULs in arrays
Submitted: 2000-01-20 17:59 UTC Modified: 2002-10-01 15:11 UTC
From: mike at mikebell dot org Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.14 OS: GNU/Linux
Private report: No CVE-ID: None
 [2000-01-20 17:59 UTC] mike at mikebell dot org
$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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:11 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

works in php4 
 [2002-10-01 15:17 UTC] mike at mikebell dot org
The bug is from 1999! I thought it was pretty funny to get something on it now, I can only assume you're clearing out old unresolved bug reports.... :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC