php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6759 java.c does not compile
Submitted: 2000-09-14 09:32 UTC Modified: 2000-11-16 17:23 UTC
From: Wolfram dot Schmidt at iao dot fhg dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3 OS: Solaris 2.6
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: Wolfram dot Schmidt at iao dot fhg dot de
New email:
PHP Version: OS:

 

 [2000-09-14 09:32 UTC] Wolfram dot Schmidt at iao dot fhg dot de
Using Sun C 5.0 I get the following error message:
"java.c", line 555: a cast does not yield an lvalue

With incompetent modification of the casts I get this down to: warning: improper pointer/integer combination: op "="

I can't test it because there are other compile failures. which I will report later.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-14 22:17 UTC] Wolfram dot Schmidt at iao dot fhg dot de
Problem still exists in 4.0.3 - 
gcc compiles this code.
Who is in error?

A long time ago, when I programmed in C, I would have said that Sun C ist right. You need to take the address of the lvalue, cast it into the correct pointer and dereference it. But what do I know :-)
(not the recent modifications to the C language standard...)

 [2000-10-14 22:19 UTC] Wolfram dot Schmidt at iao dot fhg dot de
ah, yes - its ext/java/java.c
 [2000-11-16 17:23 UTC] jason@php.net
Fixed in CVS.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jul 03 22:00:01 2026 UTC