|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19961 Random casting results when Java ext is used
Submitted: 2002-10-17 12:41 UTC Modified: 2002-11-10 18:23 UTC
From: kryza at medialogic dot it Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.2.3 OS: Linux 2.4.18 (Red Hat 7.3)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
13 + 49 = ?
Subscribe to this entry?

 [2002-10-17 12:41 UTC] kryza at medialogic dot it
PHP 4.2.3 compiled with Sun JDK 1.3.1

Script like this:

echo "A: ";
echo "A: ";

Normaly gives this result:
A: string(5) "10.10" B: float(10.1)

But when in the same file we create java object:

echo "A: ";
echo "A: ";
$system = new Java('java.lang.System');

Output can be:
A: string(5) "10.10" B: float(10)
or like before:
A: string(5) "10.10" B: float(10.1)


Grzegorz Kryza


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-17 14:18 UTC] kryza at medialogic dot it
Well, "new Java()" switch delimiter from dot (.) to comma (,)

Grzegorz Kryza
 [2002-10-17 17:06 UTC]
Please try using this CVS snapshot:
For Windows:
 [2002-11-10 18:23 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Apr 14 05:01:24 2021 UTC