Re: [PHP-DEV] Again scope

2003-02-02 Thread michel 'ziobudda' morelli
Il dom, 2003-02-02 alle 21:31, Maxim Maletsky ha scritto:
 da http://www.php.net/ZEND_CHANGES.txt
 
 
 ?php
 class FooClass {
 function foo() {
 $this-bar();
 bar();
 }
 
 function bar() {
 print foobar\n;
 }
 }
 
 $obj = new FooClass;
 $obj-foo();
 ?
 
 

Ok, this not works. My cvs is old, very old. Tnx anyway.


-- 
michel 'ziobudda' morelli [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Maxim Maletsky
stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
Sicuro che non funzioni?

---
Maxim Maletsky
[EMAIL PROTECTED]


On 02 Feb 2003 21:56:08 +0100 michel 'ziobudda' morelli [EMAIL PROTECTED] wrote:

 Il dom, 2003-02-02 alle 21:31, Maxim Maletsky ha scritto:
  da http://www.php.net/ZEND_CHANGES.txt
  
  
  ?php
  class FooClass {
  function foo() {
  $this-bar();
  bar();
  }
  
  function bar() {
  print foobar\n;
  }
  }
  
  $obj = new FooClass;
  $obj-foo();
  ?
  
  
 
 Ok, this not works. My cvs is old, very old. Tnx anyway.
 
 
 -- 
 michel 'ziobudda' morelli [EMAIL PROTECTED]
 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Derick Rethans
On Sun, 2 Feb 2003, Maxim Maletsky wrote:

 stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
 un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
 Sicuro che non funzioni?

No problem if you answer in italian, but there is no need to CC the list 
then :-)

Derick

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Maxim Maletsky

On Sun, 2 Feb 2003 22:06:24 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote:

 On Sun, 2 Feb 2003, Maxim Maletsky wrote:
 
  stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
  un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
  Sicuro che non funzioni?
 
 No problem if you answer in italian, but there is no need to CC the list 
 then :-)

Sorry, guys - haven't noticed that Michele added php-dev to the
conversation :)  (Should have guessed why his answer was in english)

Anyway, what he talked about was why that code didn't work for him.
Sounded strange to me since it was noted in ZEND_CHANGES.txt. 


---
Maxim Maletsky
[EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Andi Gutmans
At 10:20 PM 2/2/2003 +0100, Maxim Maletsky wrote:


On Sun, 2 Feb 2003 22:06:24 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote:

 On Sun, 2 Feb 2003, Maxim Maletsky wrote:

  stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
  un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
  Sicuro che non funzioni?

 No problem if you answer in italian, but there is no need to CC the list
 then :-)

Sorry, guys - haven't noticed that Michele added php-dev to the
conversation :)  (Should have guessed why his answer was in english)

Anyway, what he talked about was why that code didn't work for him.
Sounded strange to me since it was noted in ZEND_CHANGES.txt.


The file isn't up-to-date. I'll make sure it's correct once namespaces are 
finalized.

Andi


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Again scope

2003-01-31 Thread michel 'ziobudda' morelli
?
Class Foo {
 var $foo2;

 Function Bar()
 {
  echo $foo2.\n;
  print Bar;
 }

 Function Bar2()
 {
  $foo2=foo2;
  Bar();
 }
}

$f = new foo;
$f-Bar2();
?

give me this error: 

Fatal error: Call to undefined function:  bar() in
/home/httpd/html/PHP/test/3.php on line 14

I'm using php-cli from cvs (2 weeks ago). 

And there is a variable scope (for the class).


-- 
michel 'ziobudda' morelli [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-01-31 Thread Xavier Spriet
This isn't a PHP problem.
use $this-Bar(); on line 14


On Fri, 2003-01-31 at 15:03, michel 'ziobudda' morelli wrote:
 ?
 Class Foo {
  var $foo2;
 
  Function Bar()
  {
   echo $foo2.\n;
   print Bar;
  }
 
  Function Bar2()
  {
   $foo2=foo2;
   Bar();
  }
 }
 
 $f = new foo;
 $f-Bar2();
 ?
 
 give me this error: 
 
 Fatal error: Call to undefined function:  bar() in
 /home/httpd/html/PHP/test/3.php on line 14
 
 I'm using php-cli from cvs (2 weeks ago). 
 
 And there is a variable scope (for the class).
 
 
 -- 
 michel 'ziobudda' morelli [EMAIL PROTECTED]
-- 
Xavier Spriet [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-01-31 Thread Maxim Maletsky

dovrebbe essere:

?
Class Foo {
 var $foo2;

 Function Bar()
 {
  echo $this-foo2.\n;
  print Bar;
 }

 Function Bar2()
 {
  $foo2=foo2;
  $this-Bar();
 }
}

$f = new foo;
$f-Bar2();
?


--
Maxim Maletsky
[EMAIL PROTECTED]



michel 'ziobudda' morelli [EMAIL PROTECTED] wrote... :

 ?
 Class Foo {
  var $foo2;
 
  Function Bar()
  {
   echo $foo2.\n;
   print Bar;
  }
 
  Function Bar2()
  {
   $foo2=foo2;
   Bar();
  }
 }
 
 $f = new foo;
 $f-Bar2();
 ?
 
 give me this error: 
 
 Fatal error: Call to undefined function:  bar() in
 /home/httpd/html/PHP/test/3.php on line 14
 
 I'm using php-cli from cvs (2 weeks ago). 
 
 And there is a variable scope (for the class).
 
 
 -- 
 michel 'ziobudda' morelli [EMAIL PROTECTED]
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php