[PHP] Weird Behaviour of Array

2012-03-04 Thread Ruwan Pathmalal
Hi People, I confused with weird behaviour of array. Following is my script. ?php $array = array( '12_1'=array( 56=array( 23='23', 33='33') ), '12_5'=array(

Re: [PHP] Weird Behaviour of Array

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:01 +0530, Ruwan Pathmalal wrote: Hi People, I confused with weird behaviour of array. Following is my script. ?php $array = array( '12_1'=array( 56=array( 23='23', 33='33')

Re: [PHP] Weird Behaviour of Array

2012-03-04 Thread Stuart Dallas
On 4 Mar 2012, at 14:31, Ruwan Pathmalal wrote: I confused with weird behaviour of array. Following is my script. ?php $array = array( '12_1'=array( 56=array( 23='23', 33='33') ),

Re: [PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote: Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only) regardless of

Re: [PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-24 Thread Brett Davidson
Richard Lynch wrote: On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote: Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only)

[PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-23 Thread Brett Davidson
Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only) regardless of ownership, directory or umask settings. This works fine

[PHP] Weird behaviour with IE

2007-01-11 Thread André Medeiros
Hi list. I know this may be a bit out of topic, but I've decided to try. This website I'm maintaining opens just fine in firefox, and loads everything. However, the same doesn't happen in IE, since the status bar reads 1 item(s) remaining on most of the pages. That issue raises another

Re: [PHP] Weird behaviour with IE

2007-01-11 Thread Frank Arensmeier
And where does PHP come in here? The issue you describe could be anything - CSS related, html related, server related, php / asp / java you name it - maybe it is MS Explorer that sucks. Do some more research first and then - if you still feel that this might be related to PHP, you are

Re: [PHP] Weird behaviour with references to objects...

2002-11-09 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108175627.00b44880;mail.vogelsinger.at... This is clearly said in your PHP.ini file: ; Whether to enable the ability to force arguments to be passed by reference ; at function call time. This method is deprecated

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 03:36 08.11.2002, Tim Molendijk said: [snip] begin first code snippet ?php /* New Container object created. At the same time it sets a Child object in its $child attribute. (This is indicated by passing TRUE.) */

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Maxim Maletsky
...) It's to do with the way the assignment operator works.. -Original Message- From: Tim Molendijk [mailto:tawm;wanadoo.nl] Sent: Friday, November 08, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Weird behaviour with references to objects... Hi all, First of all

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108092657.02befe20;mail.vogelsinger.at... At 03:36 08.11.2002, Tim Molendijk said: [snip] Ahh - culprit 1: You said the container is creating a child instance - I assume it's

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 16:48 08.11.2002, Tim Molendijk spoke out and said: [snip] The problem is solved and I completely understand why now. This last thing is thanks to you Ernest. [snip] Glad it works - you're very welcome :) --

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
One more: At 16:48 08.11.2002, Tim Molendijk spoke out and said: [snip] This is not true in my case, because instead of doing: function add($child) { ... } I do: function add($child) { ... } and then call it with: $this-add($child); This has the same

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108165218.03238948;mail.vogelsinger.at... One more: True for now, but this is officially deprecated. Functions or methods accepting a reference are required to be prototyped that way - this helps you not to forget to

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 17:04 08.11.2002, Tim Molendijk spoke out and said: [snip] Yes I know it is poor programming habits to do like I did... But I have a reason for it. I have quite a lot methods that accept objects *optional*. So f.e.: --- class Product { var $language;

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108170633.00b8cb60;mail.vogelsinger.at... You might always simply omit the parameter when calling the function (you'll get a notice about that if enabled). You just cannot pass constants: function Product($language)

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 17:32 08.11.2002, Tim Molendijk spoke out and said: [snip] why do you think it won't be supported by future versions? all i do is passing an object by reference. because in this case this function always should accept its argument as a reference and

[PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
First of all I would like to say that I know this is a lot of text but I would be very pleased if you take a little time to read it nevertheless. The situation described below is not complicated at all... = Hello all, I'm dealing with this really weird problem

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Marco Tabini
I'm not sure if my answer is going to be of much help, but I think this has to do with the way PHP handles references and copies of objects--it uses what I understand is a lazy copy mechanism, and thus the results on object manipulations can yield odd results. There was a discussion on a similar

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tom Rogers
Hi, Friday, November 8, 2002, 12:36:03 PM, you wrote: TM First of all I would like to say that I know this is a lot of text but I TM would be very pleased if you take a little time to read it nevertheless. The TM situation described below is not complicated at all... TM

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Mike Mannakee
This sounds like a matter that ought to make it to the programmers who code PHP itself. In the meantime can you code around it now that you know the bug is there? Mike Marco Tabini [EMAIL PROTECTED] wrote in message news:1036725595.21741.868.camel;localhost.localdomain... I'm not sure if my

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
Hi all, First of all, thank you for the suggestions. Actually I accidently found a solution to the problem... Not that I understand it now, I just found a way to cope with it. By changing the first line of the first code snippet: $testContainer1 = new Container(TRUE); into:

RE: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Martin Towell
new object (if that's not too confusing...) It's to do with the way the assignment operator works.. -Original Message- From: Tim Molendijk [mailto:tawm;wanadoo.nl] Sent: Friday, November 08, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Weird behaviour with references to objects

[PHP] Weird :: behaviour

2002-07-12 Thread Alberto Serra
ðÒÉ×ÅÔ! ?php class a { function test() { return 1; } } class b { function test() { return 2; } } $myclass = 'a'; echo $myclass::test(); ? This will not work. It will produce in instead a: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';' Funnily

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
PROTECTED]] Sent: Tuesday, July 10, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right

Re: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Vitali Falileev
Hello Christian, 10 July, 2001, 18:44:53, you wrote: CD Z = Z is true right?? Yes, right, but Z = Z and your code makes next iteration, then $letter = AZ and AZ is LESS that Z, because A Z. :) CD then why this weird thing happens when I have this code: CD for($letter=A; $letter=Z ;

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) what

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
: [PHP] weird behaviour with (Z = Z) Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Philip Olson
(Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:13 AM To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) Try

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:45 AM To: Maxim Maletsky Cc: Jack Dempsey; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) I forget which version of PHP allows you to do the following, it may be 4.0.6 or maybe 4.0.7

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Christian Dechery
the archives...i think someone had a simple workaround using chr() to get what you want... jack -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Christian Dechery
: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Christian Dechery
]] Sent: Wednesday, July 11, 2001 1:13 AM To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL