Author Topic: PHP Pre-reqs  (Read 4629 times)

christopol

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
PHP Pre-reqs
« on: March 15, 2004, 04:58:38 am »
I'd buy this project for my PHP developpement if :

(1) EA Architect could deal with
function & foo () {
syntaxe (returning by references).
(I think function foo (&$var) is ok)

(2) EA Archetect could interprete and produce
/**
 * @var type $name description of $name
**/
 var $name;
syntaxe as in PhpDocumentor
( ditto for :
 * @param type $name description of $name
and
 * @return type description of $return


Sam_Mancarella

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: PHP Pre-reqs
« Reply #1 on: March 15, 2004, 05:48:26 pm »
Thank you for your interest in EA's support for the PHP language.

We will definately add by-reference parameter support for function parameters during the next two builds. We will also consider supporting the PhpDocumentor documentation syntax for a future release of EA.

Best Regards

Sam Mancarella

christopol

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: PHP Pre-reqs
« Reply #2 on: March 15, 2004, 11:22:29 pm »
I'm not talking about *by-reference parameter* support, but about *by-reference return* support.

Do you see what I mean ?

function & foo () {
       // Find something
       return $something
}

$something is returned by reference.

The problem is that in EA, the program will take the "&" as the name of the function.

In your code-parsing functions, just maintain the "&", and it'l be a good first step.  (Then again, I'd like a build where you put & all the time).  It's all explained concisely here:
http://www.php.net/manual/en/language.references.php

christopol

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: PHP Pre-reqs
« Reply #3 on: March 17, 2004, 05:00:06 am »
Just a note to renew my interest in a PHP factory.