Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Moriyoshi Koizumi
Just FYI, here's a relevant commit made by Andi two years ago: http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.222&r2=1.223&ty=h Moriyoshi "John Coggeshall" <[EMAIL PROTECTED]> wrote: > Ah, I understand now... This perhaps in a documentation problem then > after all, as there is no way to

RE: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread John Coggeshall
Ah, I understand now... This perhaps in a documentation problem then after all, as there is no way to change this behavior cleanly that I can see... What about making a copy of the array and all of the references associated with that array instead of just using the real array? Just a thought. Jo

Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Moriyoshi Koizumi
Hi, > $a = array(1,2,3); > #$r =& $a; > echo "current before foreach: " . current($a) . "\n"; > foreach($a as $b) { > echo "- value in cycle: " . $b . "\n"; > echo "-- current in cycle: " . current($a) . "\n"; > } > echo "current before foreach: " . current($a) . "\n"; > ?> > > Try it,

Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Vaclav Dvorak
John Coggeshall wrote: To answer part of your question: What the documentation means is that $val) { $val = "newval"; } ?> Will not change every element in the $foo array to "newval". However, although $foo cannot be modified by modifying $key and $val the internal array pointer WILL increm

RE: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread John Coggeshall
To answer part of your question: >One more thing: whether this bug is fixed or not, the >documentation must >be clarified! I don't know about you, but I simply don't >understand what >it's supposed to say. Quoting: "Note: Also note that foreach operates What the documentation means is that

[PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Vaclav Dvorak
Hi, there's a problem with foreach when the array it iterates over is a reference or has a reference: contrary to what was clearly written in the documentation for over two years until about two months ago, the foreach doesn't make a copy of the array, and so nested foreach's don't work becaus

Re: [PHP-DEV] CVS Account Request: hitweb

2003-01-21 Thread Xavier Spriet
On Tue, 2003-01-21 at 18:57, Brian FRAVAL wrote: > Because I want a mail @php.net. Heck... I want one of these too !! > And I want help you for translating the documentation. It would be nice to know in what language you intend to work on the translation... ? -- Xavier Spriet <[EMAIL PROTECTE

[PHP-DEV] CVS Account Request: hitweb

2003-01-21 Thread Brian FRAVAL
Because I want a mail @php.net. And I want help you for translating the documentation. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] SNMP value retrieval

2003-01-21 Thread Johann Hanne
> *) I am not completely understanding what you want > with the SNMP_VALUE_METHODPLAIN. Is this the BER encoded > value?? If so that is a not wanted feature, IMHO. Nope. It will return the value as a plain string, very much like it's done with SNMP_VALUEMETHOD_LIBRARY set. However it will ALWAYS

Re: [PHP-DEV] Re: Problem with compiling Zend 1

2003-01-21 Thread Andrey Hristov
Downloading php5 atm. I know that HEAD is for ZE2 :)) Andrey - Original Message - From: "Harald Radi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 8:06 PM Subject: [PHP-DEV] Re: Problem with compiling Zend 1 > HEAD is php5 and not meant to compile with

[PHP-DEV] Re: Problem with compiling Zend 1

2003-01-21 Thread Harald Radi
HEAD is not meant to compile with ZE1, check out the PHP_4_3 branch if you need ZE1 builds. harald "Andrey Hristov" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:<01c701c2c172$99b03650$1601a8c0@andreywin>... > Hi, > I am still with ZE1 - php4 (HEAD) > I have this problem : > /home/andrey/

[PHP-DEV] Re: Problem with compiling Zend 1

2003-01-21 Thread Harald Radi
HEAD is php5 and not meant to compile with ZE1, check out PHP_4_3 if you need ZE1 builds. harald. "Andrey Hristov" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 01c701c2c172$99b03650$1601a8c0@andreywin">news:01c701c2c172$99b03650$1601a8c0@andreywin... > Hi, > I am still with ZE1 - php4 (HEAD)

[PHP-DEV] Problem with compiling Zend 1

2003-01-21 Thread Andrey Hristov
Hi, I am still with ZE1 - php4 (HEAD) I have this problem : /home/andrey/development/php4/ext/standard/basic_functions.c: In function `php_simple_ini_parser_cb': /home/andrey/development/php4/ext/standard/basic_functions.c:2827: `ZEND_INI_PARSER_POP_ENTRY' undeclared (first use in this functio

[PHP-DEV] ADT alpha 1

2003-01-21 Thread Sterling Hughes
Hi, ADT alpha 1 is available! ADT is a PHP extension that provides a collection of Abstract Data Types (ADT), including trees, graphs, queues, heaps, sets and stacks. You can find more information about adt, and installing alpha 1, at http://www.php.net/~sterling/adt/. -Sterling -- "The t

[PHP-DEV] WARNING: php.net website errors

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Anyone with php.net web authoring access please note major issue with search pages currently the system is returning results with no content: http://www.php.net/search.php?show=manual&lang=en&pattern=testing Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] mobile: 0419

Re: [PHP-DEV] domxml behaviour changed/broken?

2003-01-21 Thread Christian Stocker
On Tue, 2003-01-21 at 12:25, Jan Schneider wrote: > Hi, > > since when can the dump_node() method only be applied to DomDocument nodes > and not to DomNodes as it has always been the case and is still documented > in the manual? it was never meant to be applied on a DomNode and it crashed under c

[PHP-DEV] CVS Account Request: novotnyr

2003-01-21 Thread Robert Novotny
I would like to participate on the Slovak translation of the PHP documentation. Therefore I would like to be granted access to phpdoc part of CVS. I've already got in touch with Slovak translation team leader, [EMAIL PROTECTED] I come from Kosice, Slovakia and currently I study Computer Science

Re: [PHP-DEV] [PATCH] SNMP value retrieval

2003-01-21 Thread Harrie Hazewinkel
HI, I have reviewed your patch and some comments I have are below, in perticular I was wondering what would be best to do so. *) I am not completely understanding what you want with the SNMP_VALUE_METHODPLAIN. Is this the BER encoded value?? If so that is a not wanted feature, IMHO. *) The obje

[PHP-DEV] domxml behaviour changed/broken?

2003-01-21 Thread Jan Schneider
Hi, since when can the dump_node() method only be applied to DomDocument nodes and not to DomNodes as it has always been the case and is still documented in the manual? Running PHP 4.3.1-dev cli. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http

[PHP-DEV] variable scope

2003-01-21 Thread michel
Hi, I'm coding in PHP5 (ok, it is in pre-alpha-beta-other). I have read about Function scope and if I do not wrong: Class Foo { Function Bar() { print "Bar"; } Function Bar2() { Bar(); } } $f = new Foo(); $f->Bar2(); and it write "Bar". I want to know if this type of scope is equal f

Re: [PHP-DEV] function not found

2003-01-21 Thread Andrey Hristov
main is called the global scope. In C the programs start their execution in function main. Because PHP is not restricted in this way the global scope except the functions (and methods) is called function.main. However there is no such documentation on the web. You may fill bug report for documenta