[PATCH] php_java.jar extra space

php.internals

Alexandru Burciu

19 years ago
Hello, I know this is not the proper place where to submit this fix but I failed to find an alternative since the extension is no longer maintained and people continue to encounter this problem. If any of you know who is responsible, please forward him this message. Thank you! [*] Summary: The Java extension provides a simple and effective means for creating and invoking methods on Java objects from PHP. The JVM is created using JNI, and everything runs in-process. [*] Bug details: The extension is unable to load the library from the included php_java.jar because the net\php\reflect.properties file contains an extra space at the end of the line. This is a Windows only issue caused by misuse of the '>' file redirection operator when creating the .jar file. <snip> Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp. \Alex>echo bug > t1.txt \Alex>echo bug> t2.txt \Alex>fc /b t1.txt t2.txt Comparing files t1.txt and T2.TXT 00000003: 20 0D 00000004: 0D 0A FC: t1.txt longer than T2.TXT </snip> This problem has been reported before, but no action has been taken: http://bugs.php.net/bug.php?id=33718 http://pecl.php.net/bugs/bug.php?id=7679 ... [*] Affected PHP versions: <=5.2.0 [*] Patch details: Removes the extra space when creating the .jar file.
-- Alexandru.Burciu www.Info.UAIC.ro