0 Members and 1 Guest are viewing this topic.
$php_bin = "/usr/bin/php"; $main_php = "main.php";
Fedora Core 3 php includes a change backported from php5 that breaks aochat. To work around it grab the php source rpm and delete patch 14. I have been trying to figure out a good way to implement TEA with the double to long change, but haven't been able to come up with anything too elegant. Anyone have ideas for this? (other than the obvious write-it-in-c one)// Auno[See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143514 for details.]
Quote from: "jobo.no"The bugreport was informative, but didn't help me out with the how. Can someone help me and potentially other n00bs with this? If not the command, then just a lhint with where to look.You need to know your way around building RPMs for this... but I think the simplest way to solve this is to use the php-aokex PHP module instead of trying to make AOChat work. So grab http://auno.org/dev/aochat/php-aokex-0.1.tar.gz, and then..Code: [Select]% tar zxf php-aokex-0.1.tar.gz% cd php-aokex% phpize% ./configure% make% cp -p modules/aokex.so ..Next edit your AOChat.php file and add dl("aokex.so"); somewhere in the beginning, then look for $this->generate_login_key(...) call and replace it with aokex_login_key(...);Start your script with "php -d extension_dir=. start.php" and it should work if you did everything as described here Quote from: "jobo.no"And also...Quote from: "Auno"I have been trying to figure out a good way to implement TEA with the double to long change, but haven't been able to come up with anything too elegant. ...but will this solve work in spite of the Fedora Core 3 bug?That is exactly what the above-mentioned module does, and it works at least on my systems. It implements the entire AO key exchange instead of just TEA though.// Auno
The bugreport was informative, but didn't help me out with the how. Can someone help me and potentially other n00bs with this? If not the command, then just a lhint with where to look.
% tar zxf php-aokex-0.1.tar.gz% cd php-aokex% phpize% ./configure% make% cp -p modules/aokex.so ..
And also...Quote from: "Auno"I have been trying to figure out a good way to implement TEA with the double to long change, but haven't been able to come up with anything too elegant. ...but will this solve work in spite of the Fedora Core 3 bug?
I have been trying to figure out a good way to implement TEA with the double to long change, but haven't been able to come up with anything too elegant.