php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49680 bdecode_load() doesn't work
Submitted: 2009-09-26 10:04 UTC Modified: 2009-09-26 10:20 UTC
From: rossinidan at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.11 OS: Debian Squeeze 2.6.30-1-686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rossinidan at gmail dot com
New email:
PHP Version: OS:

 

 [2009-09-26 10:04 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-26 10:06 UTC] pajoye@php.net
Report bcompiler bugs to pecl.
 [2009-09-26 10:20 UTC] rossinidan at gmail dot com
I have reported it to http://pecl.php.net/bugs/bug.php?id=16849

Tankyou very much.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Oct 24 01:00:02 2025 UTC