Bluehost.com Web Hosting $6.95

Re: [PHP] mcrypt mhash

This is a discussion on Re: [PHP] mcrypt mhash within the PHP General forums, part of the PHP Programming Forums category; http://mcrypt.hellug.gr/ http://mhash.sf.net/ On Wednesday 30 July 2003 08:11 pm, AECT Listas wrote: > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2003
Evan Nemerson
 
Posts: n/a
Default Re: [PHP] mcrypt mhash

http://mcrypt.hellug.gr/
http://mhash.sf.net/


On Wednesday 30 July 2003 08:11 pm, AECT Listas wrote:
> Hi,
>
> What is utility of mcrypt and mhash?
>
> Thanks,
>
> __________________________________________________ _______________
> Charla con tus amigos en línea mediante MSN Messenger:
> http://messenger.yupimsn.com/


Reply With Quote
  #2 (permalink)  
Old 07-31-2003
[-^-!-%-
 
Posts: n/a
Default PHP 5 Usage: Possible Bug?


All,

I came across the following inconsistency between PHP 4 and PHP 5 Build
2195(Jul 24 2003 20:10:21). The error makes sense. I am just curious
about the version inconsistency. Is this due to a change in PHP 5 (as part
of the class enhancements) or is it an oversight?
For my information, please advise.


==Example==
I can initiate a class before it is defined in version 4, but not in 5.


<?
//filename.php

//you can initiate the class before it is defined
$page = new PageClass;

class PageClass{ blah...blah...blah...; }

?>
will work in PHP 4, but will generate an 'Underfine Class' error in PHP 5.

In PHP 5, the above must be written as

<?
//class must be defined first
class ClassName { blah...blah...; }

//class must be defined before it is initiated
$page = new ClassName;
?>


This error makes sense, as you cannot use something that doesn't exist.
I'm mostly curious about the inconsistency between the two versions.

This is not a big issue, but I am curious? Any comments?

-john

Reply With Quote
  #3 (permalink)  
Old 07-31-2003
[-^-!-%-
 
Posts: n/a
Default PHP CLI: How to prevent a module from loading


Hey ppl!

I'm writing a shell script with php, but am having trouble with the Zend
Optimizer module. Please advise.

I get the following error when I run the script from the command line,
but not from the browser:
Failed loading /usr/local/lib/Zend/ZendOptimizer.so:
/usr/local/lib/Zend/ZendOptimizer.so: undefined symbol:
zend_get_configuration_directive


==The script ===

#!/usr/local/bin/php -q
<?php

echo 'hello world \n';

?>


again, this error only shows up in CLI mode, not from the browser.

Any idea what is causing that?
Is there a way to disable the module from loading, without
removing the php.ini zend optimzer entries?


Please advise.

-john



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0