[PHP-DEV] Zend-Engine2

2001-08-19 Thread GaM3R



got bored and decided to have a look at it but i kinda hit a problem . . 
.
su-2.05# makeMaking all in Zend/bin/sh ../libtool --silent 
--mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DBUFFERED_LOGS 
-DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I../TSRM -g 
-O2 -prefer-pic -c zend_language_parser.cIn file included from 
zend_compile.h:24, 
from ./zend_language_parser.y:31:zend.h:201: redefinition of 
`zend_object_handlers'zend.h:180: `zend_object_handlers' previously declared 
here*** Error code 1

Stop in /.1/update/php4-ze2/Zend.*** Error code 1

Stop in /.1/update/php4-ze2.



Cameron
outworld.cx


Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans

Thanks, I fixed it.
You can go ahead and update your CVS tree.
Andi

At 06:18 PM 8/19/2001 +1000, GaM3R wrote:
got bored and decided to have a look at it but i kinda hit a problem . . .

su-2.05# make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../main   -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104 
-DEAPI -DUSE_EXPAT -I../TSRM  -g -O2 -prefer-pic -c zend_language_parser.c
In file included from zend_compile.h:24,
  from ./zend_language_parser.y:31:
zend.h:201: redefinition of `zend_object_handlers'
zend.h:180: `zend_object_handlers' previously declared here
*** Error code 1

Stop in /.1/update/php4-ze2/Zend.
*** Error code 1

Stop in /.1/update/php4-ze2.



Cameron
outworld.cx


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Markus Fischer

Sorry, maybe I missed it, but what are the current chages to the
ZE2 ? Which feature can we expect to have when testing it ?

- Markus

On Sun, Aug 19, 2001 at 06:22:31PM +0300, Andi Gutmans wrote : 
 Thanks, I fixed it.
 You can go ahead and update your CVS tree.
 Andi
 
 At 06:18 PM 8/19/2001 +1000, GaM3R wrote:
 got bored and decided to have a look at it but i kinda hit a problem . . .
 
 su-2.05# make
 Making all in Zend
 /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
 -I../main   -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104 
 -DEAPI -DUSE_EXPAT -I../TSRM  -g -O2 -prefer-pic -c zend_language_parser.c
 In file included from zend_compile.h:24,
  from ./zend_language_parser.y:31:
 zend.h:201: redefinition of `zend_object_handlers'
 zend.h:180: `zend_object_handlers' previously declared here
 *** Error code 1
 
 Stop in /.1/update/php4-ze2/Zend.
 *** Error code 1
 
 Stop in /.1/update/php4-ze2.
 
 
 
 Cameron
 outworld.cx
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
  -All your scripts are belong to Zend-

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans

Right now the only thing which is implemented is that objects behave as 
object handles and not as native types so when you're sending objects by 
values or assigning objects the object handler is copied and not the object 
itself. Also very partially implemented is syntax such as 
$foo-method1()-method2();

Andi

At 05:36 PM 8/19/2001 +0200, Markus Fischer wrote:
Sorry, maybe I missed it, but what are the current chages to the
ZE2 ? Which feature can we expect to have when testing it ?

- Markus

On Sun, Aug 19, 2001 at 06:22:31PM +0300, Andi Gutmans wrote :
  Thanks, I fixed it.
  You can go ahead and update your CVS tree.
  Andi
 
  At 06:18 PM 8/19/2001 +1000, GaM3R wrote:
  got bored and decided to have a look at it but i kinda hit a problem . . .
  
  su-2.05# make
  Making all in Zend
  /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
  -I../main   -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104
  -DEAPI -DUSE_EXPAT -I../TSRM  -g -O2 -prefer-pic -c zend_language_parser.c
  In file included from zend_compile.h:24,
   from ./zend_language_parser.y:31:
  zend.h:201: redefinition of `zend_object_handlers'
  zend.h:180: `zend_object_handlers' previously declared here
  *** Error code 1
  
  Stop in /.1/update/php4-ze2/Zend.
  *** Error code 1
  
  Stop in /.1/update/php4-ze2.
  
  
  
  Cameron
  outworld.cx
 
 
  --
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
   -All your scripts are belong to Zend-

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Markus Fischer

On Sun, Aug 19, 2001 at 06:40:04PM +0300, Andi Gutmans wrote : 
 Right now the only thing which is implemented is that objects behave as 
 object handles and not as native types so when you're sending objects by 
 values or assigning objects the object handler is copied and not the object 
 itself. Also very partially implemented is syntax such as 
 $foo-method1()-method2();

Wow :-D

Great, thanks!

- Markus

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread GaM3R

well it still has errors . . .

this 1 is only a warning and keeps going np

bison -y -p zend -v -d ./zend_language_parser.y -o zend_language_parser.c
conflicts:  6 shift/reduce

but the main one is this . . .

Making all in apache
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c sapi_apache.c
In file included from /usr/local/apache/include/httpd.h:72,
 from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c mod_php4.c
In file included from /usr/local/apache/include/httpd.h:72,
 from mod_php4.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c php_apache.c
In file included from php_apache_http.h:6,
 from php_apache.c:45:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=link
gcc -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/u
pdate/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/usr
/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/inclu
de -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/php
4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=20810
4 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer   -
o libsapi.la  sapi_apache.lo mod_php4.lo php_apache.lo
Making all in TSRM
make: don't know how to make ../config.status. Stop
*** Error code 1

Stop in /.1/update/php4-ze2.



- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: GaM3R [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 1:22 AM
Subject: Re: [PHP-DEV] Zend-Engine2


 Thanks, I fixed it.
 You can go ahead and update your CVS tree.
 Andi

 At 06:18 PM 8/19/2001 +1000, GaM3R wrote:
 got bored and decided to have a look at it but i kinda hit a problem . .
.
 
 su-2.05# make
 Making all in Zend
 /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
 -I../main   -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104
 -DEAPI -DUSE_EXPAT -I../TSRM  -g -O2 -prefer-pic -c
zend_language_parser.c
 In file included from zend_compile.h:24,
   from ./zend_language_parser.y:31:
 zend.h:201: redefinition of `zend_object_handlers'
 zend.h:180: `zend_object_handlers' previously declared here
 *** Error code 1
 
 Stop in /.1/update/php4-ze2/Zend.
 *** Error code 1
 
 Stop in /.1/update/php4-ze2.
 
 
 
 Cameron
 outworld.cx




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans

At 01:54 AM 8/20/2001 +1000, GaM3R wrote:
well it still has errors . . .

this 1 is only a warning and keeps going np

bison -y -p zend -v -d ./zend_language_parser.y -o zend_language_parser.c
conflicts:  6 shift/reduce

This is OK :) It's not an error I'm just keeping it around so that I can 
see it during development.


but the main one is this . . .

Update your php CVS. Sterling commited a fix for this yesterday.

Andi


Making all in apache
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c sapi_apache.c
In file included from /usr/local/apache/include/httpd.h:72,
  from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c mod_php4.c
In file included from /usr/local/apache/include/httpd.h:72,
  from mod_php4.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c php_apache.c
In file included from php_apache_http.h:6,
  from php_apache.c:45:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=link
gcc -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/u
pdate/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/usr
/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/inclu
de -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/php
4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=20810
4 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer   -
o libsapi.la  sapi_apache.lo mod_php4.lo php_apache.lo
Making all in TSRM
make: don't know how to make ../config.status. Stop
*** Error code 1

Stop in /.1/update/php4-ze2.



- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: GaM3R [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 1:22 AM
Subject: Re: [PHP-DEV] Zend-Engine2


  Thanks, I fixed it.
  You can go ahead and update your CVS tree.
  Andi
 
  At 06:18 PM 8/19/2001 +1000, GaM3R wrote:
  got bored and decided to have a look at it but i kinda hit a problem . .
.
  
  su-2.05# make
  Making all in Zend
  /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
  -I../main   -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=208104
  -DEAPI -DUSE_EXPAT -I../TSRM  -g -O2 -prefer-pic -c
zend_language_parser.c
  In file included from zend_compile.h:24,
from ./zend_language_parser.y:31:
  zend.h:201: redefinition of `zend_object_handlers'
  zend.h:180: `zend_object_handlers' previously declared here
  *** Error code 1
  
  Stop in /.1/update/php4-ze2/Zend.
  *** Error code 1
  
  Stop in /.1/update/php4-ze2.
  
  
  
  Cameron
  outworld.cx
 
 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread GaM3R

- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: GaM3R [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 2:01 AM
Subject: Re: [PHP-DEV] Zend-Engine2


 At 01:54 AM 8/20/2001 +1000, GaM3R wrote:

 but the main one is this . . .

 Update your php CVS. Sterling commited a fix for this yesterday.

 Andi


Absolute fresh cvs, rm'd the old tree and got it all, it now compiles and
runs but i still get these errors:


Making all in apache
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c sapi_apache.c
In file included from /usr/local/apache/include/httpd.h:72,
 from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c mod_php4.c
In file included from /usr/local/apache/include/httpd.h:72,
 from mod_php4.c:32:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition
/bin/sh /.1/update/php4-ze2/libtool --silent --mode=compile
gcc  -I. -I/.1/update/php4-ze2/sapi/apache -I/.1/update/php4-ze2/main -I/.1/
update/php4-ze2 -I/usr/local/apache/include -I/.1/update/php4-ze2/Zend -I/us
r/local/include/freetype2/freetype -I/usr/local/include/gd -I/usr/local/incl
ude -I/usr/local/include/c-client -I/usr/local/include/mysql -I/.1/update/ph
p4-ze2/ext/xml/expat  -DBUFFERED_LOGS -DHARD_SERVER_LIMIT=512 -DMOD_SSL=2081
04 -DEAPI -DUSE_EXPAT -I/.1/update/php4-ze2/TSRM -O6 -fomit-frame-pointer -p
refer-pic  -c php_apache.c
In file included from php_apache_http.h:6,
 from php_apache.c:45:
/usr/local/apache/include/ap_config.h:1294: warning: `XtOffsetOf' redefined
/.1/update/php4-ze2/main/php.h:345: warning: this is the location of the
previous definition




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Markus Fischer

On Sun, Aug 19, 2001 at 06:40:04PM +0300, Andi Gutmans wrote : 
 Right now the only thing which is implemented is that objects behave as 
 object handles and not as native types so when you're sending objects by 
 values or assigning objects the object handler is copied and not the object 
 itself. Also very partially implemented is syntax such as 
 $foo-method1()-method2();

Just tried it, really great.

?php
class a {
function b() {
return new c;
}
}

class c {
function d() {
echo Yo\n;
}
function e() {
return range(1,10);
}
}

$a = new a;
$a-b()-d();
print_r( $a-b()-e()[0]);
?

The last line gives parse error. So, I guess no yet supported? 

- Markus

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Zeev Suraski

At 19:37 19-08-01, Markus Fischer wrote:
 print_r( $a-b()-e()[0]);

The last line gives parse error. So, I guess no yet supported?

There are no plans to support this kind of dereferencing (arrays are still 
native types).

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Markus Fischer

On Sun, Aug 19, 2001 at 07:40:06PM +0300, Zeev Suraski wrote : 
 At 19:37 19-08-01, Markus Fischer wrote:
 print_r( $a-b()-e()[0]);
 
 The last line gives parse error. So, I guess no yet supported?
 
 There are no plans to support this kind of dereferencing (arrays are still 
 native types).

Oh ... sadly. I thought I read something about this in the draft.
Then again, could be having to less sleep when reading it :|

Is it like 'implementing this would be not trivial for the
advantage gained' or is it like 'no one has yet considered about
this syntax ?

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
  -All your scripts are belong to Zend-

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Zeev Suraski

At 19:48 19-08-01, Markus Fischer wrote:
On Sun, Aug 19, 2001 at 07:40:06PM +0300, Zeev Suraski wrote :
  At 19:37 19-08-01, Markus Fischer wrote:
  print_r( $a-b()-e()[0]);
  
  The last line gives parse error. So, I guess no yet supported?
 
  There are no plans to support this kind of dereferencing (arrays are still
  native types).

Oh ... sadly. I thought I read something about this in the draft.
Then again, could be having to less sleep when reading it :|

Is it like 'implementing this would be not trivial for the
advantage gained' or is it like 'no one has yet considered about
this syntax ?

The former more than the latter.  It also makes less conceptual sense.

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]