asmblah / uniter

🎉 PHP in the browser and Node.js => Docs: https://phptojs.com/
https://asmblah.github.io/uniter/
Other
446 stars 42 forks source link

Inherited constructor is not called on instantiation #37

Closed dave-irvine closed 4 years ago

dave-irvine commented 8 years ago
var php = require('uniter').createEngine('PHP');
php.getStdout().on('data', function (text) { console.log(text); });
php.getStderr().on('data', function (text) { console.error(text); });

php.execute('<?php class A { function __construct() { print "There "; } } class B extends A {} print "Hello "; new B(); print "World ";');

Hello 
World 
asmblah commented 8 years ago

Hopefully fixed by https://github.com/uniter/phpcore/commit/a621aab29dac5db9d77536584809aef6bef58ac0 (PHPCore v3.17.3.)

asmblah commented 4 years ago

This should have been fixed for a while now as mentioned above - closing.