AMFPHP 1.9 Update in SVN
August 1st, 2008
I have updated the SVN repository to fix a couple issues that were found over the last couple months. If you are a major amfphp user please check out a version and test that nothing else was broken,
, and that these issues where resolved for you.
- Bug Fix to handle ByteArray when ByteArray already exists.
- Bug Fix for PHP5 overridden ArrayAccess and ArrayObjects with an explicit type
- Update to handle disk I/O of finding services faster.
- Update to handle disk I/0 for class mapping faster.
https://sourceforge.net/svn/?group_id=72483
As a heads up I am trying to get a final bug free release that STILL has php4 support.


Thanks
I’m going to test it now
Firstly – thanks for all your hard work on AMF-PHP – you’ve made my life easier countless times.
Secondly – With PHP4 nearing extinction on most shared hosting providers and PHP5 *usually* an easy switch on dedicated hosting, is PHP4 support really still necessary? I know my company develops for PHP5 only – I’m sure we’re not alone in this.
Thanks Again…
Kiall Mac Innes
You would be amazed how many people email me about php4 support. I frankly can’t even understand PHP4 any more. When I see the code i am like what is that? ohh must be a php4 function.
I have been using the amfphp beta version straight from the trunk and I have seen the latest patch by Alessandro for ByteArrays applied.
However, I had a bit of code which used to return an array which consisted of some key => pair values and one of the values was a ByteArray. Since the patch was applied, I cannot get my ByteArray data (returns null), unless I send it back to my Flex app by itself.
eg:
$results = array(
‘DocumentName’ = $record['DocumentName'],
‘Document’ => new ByteArray($record['Document'])
);
return $results;
The above used to work until revision 6 of the repository. Do I need to change anything in my code to make it work again?
Thanks Jeff, I will check that out! Appreciate the feedback.
Great job Wade. When will the main download be made available for those who don’t have access to subversion?
Well I’ve been running into similar byteArray issues and I haven’t found a resolution. After downloading your work here wade,
I’m getting what Alessandro Crugnola had problems with:
http://www.sephiroth.it/weblog/archives/2008/07/amfphp_issue_referencing_bytearray.php
Here’s my svn info output. Is this the newly updated subversion you’re referring to?
Path: .
URL: https://amfphp.svn.sourceforge.net/svnroot/amfphp
Repository Root: https://amfphp.svn.sourceforge.net/svnroot/amfphp
Repository UUID: d1a04505-e93a-0410-bb8f-ef7208cba7c8
Revision: 7
Node Kind: directory
Schedule: normal
Last Changed Author: wadea
Last Changed Rev: 7
Last Changed Date: 2008-08-01 17:52:49 -0600 (Fri, 01 Aug 2008)
Thanks a million Wade!
And I just do not miss update AMFPHP. Develop long thought score.
good to see some movement here.
thanks a lot.
Would be really nice if the amfPHP project could start to have some development.
thanks again
Hey,
Any idea of when you might be releasing a stable 2.0 release? Just wondering cause it seems amfphp has been in 1.9 beta for over a year now. I would like to use amfphp in a upcoming project, but I’m not too sure my customer’s IT department would be happy with having something marked as beta installed on their servers…
I currently had some issues, with MYSQL 5.0 and PHP 5.2, that took my inhouse program that relys on Mysql and AMFPHP services down.
In order to fix the issue i decided to reinstall PHP and MYSQL.
Unfortunatly I Decided to use PHPs newest release PHP 5.3.
What a hassel this has been.
I have had to update php functions all over the place.
Well on to the point…
I had this error on my amfphp browser when i tried to open it.
[
(mx.rpc::Fault)#0
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed'
faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500'"
name = "Error"
rootCause = (Object)#1
code = "NetConnection.Call.Failed"
description = "HTTP: Status 500"
details = "http://dellsrv/amfphp/gateway.php"
level = "error"
]
look it up on google no conclusions, except i was inadvetently directed to checking my apache logs.
I saw in the apache logs the following:
Uncaught exception ‘VerboseException’ with message ‘date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/New_York’ for ‘-5.0/no DST’ instead’ in C:\\Apache Software Foundation\\Apache2.2\\htdocs\\amfphp\\core\\amf\\app\\Gateway.php:213\nStack trace:\n#0 [internal function]: amfErrorHandler(2, ‘date(): It is n…’, ‘C:\\Program File…’, 213, Array)\n#1 C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\amfphp\\core\\amf\\app\\Gateway.php(213): date(‘D, j M Y ‘)\n#2 C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\amfphp\\gateway.php(152): Gateway->service()\n#3 {main}\n thrown in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\amfphp\\core\\amf\\app\\Gateway.php on line 213
So i basically did what i said to do: went into the Gateway.php file for AMFPHP core and added ” date_default_timezone_set(‘America/Los_Angeles’); ” to the beggining of the file.
And i was finally able to enter the AMFPHP browser.
When i went to the Service i am running i got the following:
” Function eregi_replace() is deprecated
C:\Apache Software Foundation\Apache2.2\htdocs\amfphp\core\shared\util\MethodTable.php on line 505 ”
So i replaced it with ereg_replace() also deprecated, replace that with preg_replace().
Than i got another error ” preg_replace(): Unknown modifier ‘+’
C:\Apache Software Foundation\Apache2.2\htdocs\amfphp\core\shared\util\MethodTable.php on line 505 ”
so i removed “+” sign from ” $comment = preg_replace(“\n[ \t]+”, “\n”, trim($comment)); ”
that fixed that. But still have another error.
Continued on next post