From: albaity at hotmail dot com
Operating system: Win XP Pro
PHP version: 5.0.3
PHP Bug Type: Java related
Bug description: Java Crash
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 bug report at http://bugs.php.net/?id=32215&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32215&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32215&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32215&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32215&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32215&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32215&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32215&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32215&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32215&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32215&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32215&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32215&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32215&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32215&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32215&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32215&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32215&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32215&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32215&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32215&r=mysqlcfg