I am facing some problem in amfPHP i already installled amfPHP in my root folder of wampserver on my localhost when i call url http://localhost/amfphp/browser/ - the error occures
** "Error retrieving service info:
Function eregi_replace() is deprecated
C:\wamp\www\amfphp\core\shared\util\MethodTable.php on line 505 "**
how to solve fix this error help me plz
**Thanks
Mayur Mohite **
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello - I have the same problem as Message 1 above - gateway.php says all okay but browser access gives the above error. I have replaced my MethodTable.php file with the revision 18 from the link given, but the error remains the same.
configuration: apache 2.2.14, php 5.3, win xp sp2
any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried the new version, and it's still has issues with php 5.3 when using the strict mode.
The sample amf code works as do the gateway browser.
However, anything a bit complex or generating errors will explode the gateway with static call to method not declared static.
I added the static declaration where appropriate (a lot of changes), but still couldn't get it to work reliably.
Had to switch to SabreAMF to get my gateway to work. (Win 2008 R2 IIS7.5 php 5.3.1)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Sorry to hear that. By strict, do you mean something like this?
error_reporting(E_ALL);
As I understand PHP doesn't have a strict mode, as you might in Perl.
Could you post your errors?
Ariel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes, I mean E_ALL or E_STRICT
I do not have access to the server at the moment, but IIRC the first of the errors was in /core/shared/exception/MessageException.php line 39
$this->level = MessageException::getFriendlyError($code);
and effectively, line 85 we have function getFriendlyError ($err) {
instead of (public/private ?) static function getFriendlyError ($err) {
I corrected several such error and finally did a search on :: to find the Method called statically and added the static declaration where needed. There where a lot of those. Finlay I still hit a snag when the ReflectionClass getMethods() didn't find any methods. But I'm quiet sure I messed up on some static call which I should instead have converted to $this->
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm under fedora.. and i hace the error following when i want to connect to http:/localhost/amfphp/brpwser.phph
(mx.rpc::Fault)#0
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed'"
name = "Error"
rootCause = (Object)#1
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "http://localhost/html/amfphp/"
level = "error"
why?
thanks for your helping
Have you tried accessing the gateway with your browser? http:/localhost/amfphp/gateway.php
Ariel
I am facing some problem in amfPHP i already installled amfPHP in my root folder of wampserver on my localhost when i call url
http://localhost/amfphp/browser/ - the error occures
** "Error retrieving service info:
Function eregi_replace() is deprecated
C:\wamp\www\amfphp\core\shared\util\MethodTable.php on line 505 "**
how to solve fix this error help me plz
**Thanks
Mayur Mohite **
my email addres is mayurshirishmohite@gmail.com
ah, that would be because of PHP 5.3. You can get a fixed file that you will have to replace on your server here:
http://amfphp.svn.sourceforge.net/viewvc/amfphp/trunk/core/shared/util/MethodTable.php?view=log
it will be in the upcoming release if you wait a few days
Hello - I have the same problem as Message 1 above - gateway.php says all okay but browser access gives the above error. I have replaced my MethodTable.php file with the revision 18 from the link given, but the error remains the same.
configuration: apache 2.2.14, php 5.3, win xp sp2
any suggestions?
Hi,
have you tried the latest release? 1.9 came out a few days ago.
bye
Ariel
I tried the new version, and it's still has issues with php 5.3 when using the strict mode.
The sample amf code works as do the gateway browser.
However, anything a bit complex or generating errors will explode the gateway with static call to method not declared static.
I added the static declaration where appropriate (a lot of changes), but still couldn't get it to work reliably.
Had to switch to SabreAMF to get my gateway to work. (Win 2008 R2 IIS7.5 php 5.3.1)
Hi,
Sorry to hear that. By strict, do you mean something like this?
error_reporting(E_ALL);
As I understand PHP doesn't have a strict mode, as you might in Perl.
Could you post your errors?
Ariel
yes, I mean E_ALL or E_STRICT
I do not have access to the server at the moment, but IIRC the first of the errors was in /core/shared/exception/MessageException.php line 39
$this->level = MessageException::getFriendlyError($code);
and effectively, line 85 we have function getFriendlyError ($err) {
instead of (public/private ?) static function getFriendlyError ($err) {
I corrected several such error and finally did a search on :: to find the Method called statically and added the static declaration where needed. There where a lot of those. Finlay I still hit a snag when the ReflectionClass getMethods() didn't find any methods. But I'm quiet sure I messed up on some static call which I should instead have converted to $this->