#49680 [NEW]: bdecode_load() doesn't work

2009-09-26 Thread rossinidan at gmail dot com
From: rossinidan at gmail dot com
Operating system: Debian Squeeze 2.6.30-1-686
PHP version:  5.2.11
PHP Bug Type: Unknown/Other Function
Bug description:  bdecode_load() doesn't work

Description:

ully bcompiler 0.8s on php 5.2.10-2.2 with debian 2.6.30-1-686, but when I
try to use bcompiler-load on a class this does't work. It work if I use the
functions.







Reproduce code:
---
?php
  /*Class test */
class Greeting{
   var $message;
   function Greeting($message){
   $this-message = $message;
   }

   function showMessage(){
  echo( $this-message) ;
  }

}

?

?php 
  /* Source to encode */
  include('classTest.php') ;
  $fp = fopen(/tmp/test.pbc,w);

  bcompiler_write_header($fp);
  bcompiler_write_class($fp,Greeting);
  bcompiler_write_footer($fp);

  fclose($fp);

?


?php
  /* decodeBcompiler.php */
  $fp = fopen(/tmp/test.pbc,r);
  bcompiler_read ($fp) ;
  fclose($fp);

  $hello = new Greeting() ;

?

Expected result:

Read and create a class with bcompiler

Actual result:
--
When I try to execute the decodeBcompiler.php the browser call me to
import and  the file decodeBcompiler.php.
I have installed php, php-pear, php-cli with apt-get command and bdecode
with:
  pecl install bcompiler-0.8

After I have added extension=bcompiler.so to /etc/php5/apache2/php.ini



Greetings, 
   Danilo Rossini

-- 
Edit bug report at http://bugs.php.net/?id=49680edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49680r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49680r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49680r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49680r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49680r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49680r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=49680r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=49680r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=49680r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=49680r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=49680r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=49680r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=49680r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49680r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=49680r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=49680r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=49680r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=49680r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=49680r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=49680r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=49680r=mysqlcfg



#49680 [Bgs]: bdecode_load() doesn't work

2009-09-26 Thread rossinidan at gmail dot com
 ID:   49680
 User updated by:  rossinidan at gmail dot com
 Reported By:  rossinidan at gmail dot com
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Debian Squeeze 2.6.30-1-686
 PHP Version:  5.2.11
 New Comment:

I have reported it to http://pecl.php.net/bugs/bug.php?id=16849

Tankyou very much.


Previous Comments:


[2009-09-26 10:06:36] paj...@php.net

Report bcompiler bugs to pecl.



[2009-09-26 10:04:38] rossinidan at gmail dot com

Description:

ully bcompiler 0.8s on php 5.2.10-2.2 with debian 2.6.30-1-686, but
when I try to use bcompiler-load on a class this does't work. It work if
I use the functions.







Reproduce code:
---
?php
  /*Class test */
class Greeting{
   var $message;
   function Greeting($message){
   $this-message = $message;
   }

   function showMessage(){
  echo( $this-message) ;
  }

}

?

?php 
  /* Source to encode */
  include('classTest.php') ;
  $fp = fopen(/tmp/test.pbc,w);

  bcompiler_write_header($fp);
  bcompiler_write_class($fp,Greeting);
  bcompiler_write_footer($fp);

  fclose($fp);

?


?php
  /* decodeBcompiler.php */
  $fp = fopen(/tmp/test.pbc,r);
  bcompiler_read ($fp) ;
  fclose($fp);

  $hello = new Greeting() ;

?

Expected result:

Read and create a class with bcompiler

Actual result:
--
When I try to execute the decodeBcompiler.php the browser call me to
import and  the file decodeBcompiler.php.
I have installed php, php-pear, php-cli with apt-get command and
bdecode with:
  pecl install bcompiler-0.8

After I have added extension=bcompiler.so to /etc/php5/apache2/php.ini



Greetings, 
   Danilo Rossini





-- 
Edit this bug report at http://bugs.php.net/?id=49680edit=1