AMFPHP 1.0 milestone 2 alpha

Today Patrick released a new milestone of amfphp: Chnages in this alpha release:

  • Added new methodTable option (per method) “fastArray” => true|false for fast array serializing on return (will only make a difference for large multidimensional nested voodoo arrays)
  • Added new method Headers::getHeader($key) available from all services, also HeadersFilter.php added
  • Added FrontBase support
  • Added Pear::db support
  • Added CSV-based recordsets support
  • Renamed sql folder to adapters to fit with the CSV recordsets
  • Various bugfixes for PHP4 MethodTable class
  • Major overhaul of service browser, should work much better now
  • New actionscript template system for service browser, see browser/templates/ for examples
  • Added new return type binary that will write the value as a string but without charsetHandling
  • Added new return type raw that will write to the output stream directly (careful)
  • SSL with ie hopefully works now

Some new methods included recently, which you can use in the gateway.php file (for production env): – disableStandalonePlayer() Disables the standalone player by filtering out its User-Agent string – disableServiceDescription() Disable service description from Macromedia’s service browser – disableTrace() Disables remote tracing – disableDebug() Stops debug info from being sent (independant of remote trace setting)

amfphp project page

mtasc 1.04 have been released

I just read today about the new release of MTASC.
Changes are :

  • “for” optional first parameter and expression
  • fixed while( o )++ i;
  • added error when duplicate import statement (with same or different package)
  • added class-exist import check => import will now link classes
  • fixed typing error with single “var” in a block
  • fixed parser error with a?b:c and big left-expression
  • fixed bug when catching “imported” exception class
  • changed boolean operators typing
  • added -flash6 for F6 compilation
  • added -trace for custom trace function
  • added optional color component for header

About new -trace: you can new use TRACE(….) (uppercase) in your code. such calls will be eithere removed if you don’t specify -trace from MTASC commandline or will be replaced by -trace specified function. Exemple :

class A {
  	function test() {
  		TRACE("hello !");
  	}
  }

when calling mtasc -trace MyClass.myLogFunction will be compiled as : MyClass.myLogFunction(“hello !”, “A::test”, “A.as”, 3 );
This way you can get class name , method name, file and line from which the trace occured, and log them using your custom trace function.
It’s a while i’m using mtasc integrated in sepy for checking syntax and I’m very happy how it works, checking syntax better than MM internal compiler…

download MTASC