|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-08 07:35 UTC] colder@php.net
[2008-05-09 23:57 UTC] blue765d at aol dot com
[2008-05-10 14:29 UTC] colder@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 26 02:00:01 2025 UTC |
Description: ------------ When a function in a class returns something that was typecasted, the typecast is ignored. Reproduce code: --------------- class test { public function foo() { $bar = "90"; return (int)$bar; } } Expected result: ---------------- The expected result is for $bar to be returned as an integer. Actual result: -------------- The actual result is that $bar is returned as a string.