I am using the followig:

Redhat 7.2
Java sdk 1.4.1
PHP 4.2.3

Get the lot to work, but when running the test script I am getting the following warnings. Any help would be appreciated.

Regards

Wimpie

Java version=1.4.1
Java vendor=Sun Microsystems Inc.
OS=Linux 2.4.18-3 on i386
Thursday, October 17, 2002 at 3:33:13 PM GMT+02:00
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

    well, it's probably something in your code that's causing the server to give those warnings.

    Let's see the code.

    or at least some similar test code that does the same thing.

      Hi

      The script is the formal test script that php.net recommend at http://www.php.net/manual/en/ref.java.php.

      Below is a copy.

      Regards

      Wimpie

      <?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'));
      ?>

        interesting it looks like the warnings occur when the script is exiting.

        You've got three new java classes, and three warnings...
        Is there a java_release command or something?

        try unsetting those variables.

          Write a Reply...