php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11927 php sapi servlet doesn't compile
Submitted: 2001-07-06 07:48 UTC Modified: 2002-03-31 00:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: daniel dot dadusc at yoda dot it Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.0.6 OS: Linux
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: daniel dot dadusc at yoda dot it
New email:
PHP Version: OS:

 

 [2001-07-06 07:48 UTC] daniel dot dadusc at yoda dot it
Setup
Redhat 7.1
Jdk 1.31

The sapi servlet code doesn't compile because the code is in a terrible state. hacking the makefiles and some of the java code i managed to get it to compile correctly. i'm pretty much a newbie at this so i'm posting the tentative fixes here.

here are the changes i made to the makefile in sapi/servlet:

phpsrvlt.jar : servlet.java ../../ext/java/reflect.java
    $(mkinstalldirs) net/php
    @echo library=php4>net/php/reflect.properties
    @echo library=php4>net/php/servlet.properties
    @cp ../../ext/java/reflect.java .
    javac ./reflect.java
    @test ! -f reflect.class || mv reflect.class net/php 
    javac ./servlet.java
    @test ! -f servlet.class || mv servlet.class net/php
    $(JAVA_JAR)v phpsrvlt.jar net/php/*.class net/php/*.properties
    @rm -rf net

i removed the formatter servlet because it's useless

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-24 06:09 UTC] yohgaki@php.net
Please test with  PHP 4.1.1+JDK 1.2 and report the result back 
Please do not forget  updating PHP version. Thanks.
 [2002-03-31 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 17:01:31 2025 UTC