|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-07-06 07:48 UTC] daniel dot dadusc at yoda dot it
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 : ../../ext/java/
    $(mkinstalldirs) net/php
    @echo library=php4>net/php/
    @echo library=php4>net/php/
    @cp ../../ext/java/ .
    javac ./
    @test ! -f reflect.class || mv reflect.class net/php 
    javac ./
    @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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-24 06:09 UTC]
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-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 08:01:23 2020 UTC