From: <pds...@ya...> - 2004-07-08 01:54:44
|
I am new to amfphp, but strong with PHP. I am trying to use AMFPHP with PHP5. The examples work fine, but when I start building PHP5 objects it all falls apart. I am hoping someone can point me in the correct direction to help move this forward. Thanks. |
From: <pds...@ya...> - 2004-07-08 02:40:51
|
I have solved the problem (I think). The RemotingService wrapper class that is used to extend your base class uses __construct as the name of the constructor and tries to call the class name as the parent constructor. PHP5 changes this with a new constructor called __construct. The RemotingService code did not call the correct constructor. I hacked a solution that works for me. I doubt it would be useable for others. I am working on a better fix that will be more compatible with general amfphp users. I will submit that when I get it working. --- pds...@ya... wrote: > I am new to amfphp, but strong with PHP. I am > trying > to use AMFPHP with PHP5. The examples work fine, > but > when I start building PHP5 objects it all falls > apart. > > I am hoping someone can point me in the correct > direction to help move this forward. > > Thanks. > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & > Training. > Attend Black Hat Briefings & Training, Las Vegas > July 24-29 - > digital self defense, top technical experts, no > vendor pitches, > unmatched networking opportunities. Visit > www.blackhat.com > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general > |
From: <pds...@ya...> - 2004-07-08 04:07:55
|
I could not find anywhere else to post this diff. So, I will send it here and hope it gets to the right people. Here it is, enjoy: cvs -z3 diff "RemotingService.php" Index: RemotingService.php =================================================================== RCS file: /cvsroot/amfphp/sources/flashservices/util/RemotingService.php,v retrieving revision 1.8 diff -r1.8 RemotingService.php 36c36 < call_user_func_array(array(&\$this, \"__construct\"), \$arguments); --- > call_user_func_array(array(&\$this, \"AMF__construct\"), \$arguments); 39c39 < function __construct(\$ParentClassName) --- > function AMF__construct(\$ParentClassName) 41c41 < if (method_exists(\$this, \$ParentClassName)) { --- > if (method_exists(\$this, \$ParentClassName)) { 43a44,46 > else if (method_exists(\$this, __construct)) { > \$this->__construct(); > } --- pds...@ya... wrote: > I have solved the problem (I think). The > RemotingService wrapper class that is used to extend > your base class uses __construct as the name of the > constructor and tries to call the class name as the > parent constructor. PHP5 changes this with a new > constructor called __construct. The RemotingService > code did not call the correct constructor. I hacked > a > solution that works for me. I doubt it would be > useable for others. I am working on a better fix > that > will be more compatible with general amfphp users. > I > will submit that when I get it working. > > --- pds...@ya... wrote: > > I am new to amfphp, but strong with PHP. I am > > trying > > to use AMFPHP with PHP5. The examples work fine, > > but > > when I start building PHP5 objects it all falls > > apart. > > > > I am hoping someone can point me in the correct > > direction to help move this forward. > > > > Thanks. > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by Black Hat Briefings > & > > Training. > > Attend Black Hat Briefings & Training, Las Vegas > > July 24-29 - > > digital self defense, top technical experts, no > > vendor pitches, > > unmatched networking opportunities. Visit > > www.blackhat.com > > _______________________________________________ > > amfphp-general mailing list > > amf...@li... > > > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & > Training. > Attend Black Hat Briefings & Training, Las Vegas > July 24-29 - > digital self defense, top technical experts, no > vendor pitches, > unmatched networking opportunities. Visit > www.blackhat.com > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general > |