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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Sun May 19 09:01:26 2019 UTC