ID: 32215 User updated by: albaity at hotmail dot com Reported By: albaity at hotmail dot com -Status: Feedback +Status: Open Bug Type: Java related Operating System: Win XP Pro PHP Version: 5.0.3 New Comment:
this the result must appear : Java version=1.4.2_05 Java vendor=Sun Microsystems Inc. OS=Windows XP 5.1 on x86 الاثنين, مارس 07, 2005 at 10:08:00 م Arabia Standard Time ----------------------------------------------------------- this is the code that I am test : <?php // get instance of Java class java.lang.System in PHP $system = new Java('java.lang.System'); // demonstrate property access print 'Java version='.$system->getProperty('java.version').' <br>'; print 'Java vendor=' .$system->getProperty('java.vendor').' <br>'; print 'OS='.$system->getProperty('os.name').' '. $system->getProperty('os.version').' on '. $system->getProperty('os.arch').' <br>'; // java.util.Date example $formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java('java.util.Date')); ?> --------------------------------------------------------- this is my php.ini setting which work with me with 4.3.10 : java.class.path = "C:\PHP\ext\php_java.jar;C:\PHP\ext\itext.jar" java.home = "C:\j2sdk\jre\" java.library = "c:\j2sdk\jre\bin\server\jvm.dll " java.library.path = "C:\PHP\ext\" ---------------------------------------------------- What I get : 2 windows give me this message : the instruction at "0x7c918fea" referennced memory at "0x00000010" the memory could not be "written" Previous Comments: ------------------------------------------------------------------------ [2005-03-07 10:59:18] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2005-03-07 10:43:55] albaity at hotmail dot com Description: ------------ try this code on 4.3.10 is work : <?php // get instance of Java class java.lang.System in PHP $system = new Java('java.lang.System'); // demonstrate property access print 'Java version='.$system->getProperty('java.version').' <br>'; print 'Java vendor=' .$system->getProperty('java.vendor').' <br>'; print 'OS='.$system->getProperty('os.name').' '. $system->getProperty('os.version').' on '. $system->getProperty('os.arch').' <br>'; // java.util.Date example $formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java('java.util.Date')); ?> but with php5.0.3 is not work . Reproduce code: --------------- windows give me 2 message to terminate program because of memory crash . Expected result: ---------------- give me the date Actual result: -------------- nothing CGI HEADERS NOT SEND IIS 5.5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32215&edit=1