You are here: depreciated calls don't function « All PHP « IT news, forums, messages
depreciated calls don't function

Posted by jason_chancellor on 12/19/05 21:53

I'm trying to use the PEAR Crypt/RSA.php package and I'm running into a
problem thats driving me crazy.

I'm using PHP 5.0.3

When I include the Crypt/RSA.php package, the application just stops
working. There are no errors in the apache error log at all, and all I
get back is a blank screen in my browser (viewing the source it shows
no characters returned). So it was difficult to track down what was
causing the problem, but I managed to figure it out.

Inside this RSA.php class they are declaring class variables like this:

var $somevariable;

For whatever reason, my php doesn't like that. If I change it to:

public $somevariable;

everything works fine.

Also, another problem is this line:
$obj = &new Crypt_RSA($params, $wrapper_name);

If I leave the line in, I get the problem. If I comment it out
everything works fine. (well actually it doesn't work fine, but at
least I get something in my apache error log).

Why is this happening? Any ideas?

Thanks,
Jason

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация