allegro / php-protobuf

PHP Protobuf - Google's Protocol Buffers for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined method Foo::setBar()

jLynx opened this issue · comments

commented

Hi all, I am getting this problem when I use the demo code given in the readme:

require_once 'Foo.php';

$foo = new Foo();
$foo->setBar(1);
$foo->setBaz('two');
$foo->appendSpam(3.0);
$foo->appendSpam(4.0);

Call to undefined method Foo::setBar() in C:\WebServer.....removed......\test.php on line 6

I am running this in Windows Server 2012 R2 with PHP version 5.6

Because setBar is undefined?
Send all the necessary, here Foo class.