[PHP] Is this a bug with date() ?

2010-06-30 Thread Michael Alaimo
I understand that technically there are more than 52 weeks in a year. Well at least google says 1 year = 52.177457 weeks. So I run the command: php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y'))); 53 As you can see the result is 53. Any thoughts on this? Mike -- PHP General Mailing List

RE: [PHP] Is this a bug?

2008-08-31 Thread Catalin Zamfir Alexandru | KIT Software CAZ
ur output-handler, and do something to our Eclipse PDT set-up so it can detect this as an error. -Original Message- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2008 3:25 PM Cc: php-general@lists.php.net Subject: Re: [PHP] Is this a bug? Jochem Maas wrot

Re: [PHP] Is this a bug?

2008-08-30 Thread Thijs Lensselink
Jochem Maas wrote: > T Lensselink schreef: >> Catalin Zamfir Alexandru, DATAGRAM SRL wrote: >>> Hello guys, >>> >>> I've been stalking on the list for some time. Didn't >>> have >>> anything to report/talk, until now. I have a code like this, maybe >>> you guys >>> can reproduce it,

Re: [PHP] Is this a bug?

2008-08-29 Thread Jochem Maas
T Lensselink schreef: Catalin Zamfir Alexandru, DATAGRAM SRL wrote: Hello guys, I've been stalking on the list for some time. Didn't have anything to report/talk, until now. I have a code like this, maybe you guys can reproduce it, with output buffering started: Echo 'something

RE: [PHP] Is this a bug?

2008-08-29 Thread Catalin Zamfir Alexandru, DATAGRAM SRL
t Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 10:56 AM To: Catalin Zamfir Alexandru, DATAGRAM SRL Cc: php-general@lists.php.net Subject: Re: [PHP] Is this a bug? On Fri, 2008-08-29 at 10:40 +0300, Catalin Zamfir Alexandru, DATAGRAM SRL wrote: > Echo 'something'

Re: [PHP] Is this a bug?

2008-08-29 Thread T Lensselink
Catalin Zamfir Alexandru, DATAGRAM SRL wrote: > Hello guys, > > I've been stalking on the list for some time. Didn't have > anything to report/talk, until now. I have a code like this, maybe you guys > can reproduce it, with output buffering started: > > Echo 'something'; > > Echo '

Re: [PHP] Is this a bug?

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 10:40 +0300, Catalin Zamfir Alexandru, DATAGRAM SRL wrote: > Echo 'something'; > > Echo 'another thing'; > > Echo 'something '\; I got the following output in both php5 and php4: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/rob/bleh.php on line

[PHP] Is this a bug?

2008-08-29 Thread Catalin Zamfir Alexandru, DATAGRAM SRL
Hello guys, I've been stalking on the list for some time. Didn't have anything to report/talk, until now. I have a code like this, maybe you guys can reproduce it, with output buffering started: Echo 'something'; Echo 'another thing'; Echo 'something '\; What

Re: [PHP] is this a bug?

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 02:24:49 -0300, Augusto Morais <[EMAIL PROTECTED]> wrote: > I dont know what is happening... > > > Can somebody clarify the situation for me? > > > here is the situation: > >i have 3 files: > > class.php > foo.php > bar.php > > // - class.php > class globalactions { >

Re: [PHP] is this a bug?

2007-08-20 Thread Tijnema
On 8/20/07, aflavio <[EMAIL PROTECTED]> wrote: > > Strange.. > > I'm return a include.. Not exactly... you're returning the return value of an include. Take this: var.php: foo.php > the file will be included in the scope of the class? Because this i cant use > the variables declared in the fil

Re: [PHP] is this a bug?

2007-08-20 Thread Tijnema
On 8/20/07, Augusto Morais <[EMAIL PROTECTED]> wrote: > I dont know what is happening... > > > Can somebody clarify the situation for me? > > > here is the situation: > > i have 3 files: > > class.php > foo.php > bar.php > > // - class.php > class globalactions { > > function include_file($m

[PHP] is this a bug?

2007-08-19 Thread Augusto Morais
I dont know what is happening... Can somebody clarify the situation for me? here is the situation: i have 3 files: class.php foo.php bar.php // - class.php class globalactions { function include_file($module) { if ($module) { return ("modules

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Santa
В сообщении от Воскресенье 30 Январь 2005 16:07 news.php.net написал(a): > > class A > { > var $name; > function A($str) > { >$this->name = $str; > } > } > > $arr = array(); > > //Put to array to objects of class A, > // where their attribute A::a is assigned a different value > //

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Jochem Maas
I did a little experimenting, and it looks like foreach is misbehaving, but may I just don't get it, anyway check this out (my php version and output are below): class A { var $name; function A($str) { $this->name = $str; } } // does not work as expected. $arr = array(); $a = &new A("qaz"); $arr[0]

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
> No > > news.php.net wrote: >> > >> class A >> { >> var $name; >> function A($str) >> { >>$this->name = $str; >> } >> } >> >> $arr = array(); >> >> //Put to array to objects of class A, >> // where their attribute A::a is assigned a different value >> //objects are assigned to an a

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Marek Kilimajer
No news.php.net wrote: class A { var $name; function A($str) { $this->name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference $a = &new A("qaz"); $arr[0] = &$a

[PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference $a = &new A("qaz"); $arr[0] = &$a; $a = &new A("wsx"); $arr[1] = &$a; //But watch the output!!! // It is "(

Re: [PHP] Is this a bug?

2005-01-13 Thread Jochem Maas
Rory McKinley wrote: Hi Probably a trivial question While trying to use mysqli on my dev machine, PHP returns the following: Fatal error: Trying to clone an uncloneable object of class mysqli After STFW I have found a solution that involves swiching off compatibility with Zend Engine 1 in php.ini.

[PHP] Is this a bug?

2005-01-13 Thread Rory McKinley
Hi Probably a trivial question While trying to use mysqli on my dev machine, PHP returns the following: Fatal error: Trying to clone an uncloneable object of class mysqli After STFW I have found a solution that involves swiching off compatibility with Zend Engine 1 in php.ini. However, after goin

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Raditha Dissanayake
Octavian Rasnita wrote: Thank you. I will try that solution if it works, but the question still remains... Is PHP so buggy? The 'here document' should work without a problem in PHP also. It probably wasn't a bug in php 4.3.4 but as greg has pointed out you probably should upgrade anyway. Here d

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 10:28:57 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > I would defiantly upgrade. Definitely too. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 17:58:27 +0200, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Is PHP so buggy? The 'here document' should work without a problem in PHP > also. The latest stable PHP 4 is rock solid from where I'm sitting. We have a bunch of Debian servers running 4.3.9 with no issues. > My c

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
need to upgrade php under Linux also... Teddy - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 5:29 PM Subject: Re: [PHP] Is this a bug in PHP 4.3.4? Octavian Rasnita wrote: >

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Raditha Dissanayake
Octavian Rasnita wrote: Hi all, I use the following program: function print_quotes () { output_reset_rewrite_vars(); echo << ... EOF; } I have tried this program under Fedora Core 2 in command line mode and on an Apache web server with the same results. Do you have suggestions for making this

[PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
Hi all, I use the following program: ... EOF; ob_flush(); } function print_quotes () { output_reset_rewrite_vars(); echo << ... EOF; } ?> The result printed is: Content-type: text/html X-Powered-By: PHP/4.3.4 ... ... Well, do you have any idea why PHP prints: ...instead of:

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Leif K-Brooks
Steve Todd wrote: Is this a bug or can we legally use it. Please RTFM before posting! http://php.net/variables.variable -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris Sherwood
1:27 PM Subject: [PHP] IS THIS A BUG? > Is it possible to define a variable, such as: > $foo = "bar"; > > and then do as follows to create a totally different variable: > $$foo = "text here"; > > this seems to mean $bar = "text here";. >

RE: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris W. Parker
Steve Todd on Wednesday, August 27, 2003 1:28 PM said: > Is this a bug or can we legally use it. It's legal. And here is an article that explains it: http://www.phphideout.com/articleview.php/5 (read near the bottom) Chris. -- PHP General Mailing List (http://w

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris Shiflett
--- Steve Todd <[EMAIL PROTECTED]> wrote: > Is it possible to define a variable, such as: > $foo = "bar"; > > and then do as follows to create a totally different variable: > $$foo = "text here"; > > this seems to mean $bar = "text here";. > > Is this a bug or can we legally use it. It is n

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread John W. Holmes
Steve Todd wrote: Is it possible to define a variable, such as: $foo = "bar"; and then do as follows to create a totally different variable: $$foo = "text here"; this seems to mean $bar = "text here";. Is this a bug or can we legally use it. Yes it's legal. http://us2.php.net/manual/en/lan

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Curt Zirzow
* Thus wrote Steve Todd ([EMAIL PROTECTED]): > Is it possible to define a variable, such as: > $foo = "bar"; > > and then do as follows to create a totally different variable: > $$foo = "text here"; > > this seems to mean $bar = "text here";. > > Is this a bug or can we legally use it. perf

[PHP] IS THIS A BUG?

2003-08-27 Thread Steve Todd
Is it possible to define a variable, such as: $foo = "bar"; and then do as follows to create a totally different variable: $$foo = "text here"; this seems to mean $bar = "text here";. Is this a bug or can we legally use it. Steve

Re: [PHP] Is this a BUG?

2002-06-23 Thread Andrew Brampton
PROTECTED]> Sent: Sunday, June 23, 2002 11:06 PM Subject: [PHP] Is this a BUG? Hi all, A couple of days ago, I've been starting to organize all my scripts into functions within libraries, and got into a problem this morning. Now, I don't know if this is a bug or it's just me

[PHP] Is this a BUG?

2002-06-23 Thread César Aracena
Hi all, A couple of days ago, I’ve been starting to organize all my scripts into functions within libraries, and got into a problem this morning. Now, I don’t know if this is a bug or it’s just me getting confused. I got the problem when calling two functions – one gets variables from the other

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
see this page: http://www.php.net/manual/en/language.types.integer.php Jule On Monday 27 May 2002 22:52, Jule wrote: > ps: sorry for all the typos... > > Jule > > On Monday 27 May 2002 22:51, Jule wrote: > > Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't > > bigint supp

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
ps: sorry for all the typos... Jule On Monday 27 May 2002 22:51, Jule wrote: > Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't > bigint support higher numbers than that? > i'm not sure but i think that's why your number gor cut down. > > Jule > > On Monday 27 May 2002 22:3

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't bigint support higher numbers than that? i'm not sure but i think that's why your number gor cut down. Jule On Monday 27 May 2002 22:36, zhaoxd wrote: > Hello all: > > Not long ago I wrote some php code i

[PHP] Is this a bug?

2002-05-27 Thread zhaoxd
Hello all: Not long ago I wrote some php code in my computer which had a apache server,and my php version is 4.0.5.The code as followed: $num = 2886732778; settype($num, integer); echo $num; And I found the num is -2147483648.attention,please:the

RE: [PHP] Is this a bug?

2001-08-20 Thread Mark Roedel
> -Original Message- > From: Ratko [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 1:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Is this a bug? > > > Please try this: > echo "996448234192168122"=="996448234192168125";

Re: [PHP] Is this a bug?

2001-08-20 Thread ERISEN, Mehmet Kamil
you are right. I tested with 99644xxx and 964 It printed A. However, if you are down to 644xxx is prints B which is correct. Perhaps a limitation of 16 digits. ? good catch --- Ratko <[EMAIL PROTECTED]> wrote: > Please try this: > echo "996448234192168122"=="996448234192168125"; > ?> >

[PHP] Is this a bug?

2001-08-20 Thread Ratko
Please try this: I get "true" as a result. How's that possible? But if I do: echo "996448234192168122"==="996448234192168125"; then I get "false" as expected. php 4.0.6, Debian Potatoe Linux. Does this happen only on my computer? thanks, ratko -- PHP General Mailing List (http://www.php.n

[PHP] Is this a bug?

2001-08-15 Thread Stig Nørgaard Jepsen
Hello, I have this code, which is a cooked down code of something bigger. So don't ask what it's for. The problem is that I can't get this script working the way I like it at all. Maybe it's a bug. Maybe you have another suggestion? Somewhere in the middle section i have wrote test1 and test2 as

Re: [PHP] Is this a bug ?

2001-02-05 Thread Sébastien ROZIER
OK sorry, I did put the "$", and adding = array() is still not working Thanx for any help Steve Werby wrote: > "Sébastien ROZIER" <[EMAIL PROTECTED]> wrote: > >> when I use this syntax: >> champs[0] is a string, which is the name of an HTML form variable. >> >> class test >>{ >>

Re: [PHP] Is this a bug ?

2001-02-05 Thread Steve Werby
"Sébastien ROZIER" <[EMAIL PROTECTED]> wrote: > when I use this syntax: > champs[0] is a string, which is the name of an HTML form variable. > > class test >{ >var champs; When initiating a variable you need to prefix it with "$". So the line above should be: var $champs; If it's an

[PHP] Is this a bug ?

2001-02-05 Thread Sébastien ROZIER
Hello, when I use this syntax: champs[0] is a string, which is the name of an HTML form variable. class test { var champs; function verif() { for ($i = 0; $i < count($this->champs) ; $i++) {