[PHP-DOC] #28019 [NEW]: language selection is a disaster

2004-04-16 Thread wimroffel at planet dot nl
From: wimroffel at planet dot nl
Operating system: Windows XP
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  language selection is a disaster

Description:

When I go to the page www.php.net/pcre I automatically end on the page
nl2.php.net/pcre or another dutch mirror. There is no way to switch this
off and there is no link on the dutch page to get the english page. 



I find this really very annoying. It is nice when a computer does some
thinking for you, but this is Big Brother watching you.


-- 
Edit bug report at http://bugs.php.net/?id=28019edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28019r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28019r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=28019r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=28019r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28019r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=28019r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=28019r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=28019r=support
Expected behavior:  http://bugs.php.net/fix.php?id=28019r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=28019r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=28019r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=28019r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28019r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=28019r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=28019r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=28019r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28019r=float


[PHP-DOC] #28019 [Opn-Bgs]: language selection is a disaster

2004-04-16 Thread derick
 ID:   28019
 Updated by:   [EMAIL PROTECTED]
 Reported By:  wimroffel at planet dot nl
-Status:   Open
+Status:   Bogus
 Bug Type: Documentation problem
 Operating System: Windows XP
 PHP Version:  Irrelevant
 New Comment:

The redirection to the mirrors is *necessary*, you can change the
language yourself by:

1. selecting it from the drop down box which exists on EVERY manual
page.

2. go to nl2.php.net/my.php and select the language you want.


Previous Comments:


[2004-04-16 04:00:15] wimroffel at planet dot nl

Description:

When I go to the page www.php.net/pcre I automatically end on the page
nl2.php.net/pcre or another dutch mirror. There is no way to switch
this off and there is no link on the dutch page to get the english
page. 



I find this really very annoying. It is nice when a computer does some
thinking for you, but this is Big Brother watching you.






-- 
Edit this bug report at http://bugs.php.net/?id=28019edit=1


[PHP-DOC] #16111 [Com]: IIS + PHP CGI == special administrative concerns

2004-04-16 Thread fdssfd at fdfd dot com
 ID:   16111
 Comment by:   fdssfd at fdfd dot com
 Reported By:  ramac10 at hotmail dot com
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Windows
 PHP Version:  4.2.1
 New Comment:

ey, mamon, deja de dar largas y entrega la solución ya!



Hey, sucker, give us the solution now!


Previous Comments:


[2003-05-12 14:06:43] [EMAIL PROTECTED]

The issue of IIS permissions is related to this report but is difficult
(at least for me) to come up with a straight forward comment on the
issue.  In doing some research it appears there are many factors that
come into play here most of which fall under IIS Administration.  A
few PHP related resources:



http://www.iis-resources.com/modules/news/article.php?storyid=4

http://forums.devshed.com/archive/5/2002/10/3/45479



Basically the IIS user (usually IUSR_MACHINENAME) needs permission to
read various files and directories, such as php.ini, docroot, and the
session tmp directory...  I don't feel comfortable documenting this
without raising potential security issues (aka chmod 777 everything!!!)
but will reopen for future comment.  Maybe someone has a nice solution
to this problem and actually knows the topic (I don't).



Also some people have treated this report as a support forum, well,
it's not.  Do not ask support questions here.



[2003-05-12 11:48:36] bcecile at nemak dot com

I was having the same problem, and the it was related to improper NT
permissions. Please be sure that your IUSR_MACHINENAME has read
permissions to the php.ini file. When I had this file in the c:\winnt
folder, only Administrators and the System accounts had read access.
This was fine while running PHP as an ISAPI module because IIS was
loading the DLL using the System account, but once I switched to a CGI
module, I started having problems. This was because IIS was now
launching the exe file as IUSR_MACHINENAME which is did not have
correct read access to the php.ini file.



[2003-02-16 19:19:26] XpeditionPilot at hotmail dot com

Some of the problems on this page I have fixed by making sure register
gloabal variables is turned on in php.ini.  Also an easy fix to the
Security alert is to make sure php.ini has security set to everyone. 
Be sure only to change security for that file, not for the winnt or
windows dir.  Also make sure cgi.force_redirect is set to 0, as
everyone has said.  Good luck.



[2003-01-20 01:16:36] [EMAIL PROTECTED]

This is now documented:

http://cvs.php.net/cvs.php/phpdoc/en/chapters/install.iis.xml



Thanks for the report :)



[2003-01-19 23:50:43] [EMAIL PROTECTED]

This is still a documentation problem, document that people should
check their php.ini is actually read by PHP.





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16111

-- 
Edit this bug report at http://bugs.php.net/?id=16111edit=1


[PHP-DOC] #27604 [Com]: The language of the manual of the CHM version is wrong.

2004-04-16 Thread byoon_ml at zing dot bytechase dot cx
 ID:   27604
 Comment by:   byoon_ml at zing dot bytechase dot cx
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: MS Windows
 PHP Version:  Irrelevant
 New Comment:

The newest version(14-Apr 2004) is also not fixed yet :-(


Previous Comments:


[2004-04-12 21:28:23] [EMAIL PROTECTED]

I commited a workarround.

I hope it's OK...



http://news.php.net/article.php?group=php.docarticle=969360028





[2004-03-16 14:47:14] misha at mbm dot nifty dot com

 I don't really understand whats the problem.

 But who can check this? Derick? Gabor?

I am sorry. I don't know who wrote that.

But I comfirmed it too. The php_manual_ja.chm(on 11 Mar 2004) is in
Simplified Chinese and English, not Japanese.

For a while, it thinks that it is good to send it back to the previous
version. How is it?



[2004-03-16 10:12:40] [EMAIL PROTECTED]

I don't really understand whats the problem.

But who can check this? Derick? Gabor?



[2004-03-15 07:40:02] [EMAIL PROTECTED]

Description:

Case CHM Manual of Japanese.

The language of the manual of the CHM version is wrong.

Is it Chinese now?



http://jp.php.net/get/php_manual_ja.chm/from/this/mirror








-- 
Edit this bug report at http://bugs.php.net/?id=27604edit=1


[PHP-DOC] News

2004-04-16 Thread rnicovic
WARNING: This e-mail has been altered by MIMEDefang.  Following this
paragraph are indications of the actual changes made.  For more
information about your site's MIMEDefang policy, contact
SCS-NET System administrator  [EMAIL PROTECTED].  For more information about 
MIMEDefang, see:

http://www.roaringpenguin.com/mimedefang/enduser.php3

An attachment named story.zip was removed from this document as it
constituted a security hazard.  If you require this document, please contact
the sender and arrange an alternate means of receiving it.

Is that from you?



[PHP-DOC] cvs: phpdoc /xsl version.xml

2004-04-16 Thread Hartmut Holzgraefe
hholzgraFri Apr 16 09:19:18 2004 EDT

  Modified files:  
/phpdoc/xsl version.xml 
  Log:
  forgot to add PHP 5 to the 'builtins' here :(
  
  
http://cvs.php.net/diff.php/phpdoc/xsl/version.xml?r1=1.15r2=1.16ty=u
Index: phpdoc/xsl/version.xml
diff -u phpdoc/xsl/version.xml:1.15 phpdoc/xsl/version.xml:1.16
--- phpdoc/xsl/version.xml:1.15 Fri Apr 16 08:57:23 2004
+++ phpdoc/xsl/version.xml  Fri Apr 16 09:19:16 2004
@@ -11,15 +11,15 @@
 
 versions
 
-  function name='array' from='PHP 3, PHP 4 '/
-  function name='echo' from='PHP 3, PHP 4 '/
-  function name='empty' from='PHP 3, PHP 4 '/
-  function name='eval' from='PHP 3, PHP 4 '/
-  function name='exit' from='PHP 3, PHP 4 '/
-  function name='isset' from='PHP 3, PHP 4 '/
-  function name='list' from='PHP 3, PHP 4 '/
-  function name='print' from='PHP 3, PHP 4 '/
-  function name='unset' from='PHP 3, PHP 4 '/
+   function name='array' from='PHP 3, PHP 4, PHP 5 '/
+  function name='echo' from='PHP 3, PHP 4, PHP 5 '/
+  function name='empty' from='PHP 3, PHP 4, PHP 5 '/
+  function name='eval' from='PHP 3, PHP 4, PHP 5 '/
+  function name='exit' from='PHP 3, PHP 4, PHP 5 '/
+  function name='isset' from='PHP 3, PHP 4, PHP 5 '/
+  function name='list' from='PHP 3, PHP 4, PHP 5 '/
+  function name='print' from='PHP 3, PHP 4, PHP 5 '/
+  function name='unset' from='PHP 3, PHP 4, PHP 5 '/
   function name=abs from=PHP 3, PHP 4 , PHP 5/
   function name=acos from=PHP 3, PHP 4 , PHP 5/
   function name=ada_afetch from=PHP 3/


Re: [PHP-DOC] cvs: phpdoc /dsssl version.dsl /xsl version.xml

2004-04-16 Thread Gabor Hojtsy
Hartmut, would it be possible to add PHP 5 to the functions supported 
in PHP 5? It would be nice.

Goba


[PHP-DOC] Documentation HOWTO: Instructions for MacOS X

2004-04-16 Thread Martin Jansen
Attached you'll find patch for the Documentation HOWTO that adds some
basic instructions for installing OpenJade and friends on MacOS X.
Those instructions have been posted on [EMAIL PROTECTED] a while
ago and I only put them into DocBook.  (I don't own Apple hardware, so I
can't test them myself.)

Have fun.

-- 
- Martin   Martin Jansen
http://martinjansen.com/
Index: tools.xml
===
RCS file: /repository/phpdoc/howto/tools.xml,v
retrieving revision 1.18
diff -u -r1.18 tools.xml
--- tools.xml   24 Dec 2003 19:52:41 -  1.18
+++ tools.xml   12 Apr 2004 13:34:40 -
@@ -394,6 +394,24 @@
 
/sect2
   /sect1
+
+  sect1 id=tools-on-macosx
+   titleTools on Mac OS X/title
+
+   para
+Users of Mac OS X can install the necessary tools using
+ulink url=url.macosx.fink;Fink/ulink. After Fink is 
+installed, the tools can be set up using the following commands:
+informalexample
+ programlisting
+apt-get openjade
+apt-get libxml
+apt-get xsltproc
+ /programlisting
+/informalexample
+   /para
+
+  /sect1
   
   sect1 id=tools-for-xsl
titleTools for XSL Stylesheets/title


Re: [PHP-DOC] Documentation HOWTO: Instructions for MacOS X

2004-04-16 Thread Nuno Lopes
Hi Martin,

Feel free to commit the patch!

Nuno


- Original Message - 
 Attached you'll find patch for the Documentation HOWTO that adds some
 basic instructions for installing OpenJade and friends on MacOS X.
 Those instructions have been posted on [EMAIL PROTECTED] a while
 ago and I only put them into DocBook.  (I don't own Apple hardware, so I
 can't test them myself.)
 
 Have fun.
 
 -- 
 - Martin   Martin Jansen
 http://martinjansen.com/


[PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Damien Seguy
damsFri Apr 16 14:49:27 2004 EDT

  Added files: 
/phpdoc/en/reference/xsl/functions  reference.xml 
  Log:
  initial translation
  

http://cvs.php.net/co.php/phpdoc/en/reference/xsl/functions/reference.xml?r=1.1p=1
Index: phpdoc/en/reference/xsl/functions/reference.xml
+++ phpdoc/en/reference/xsl/functions/reference.xml
?xml version=1.0 encoding=iso-8859-1?
!-- $Revision: 1.1 $ --
 reference id=ref.xsl
  titleXSL/title
  titleabbrevXSL/titleabbrev

  partintro
   section id=xsl.intro
reftitle.intro;
warn.experimental;
para
 L'extension XSL implémente le standard XSL, et fait
 des transformations XSLT à l'aide de la librairie libxslt.
/para
   /section

   section id=xsl.installation
reftitle.install;
para
 php; 5 inclut l'exntesion XSL par défaut, et elle peut être
 activée en ajoutant l'option à votre ligne de commande,
 lors de la compilation de php;. 
 literalDIR/literal est le dossier d'installation de 
 libxslt.
/para
   /section
   section id=xsl.examples
reftitle.examples;
para
 Dans cet exemple d'introduction, nous allons apprendre
 comment transformer un document XML en un document HTML.
/para
para
 example
  titleUn arbre XSL simple/title
  programlisting role=xml
![CDATA[
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:output method=html encoding=iso-8859-1 indent=no/
 xsl:template match=collection
  Hey! Welcome to my sweet CD collection!
  xsl:apply-templates/
 /xsl:template
 xsl:template match=cd
  h1xsl:value-of select=title//h1
  h2by xsl:value-of select=artist//h2
  h3 - xsl:value-of select=year//h3
 /xsl:template
/xsl:stylesheet
]]
  /programlisting
 /example
 example
  titleL'arbre XML correspondant/title
  programlisting role=xml
![CDATA[
collection
 cd
  titlePHP Rock/title
  artistJoe Coder/artist
  year2003/year
 /cd
 cd
  titleSquashing Typos on a Winter's Eve/title
  artistkennyt/artist
  year2004/year
 /cd
/collection
]]
  /programlisting
 /example
/section
example
 titleTransformation de XML en HTML/title
 simpara
  Le code php; suivant utilise les extensions 
  XML et XSL pour transformer le code XML en 
  du code HTML présentable.
 /simpara
 programlisting role=php
![CDATA[
?php
/* Chargement des sources XML */
$xml = new DomDocument; // dans /ext/dom
$xml-load('example.xml');

$xsl = new DomDocument;
$xsl-load('example.xsl');

/* Configuration du transformateur */
$proc = new xsltprocessor;
$proc-importStyleSheet($xsl); // Importation des règles XSL
echo $proc-transformToXML($xml); // Transformation
?
]]
 /programlisting
 simpara
  Cela doit produire le code HTML suivant : 
 /simpara
 screen
![CDATA[
Hey! Welcome to my sweet CD collection!

h1PHP Rock/h1
h2by Joe Coder/h2
h3 - 2003/h3

h1Squashing Typos on a Winter's Eve/h1
h2 by kennyt/h2
h3 - 2004/h3
]]
 /screen
/example
   /section
  /partintro

reference.xsl.functions;

 /reference
!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:../../../manual.ced
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--


Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Derick Rethans
On Fri, 16 Apr 2004, Damien Seguy wrote:

 dams  Fri Apr 16 14:49:27 2004 EDT

   Added files:
 /phpdoc/en/reference/xsl/functionsreference.xml
   Log:
   initial translation

Into the english directory? :)

Derick


[PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Damien Seguy
damsFri Apr 16 15:08:55 2004 EDT

  Removed files:   
/phpdoc/en/reference/xsl/functions  reference.xml 
  Log:
  reverting ading
  


[PHP-DOC] cvs: phpdoc /howto howto.ent tools.xml

2004-04-16 Thread Martin Jansen
mj  Fri Apr 16 16:20:21 2004 EDT

  Modified files:  
/phpdoc/howto   howto.ent tools.xml 
  Log:
  * Adding installation instructions for Mac OS X.
  
  
http://cvs.php.net/diff.php/phpdoc/howto/howto.ent?r1=1.23r2=1.24ty=u
Index: phpdoc/howto/howto.ent
diff -u phpdoc/howto/howto.ent:1.23 phpdoc/howto/howto.ent:1.24
--- phpdoc/howto/howto.ent:1.23 Mon Feb  9 19:55:57 2004
+++ phpdoc/howto/howto.ent  Fri Apr 16 16:20:20 2004
@@ -52,6 +52,7 @@
 !ENTITY url.docbookmirror2 
http://public.planetmirror.com/pub/sourceware/docbook-tools/docware/SRPMS/;
 !ENTITY url.win.cygwin http://www.cygwin.com/;
 !ENTITY url.openjade   http://openjade.sourceforge.net/;
+!ENTITY url.macosx.finkhttp://fink.sourceforge.net/;
 
 !-- For CVS section --
 !ENTITY url.cvshttp://www.cvshome.org/;
http://cvs.php.net/diff.php/phpdoc/howto/tools.xml?r1=1.18r2=1.19ty=u
Index: phpdoc/howto/tools.xml
diff -u phpdoc/howto/tools.xml:1.18 phpdoc/howto/tools.xml:1.19
--- phpdoc/howto/tools.xml:1.18 Wed Dec 24 14:52:41 2003
+++ phpdoc/howto/tools.xml  Fri Apr 16 16:20:20 2004
@@ -394,6 +394,24 @@
 
/sect2
   /sect1
+
+  sect1 id=tools-on-macosx
+   titleTools on Mac OS X/title
+
+   para
+Users of Mac OS X can install the necessary tools using
+ulink url=url.macosx.fink;Fink/ulink. After Fink is 
+installed, the tools can be set up using the following commands:
+informalexample
+ programlisting
+apt-get openjade
+apt-get libxml
+apt-get xsltproc
+ /programlisting
+/informalexample
+   /para
+
+  /sect1
   
   sect1 id=tools-for-xsl
titleTools for XSL Stylesheets/title


Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Gabor Hojtsy
Erm, Damien, could you please readd the English file?

Goba

Damien Seguy rta:
dams		Fri Apr 16 15:08:55 2004 EDT

  Removed files:   
/phpdoc/en/reference/xsl/functions	reference.xml 
  Log:
  reverting ading
  



Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Derick Rethans
On Fri, 16 Apr 2004, Gabor Hojtsy wrote:

 Erm, Damien, could you please readd the English file?

There was no english file.

Derick


Re: [PHP-DOC] cvs: phpdoc /en/reference/xsl/functions reference.xml

2004-04-16 Thread Gabor Hojtsy
Erm, Damien, could you please readd the English file?
There was no english file.
Right, I have not seen that this happened in the functions folder.

Goba


[PHP-DOC] #19692 [Dup-Bgs]: register_shutdown_function documentation unclear about output

2004-04-16 Thread sniper
 ID:   19692
 Updated by:   [EMAIL PROTECTED]
 Reported By:  asd at suespammers dot org
-Status:   Duplicate
+Status:   Bogus
 Bug Type: Documentation problem
 Operating System: n/a
 PHP Version:  4.2.3
 New Comment:

use 'bogus' status..




Previous Comments:


[2004-02-25 09:54:52] [EMAIL PROTECTED]

This a duplicate to #20447, closing this bug but leaving the other
open.  Will try to figure out in which cases output may still be sent
(perhaps today).



[2003-06-20 14:30:07] dchatenay at hotmail dot com

Sorry, I meant bug #20447.



[2003-06-20 14:29:23] dchatenay at hotmail dot com

I don't know how active this bug is. It looks related to bug #10447:
when you register a shutdown function, php used to release the
connection and execute the shutdown function in the background (thus
preventing you from sending any output obviously).

  Now it looks like the execution of the shutdown function will keep
the connection alive, and you may output some information.

  This is annoying since it used to work fine until recently, and I
can't find out what triggered this change in behaviour.



[2002-10-01 10:04:42] asd at suespammers dot org

The register_shutdown_function documentation makes it sound like trying
to output to the web browser during a shutdown function is a no-op.



However, it seems that it isn't always. Sometimes the text goes out
fine; sometimes it goes out after, e.g., zlib compression, etc.



The documenation should probably be changed to state the behavior of
output done by a shutdown function is undefined, and strongly warn
against letting it happen.




-- 
Edit this bug report at http://bugs.php.net/?id=19692edit=1


Re: [PHP-DOC] Documentation HOWTO: Instructions for MacOS X

2004-04-16 Thread ali
Hi Martin,

shouldn't the fink commands be apt-get install foo ?
Note the install command.

Ali

Am Fr, den 16.04.2004 schrieb Nuno Lopes um 20:09:
 Hi Martin,
 
 Feel free to commit the patch!
 
 Nuno
 
 
 - Original Message - 
  Attached you'll find patch for the Documentation HOWTO that adds some
  basic instructions for installing OpenJade and friends on MacOS X.
  Those instructions have been posted on [EMAIL PROTECTED] a while
  ago and I only put them into DocBook.  (I don't own Apple hardware, so I
  can't test them myself.)
  
  Have fun.
  
  -- 
  - Martin   Martin Jansen
  http://martinjansen.com/
-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.fsf.org/philosophy/no-word-attachments.de.html


[PHP-DOC] #20993 [Com]: Element value changes without asking

2004-04-16 Thread php dot devel at homelinkcs dot com
 ID:   20993
 Comment by:   php dot devel at homelinkcs dot com
 Reported By:  henrik dot gebauer at web dot de
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Any
 PHP Version:  4.0CVS-2002-12-13
 New Comment:

I don't wish to generate unnecessary traffic, however, I

have been unable to find any reference to this issue in

the current documentation at http://www.php.net/manual. 

Since, it's been well over a year since this issue (and

several related bug reports) has been brought up, can

anyone give me an update on this it's status?   I consider

this a serious problem because, IMHO, the behavior seems

illogical from a high-level view of references and copies

(cf (from chapter 7 of the manual): [A]fter assigning one

variable's value to another, changing one of those

variables will have no effect on the other.).   For that

reason, furthermore, lack of knowedge of this behavior

can make code affected by it quite difficult to debug.


Previous Comments:


[2002-12-18 03:25:45] [EMAIL PROTECTED]

We have discussed this issue and it will put a considerable slowdown on
php's performance, to fix this properly.



Therefore this behavior will be documented.



[2002-12-13 14:51:47] [EMAIL PROTECTED]

This bug has a lot to do with the bug reports mentioned below.



http://bugs.php.net/bug.php?id=6417

http://bugs.php.net/bug.php?id=7412

http://bugs.php.net/bug.php?id=15025



As a workaround, you can write as following to avoid this issue.



function theFunction($array) {

$array = unserialize(serialize($array));



$array[0] = 2;

}





[2002-12-13 12:50:26] [EMAIL PROTECTED]

Verified with 4.2.3





[2002-12-13 12:42:22] [EMAIL PROTECTED]

Verified and added testcase to CVS



[2002-12-13 12:00:37] henrik dot gebauer at web dot de

I create an array an then a reference to an element of that array.

Then the array is passed to a function (by value!) which changes the
value of the element.

After that, the global array has also another value.



I would expect this behaviour if I passed the array by reference but I
did not.



?php



$array = array(1);



$reference = $array[0];



echo $array[0], 'br';

theFunction($array);



echo $array[0], 'br';



function theFunction($array) {

$array[0] = 2;

}



?




-- 
Edit this bug report at http://bugs.php.net/?id=20993edit=1