File tree Expand file tree Collapse file tree 6 files changed +598
-598
lines changed Expand file tree Collapse file tree 6 files changed +598
-598
lines changed Original file line number Diff line number Diff line change @@ -54550,10 +54550,10 @@ var_dump($ser);
54550
54550
.. which is executable by both PHP & JS.
54551
54551
Both return the exact same output:
54552
54552
<pre><code>
54553
- kevin@kevin-desktop:~/workspace /plutonia-phpjs/_tools$ rhino debug.js
54553
+ kevin@kevin-desktop:~/code /plutonia-phpjs/_tools$ rhino debug.js
54554
54554
string(12) "s:5:"a
54555
54555
b";"
54556
- kevin@kevin-desktop:~/workspace /plutonia-phpjs/_tools$ php debug.php
54556
+ kevin@kevin-desktop:~/code /plutonia-phpjs/_tools$ php debug.php
54557
54557
string(12) "s:5:"a
54558
54558
b";"
54559
54559
</code></pre>
@@ -71656,8 +71656,8 @@ BTW. You are doing a great job here.]]></wp:comment_content>
71656
71656
<wp:comment_content><![CDATA[@ Jakub: Thanks for contributing to our project. When I implement your change and test it, I get the following error from rhino:
71657
71657
71658
71658
[CODE="text"]
71659
- kevin@trinity:~/workspace /plutonia-phpjs/_tools$ ./phpjstest.php unserialize
71660
- Exception in thread "Thread-0" org.mozilla.javascript.JavaScriptException: [object Error] (/home/kevin/workspace /plutonia-phpjs/functions/var/unserialize.js#16)
71659
+ kevin@trinity:~/code /plutonia-phpjs/_tools$ ./phpjstest.php unserialize
71660
+ Exception in thread "Thread-0" org.mozilla.javascript.JavaScriptException: [object Error] (/home/kevin/code /plutonia-phpjs/functions/var/unserialize.js#16)
71661
71661
at org.mozilla.javascript.gen.c4._c2(Unknown Source)
71662
71662
at org.mozilla.javascript.gen.c4.call(Unknown Source)
71663
71663
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function realpath(path) {
21
21
// improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net )
22
22
// note: Returned path is an url like e.g. 'http://yourhost.tld/path/ '
23
23
// example 1: realpath('../.././_ supporters/pj_test_supportfile_1.htm');
24
- // returns 1: 'file:/home/kevin/workspace /_ supporters/pj_test_supportfile_1.htm'
24
+ // returns 1: 'file:/home/kevin/code /_ supporters/pj_test_supportfile_1.htm'
25
25
26
26
var p = 0,
27
27
arr = [ ] ; /* Save the root, if not given * /
You can’t perform that action at this time.
0 commit comments