php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29715 string{1} changing to array
Submitted: 2004-08-17 05:11 UTC Modified: 2004-08-17 08:13 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.0.0 OS: linux slack9.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roberto at spadim dot com dot br
New email:
PHP Version: OS:

 

 [2004-08-17 05:11 UTC] roberto at spadim dot com dot br
Description:
------------
When using:

function test{
$a{0}="ae";
echo $a;
}

returns:

Arrayae

with php4 it shows:

ae



Reproduce code:
---------------
function test{
$a{0}="ae";
echo $a;
}
test();

Expected result:
----------------
ae

Actual result:
--------------
Arrayae

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-17 08:13 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

Your example code doesn't run.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC