Fatal error: Class 'PBEnum' not found
GoogleCodeExporter opened this issue · 8 comments
GoogleCodeExporter commented
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 commented
[deleted comment]
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
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 commented
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 commented
[deleted comment]
GoogleCodeExporter commented
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 commented
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 commented
thanks to #4, your reply sovlved my problem.
many thanks.
Original comment by glq2...@gmail.com
on 15 Nov 2013 at 11:49