Menu

RAP with PHP5

Help
2004-07-16
2013-03-14
  • Jonathan Brinley

    I am attempting to use RAP with the newly released PHP 5.0.  Any attempt to include it result in the message "Fatal error: Cannot re-assign $this in D:\rdfapi\api\model\DbModel.php on line 904".  Are there any suggested work-arounds for this, other than going pack to a previous version of PHP?

    Thanks.

     
    • Sören Auer

      Sören Auer - 2004-07-16

      Removing or uncommenting these lines helps and probably doesn't have any side effects.
      model/DBModel.php (904), model/DBModel.php (233)
      #   $this = NULL;

       
    • Leandro Mariano Lopez

      AFAIK, RAP will not work so much as expected with PHP5, because it was developed with PHP4 in mind.

      The developers are working on this I think, but it's likely that they'd have to rewrite it from scratch, because PHP5 supports a better OOP model.

       
    • Josef Petrák

      Josef Petrák - 2005-06-23

      RAP on PHP5? It sounds interesting. I am writing a RDF-based application with PHP5 and I have some trouble because it converts all non-ASCII chars to their Unicode represenation \Uxxxx but I don't know how to convert them back. Do you know how to convert them back?

      My question is: "Do you need some help in rewriting RAP into PHP5?"

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.