Skip to content

Commit fcf7e88

Browse files
authored
Merge pull request #136 from php-java/fix/doc
Update README.md [skip ci]
2 parents 5b9add7 + 73cbe93 commit fcf7e88

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

README.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PHPJava - JVM Emulator by PHP
22
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues)
33
![Compatibility](https://img.shields.io/badge/Compatibility-7.2%20and%20greater-green.svg)
4-
[![Build Status](https://travis-ci.org/php-java/php-java.png?branch=master)](https://travis-ci.org/memory-agape/php-java)
5-
[![Total Downloads](https://poser.pugx.org/php-java/php-java/downloads)](https://packagist.org/packages/memory-agape/php-java)
4+
[![Build Status](https://travis-ci.org/php-java/php-java.svg?branch=master)](https://travis-ci.org/php-java/php-java)
5+
[![Total Downloads](https://poser.pugx.org/php-java/php-java/downloads)](https://packagist.org/packages/php-java/php-java)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
77
<p align="center"><img src="./docs/img/logo.png" height="300"></p>
88

@@ -292,9 +292,9 @@ $javaClass = new JavaClass(
292292
### Runtime options
293293
- Available options on `JavaClass` or `JavaArchive`:
294294

295-
|Options | Value | Default | Description |Targeted |
296-
|:-------------:|:-------------:|:-------------:|:-------------:|:-------------:|
297-
| entrypoint | string or null | null | The entrypoint in JAR. | JavaArchive |
295+
| Options | Value | Default | Description | Targeted |
296+
|:--------|:------|:--------|:------------|:---------|
297+
| entrypoint | string or null | null | The entrypoint in JAR. | JavaArchive |
298298
| max_stack_exceeded | integer | 9999 | Execute more than the specified number of times be stopped the operation. | JavaClass |
299299
| max_execution_time | integer | 30 | Maximum execution time. | JavaClass |
300300
| strict | boolean | true | When `true`, PHPJava calls a method, variables, and so on strictly; otherwise, it calls them ambiguously. | Both |
@@ -309,7 +309,6 @@ $javaClass = new JavaClass(
309309
| dry_run (Not Implemented) | boolean | false | Checking JavaClass/JavaArchive structure only. When `true`, PHPJava runs in dry-run mode. | Both |
310310
| env (Not Implemented) | enum | Environment::EXPERIMENTAL | Your environment. | Both |
311311

312-
313312
- Example of JavaClass:
314313
```php
315314
<?php
@@ -420,20 +419,20 @@ public static void main(java.lang.String[])
420419

421420
- **Problem 2:** PHPJava cannot completely cover Java types because PHP is different from Java.
422421
The comparison table of Java and PHPJava is shown below:
423-
424-
|Java |PHPJava |
425-
|:-------------:|:-------------:|
426-
|null |null |
427-
|boolean |\PHPJava\Kernel\Types\\_Boolean (including `__toString`) |
428-
|char |\PHPJava\Kernel\Types\\_Char (including `__toString`) |
429-
|byte |\PHPJava\Kernel\Types\\_Byte (including `__toString`) |
430-
|short |\PHPJava\Kernel\Types\\_Short (including `__toString`) |
431-
|int |\PHPJava\Kernel\Types\\_Int (including `__toString`) |
432-
|long |\PHPJava\Kernel\Types\\_Long (including `__toString`) |
433-
|float |\PHPJava\Kernel\Types\\_Float (including `__toString`) |
434-
|double |\PHPJava\Kernel\Types\\_Double (including `__toString`) |
435-
436-
- **Problem 3:** PHPJava cannot calculate big number of `double` and `float` because `gmp_pow` cannot calculate negative exponents. So, PHPJavas use built-in function `pow`.
422+
423+
| Java | PHPJava |
424+
|:-----|:--------|
425+
| null | null |
426+
| boolean | \PHPJava\Kernel\Types\\_Boolean (including `__toString`) |
427+
| char | \PHPJava\Kernel\Types\\_Char (including `__toString`) |
428+
| byte | \PHPJava\Kernel\Types\\_Byte (including `__toString`) |
429+
| short | \PHPJava\Kernel\Types\\_Short (including `__toString`) |
430+
| int | \PHPJava\Kernel\Types\\_Int (including `__toString`) |
431+
| long | \PHPJava\Kernel\Types\\_Long (including `__toString`) |
432+
| float | \PHPJava\Kernel\Types\\_Float (including `__toString`) |
433+
| double | \PHPJava\Kernel\Types\\_Double (including `__toString`) |
434+
435+
- **Problem 3:** PHPJava cannot calculate big number of `double` and `float` because `gmp_pow` cannot calculate negative exponents. So, PHPJava uses built-in function `pow`.
437436

438437
## Run Kotlin on the PHPJava
439438
Do you wanna run Kotlin on the PHPJava? Are you serious?

0 commit comments

Comments
 (0)