php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27892 Getting a position (using {}) of a float returns NULL
Submitted: 2004-04-06 16:32 UTC Modified: 2004-04-07 03:58 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ben at nullcreations dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: Windows/FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ben at nullcreations dot net
New email:
PHP Version: OS:

 

 [2004-04-06 16:32 UTC] ben at nullcreations dot net
Description:
------------
When getting an index position from a float, PHP returns NULL.

Reproduce code:
---------------
<?php

$number = 1.2;
echo $number{0};

?>

Expected result:
----------------
should return a string value containing "1"

Actual result:
--------------
returns NULL

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-07 03:58 UTC] sniper@php.net
Really? (RTFM)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 19:01:32 2025 UTC