Skip to content
This repository has been archived by the owner on May 5, 2018. It is now read-only.

Fatal error: Class 'PBEnum' not found #21

Open
GoogleCodeExporter opened this issue Apr 27, 2015 · 8 comments
Open

Fatal error: Class 'PBEnum' not found #21

GoogleCodeExporter opened this issue Apr 27, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

run test.php in zendstudio, and I change the "split()" to "explode()" in 
pb_parser.php for php 5.3

output: 

1. so many code like "reader = $reader; $this->value = $this; $this->base128 = 
new base128varint(PBMessage::MODUS); } /** * Get the wired_type and field_type 
* @param $number as decimal * @return array wired_type, field_type */ public 
function get_types($number) { $binstring = decbin($number); $types = array(); 

and so on 

2. output the Fatal error, like blew 
Fatal error: Class 'PBEnum' not found in 
D:\wamp\www\Omaha_poker\pb\example\pb_proto_test.php on line 3

Original issue reported on code.google.com by max.roy1...@gmail.com on 9 Mar 2012 at 12:51

Attachments:

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

OS: window XP
web server: wamp , apache-2.2.21 + php 5.3.10 + mysql 5.5.10

help me please

Original comment by max.roy1...@gmail.com on 9 Mar 2012 at 1:14

@GoogleCodeExporter
Copy link
Author

Got it, try to change <? to <?php in the  pb_message.php  , or open 
short_open_tag in php.ini .

I spend 2 day to find out. pls .

Original comment by max.roy1...@gmail.com on 9 Mar 2012 at 4:05

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

use next way can solve this question;

changed : "$apath = split("\.", $path);" to "$apath = explode(".", $path);";

I have solved it;

Original comment by yho...@gmail.com on 11 Aug 2012 at 3:57

@GoogleCodeExporter
Copy link
Author

please go to https://github.com/yuangu/pb4php;

this Version is Maintenance code by a chinese guy.you can commit your bug !

Original comment by lifuling...@126.com on 10 Jul 2013 at 1:28

@GoogleCodeExporter
Copy link
Author

thanks to #4, your reply sovlved my problem. 
many thanks.

Original comment by glq2...@gmail.com on 15 Nov 2013 at 11:49

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant