Bug #2892 Updated: php -a (interactive mode) doesn't call functions
| From: | zeev@php.net | Date: | Sun, 06 May 2001 15:09:10 +0000 |
| Subject: | Bug #2892 Updated: php -a (interactive mode) doesn't call functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54102@lists.php.net to get a copy of this message | ||
ID: 2892
Updated by: zeev
Reported By: stas@zend.com
Old-Status: Assigned
Status: Closed
Bug Type: Scripting Engine problem
Operating system:
PHP Version: 4.0 Beta 3
Assigned To: Andi
Comments:
Beat ya to it, Andi :)
Fixed in the CVS
Previous Comments:
---------------------------------------------------------------------------
[2001-04-29 13:39:24] andi@php.net
Interactive mode is very limited and only meant to check simple things with. We can keep it as an
assigned bug but I don't think it'll ever be fixed.
---------------------------------------------------------------------------
[2000-07-23 11:06:27] stas@cvs.php.net
Yes it does.
---------------------------------------------------------------------------
[2000-07-23 02:54:18] zak@cvs.php.net
Is this problem still occuring in the most recent release?
---------------------------------------------------------------------------
[1999-12-02 06:43:12] stas@zend.com
Script set.php3:
<?
class x {
var $a=2;
function seta ($b) {
$this->a = $b;
echo "$bn";
}
}
$y = new x();
echo $y->a,"n";
$y->seta(10);
echo $y->a,"n";
?>
Run: php -f set.php3
get:
2
10
10
still OK. Now run php -a < set.php3:
Interactive mode enabled
Content-Type: text/html
2
2
Huh? where's my method call? Or interactive mode isn't what I thought it is?
Strange thing is that php < set.php3 does work, so what "interactive mode" is in fact?
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=2892&edit=2