|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-29 14:27 UTC] Jakub dot Gnat at webdynamix dot de
I got PHP code source form www.php.net and I could not compile a file servlet.java. (sapi/servlet) There is a line (75) where is "result+=concat + name + "=" + URLEncoder.encode(value,"UTF-8")" I checked a method encode and it has only one parameter as String so I delete the second one and I compiled successfully. I used to compile J2EESDK 1.3.1 from Sun, but I don't know if it will be work correctly. './configure' '--disable-debug' '--enable-tracks-vars' '--with-apxs=/usr/local/apache/bin/apxs' '--with-servlet' '--with-java' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
BTW, I'm using RH 6.2 PHP 4.2.2 Tomcat 4.04 and Sun's JDK1.3.0 Damn, the same thing happens in J2SDK1.4.0-01. I'm configuring --with-servlet=/usr/local/tomcat/common --with-java=/usr/local/J2SDK1.4.0-01 It configures, but when I try to run a make I get: make[3]: Entering directory `/home/dougie/build/php-4.2.2/sapi/servlet' /home/dougie/build/php-4.2.2/build/shtool mkdir -p net/php javac net/php/reflect.java javac -classpath .:/usr/local/tomcat/common/lib/servlet.jar:/usr/java/j2sdk1.4.0_01/lib/ net/php/servlet.java net/php/servlet.java:75: encode(java.lang.String) in java.net.URLEncoder cannot be applied to (java.lang.String,java.lang.String) result += concat + name + "=" + URLEncoder.encode(value, "UTF-8"); ^ 1 error make[3]: *** [phpsrvlt.jar] Error 1 make[3]: Leaving directory `/home/dougie/build/php-4.2.2/sapi/servlet' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dougie/build/php-4.2.2/sapi/servlet' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dougie/build/php-4.2.2/sapi' make: *** [all-recursive] Error 1with php-4.3.2RC1 on aix 4.3.3 with JDK 1.3.1 configure -with-config-file-path=/s00/app/sso/admin/$SSO_ID/conf \ --with-prefix=/s00/app/php/product/$SSO_ID \ --with-servlet=$CATALINA_HOME/common \ --with-ldap=$LDAP_HOME \ --with-mhash=$MHASH_HOME \ --with-oci8=$ORACLE_HOME \ --with-mysql=$MySQL_HOME \ --with-java=$JAVA_HOME Same problem.