[PHP] Re: IE 10 bug? Ignore this post - definitely OT

2013-04-26 Thread Jim Giner
On 4/24/2013 2:01 PM, Jim Giner wrote: I know - it sounds OT, but listen. I have a form that has a sign in button which attempts to sent the user to a form in a password-protected folder. In order to get there the user must provide credentials. Once there the receiving script simply sets a

[PHP] Expected behaviour or bug?

2012-09-17 Thread Camilo Sperberg
a function locally or have I just happen to found a little bug? unreal4u-MBP:~ unreal4u$ php --version PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20 2012 17:05:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.3.0dev

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Frank Arensmeier
. Is it really the intention to unset a global variable inside a function locally or have I just happen to found a little bug? unreal4u-MBP:~ unreal4u$ php --version PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20 2012 17:05:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Simon J Welsh
unsetting it in the function. Is it really the intention to unset a global variable inside a function locally or have I just happen to found a little bug? unreal4u-MBP:~ unreal4u$ php --version PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20 2012 17:05:20) Copyright (c) 1997-2012 The PHP Group

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Camilo Sperberg
that the global variable is set, despite unsetting it in the function. Is it really the intention to unset a global variable inside a function locally or have I just happen to found a little bug? unreal4u-MBP:~ unreal4u$ php --version PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20 2012

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Matijn Woudt
is NOT set'); } When executing the above test, you will get printed that the global variable is set, despite unsetting it in the function. Is it really the intention to unset a global variable inside a function locally or have I just happen to found a little bug? unreal4u-MBP:~ unreal4u$ php

[PHP] PHP/Cairo-0.2.0 Build Bug

2011-07-21 Thread Thomas Dineen
Gentle People: When I try to build the PHP/Cairo Extension (version cairo-0.2.0) with the following command: pecl install channel://pecl.php.net/cairo-0.2.0 on Solaris 10 Intel, I get the following errors: /tmp/pear/temp/Cairo/cairo_surface.c, line 706: undefined symbol:

RE: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread Tommy Pham
-Original Message- From: Gary [mailto:php-gene...@garydjones.name] Sent: Tuesday, October 19, 2010 11:38 PM To: php-general@lists.php.net Subject: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem Jonathan Sachs wrote: I've got a script which originally

[PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread Jonathan Sachs
On Wed, 20 Oct 2010 08:37:55 +0200, php-gene...@garydjones.name (Gary) wrote: Better. I can tell you how to solve it: $a = array('a', 'b','c'); foreach($a as $row){ //you don't have to do anything here } unset($row); // THIS IS KEY! print_r($a); foreach($a as

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread David Harkness
On Wed, Oct 20, 2010 at 5:00 AM, Tommy Pham tommy...@gmail.com wrote: Shouldn't that be $row = null since unset will remove the last value, not just removing the variable also, from the array whereas the $row = null will tell the reference pointer that it doesn't point to a value. No, that

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread Tommy Pham
On Wed, Oct 20, 2010 at 10:44 AM, David Harkness davi...@highgearmedia.com wrote: On Wed, Oct 20, 2010 at 5:00 AM, Tommy Pham tommy...@gmail.com wrote: Shouldn't that be $row = null since unset will remove the last value, not just removing the variable also, from the array whereas the $row =

[PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 00:38:17 +0200, fakessh fake...@fakessh.eu wrote: On Sat, 24 Apr 2010 06:00:55 +0200, fakessh fake...@fakessh.eu wrote: On Thu, 22 Apr 2010 17:58:43 +0200, fakessh fake...@fakessh.eu wrote: On Thu, 22 Apr 2010 13:15:42 +0200, A.L.E.C a...@alec.pl wrote: fakessh wrote:

Re: [PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 16:16:00 +0200, fakessh fake...@fakessh.eu wrote: On Sun, 25 Apr 2010 00:38:17 +0200, fakessh fake...@fakessh.eu wrote: On Sat, 24 Apr 2010 06:00:55 +0200, fakessh fake...@fakessh.eu wrote: On Thu, 22 Apr 2010 17:58:43 +0200, fakessh fake...@fakessh.eu wrote: On Thu, 22 Apr

[PHP] Fileinfo and MSWord bug

2009-05-16 Thread b
don't see anything about it at bugs.php.net and I'd rather try to figure out if the problem is PHP-related before filing a bug. For now, I'm doing the following: $fi = new finfo(FILEINFO_MIME, FINFO_PATH); $type = $fi-file($file['tmp_name']); $split = explode(' ', $type); $type = $split[0

[PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Pawel Rutkowski
Hello, I try to run script below with PHP4 and it works. --TEST-- Test session_encode() function : variation --SKIPIF-- ?php include('skipif.inc'); ? --FILE-- ?php ob_start(); echo *** Testing session_encode() : variation ***\n; var_dump(session_start()); $array = array(1,2,3); $array[foo]

Re: [PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Daniel Brown
Hi, Pawel; On Sat, Dec 27, 2008 at 05:40, Pawel Rutkowski rut...@freelance-worker.net wrote: [snip!] But in PHP5 x64 I have errors like: /root/src/php-5.2.6/Zend/zend_hash.c(247) : Freeing 0x0E76BC50 (75 bytes), script=ext/session/tests/session_encode_variation5.phpt [Sat Dec 27

[PHP] PEAR ExcelWriter corrupt / Bug Report CAPTCHA borked

2008-11-28 Thread Richard Lynch
The PEAR tarball for ExcelWriter is corrupt for 0.9.1, 0.9.0 and 0.8.0 The PEAR bug-reporting system CAPTHCA won't accept the correct answers. In desparation, I'm reporting this here, hoping somebody from PEAR reads this and can do something... $ tar -xvf Spreadsheet_Excel_Writer-0.9.1.tar

RE: [PHP] Is this a bug?

2008-08-31 Thread Catalin Zamfir Alexandru | KIT Software CAZ
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 wrote: T Lensselink schreef

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, with output buffering

[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 br /'\;

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 br /'\; 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

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 'another

RE: [PHP] Is this a bug?

2008-08-29 Thread Catalin Zamfir Alexandru, DATAGRAM SRL
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'; Echo 'another thing'; Echo

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

[PHP] Division [maybe a bug]

2008-05-10 Thread jo opp
Hello! $var1= 2155243640%31104000; $var2= 2147309244%31104000; echo $var1 // Return -24651656 echo $var2 // Return 1133244 $var2 return the correct result, but $var1 is wrong (the correct result is 9067640) ¿? Thanks for the help -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Looks like a bug with Smarty

2008-01-18 Thread GoWtHaM NaRiSiPaLli
got the answer from you clive :) Thanks On Jan 18, 2008 1:02 PM, clive [EMAIL PROTECTED] wrote: if ($question == 'php') domail('phplist',$question); if ($question == 'smarty') domail('smartylist',$question); Hi All, I using html_options smarty tag to output an associative

Re: [PHP] Looks like a bug with Smarty

2008-01-18 Thread Richard Lynch
You'll have to take this up with the Smarty folks, as it's very smarty-specific, and not (PHP-)General at all... On Fri, January 18, 2008 12:16 am, GoWtHaM NaRiSiPaLli wrote: Hi All, I using html_options smarty tag to output an associative array in select drop down. Here a sample

[PHP] Looks like a bug with Smarty

2008-01-17 Thread GoWtHaM NaRiSiPaLli
Hi All, I using html_options smarty tag to output an associative array in select drop down. Here a sample associative array: array(5) { [CN-PEK-KEJ]= array(1) { [198]= string(7) TechTst } [IE-DUB-GAS]= array(2) { [177]= string(10) store room [39]= string(10)

Re: [PHP] Looks like a bug with Smarty

2008-01-17 Thread clive
if ($question == 'php') domail('phplist',$question); if ($question == 'smarty') domail('smartylist',$question); Hi All, I using html_options smarty tag to output an associative array in select drop down. Here a sample associative array: array(5) { [CN-PEK-KEJ]= array(1) {

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($module) {

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: ?php return bar; ? foo.php ?php function include_bar() { return include bar.php } echo include_bar(); // echoes bar the file

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 { function

Re: [PHP] This is a bug?

2007-08-20 Thread Daniel Brown
On 8/20/07, Augusto Morais [EMAIL PROTECTED] wrote: [snip!] // - foo.php include lib/clients.class.php; $clients = new clients(); //instatiating the clients class [snip again!] var_dump($clients); //i dont get the object here. I got NULL!!! why?!?!!? problem: When the method(include_file)

[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

[PHP] This is 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

[PHP] Re: PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Colin Guthrie
Colin Guthrie wrote: Hi, I've noticed a bug with PHP 5.2.0 when dealing with sessions and posting quite large forms. I've attached a file that highlights the bug. Can people test this please and if it is confirmed i'll post upsteam. Just want to rule out my distro's packaging being

Re: [PHP] PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Frank J. Schima
The ID never changed for me. PHP 5.2.0 Apache 1.3.33 Mac OS X 10.4.8 On Nov 16, 2006, at 9:28 AM, Colin Guthrie wrote: I've noticed a bug with PHP 5.2.0 when dealing with sessions and posting quite large forms. I've attached a file that highlights the bug. Can people test this please

RE: [PHP] Re: PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Edward Kay
, I've noticed a bug with PHP 5.2.0 when dealing with sessions and posting quite large forms. I've attached a file that highlights the bug. Can people test this please and if it is confirmed i'll post upsteam. Just want to rule out my distro's packaging being at fault I am using

[PHP] Re: PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Colin Guthrie
Frank J. Schima wrote: The ID never changed for me. PHP 5.2.0 Apache 1.3.33 Mac OS X 10.4.8 Cheers mate. I guess that could mean its: * Apache 2 thing * x86_64 thing * suhosin thing * mandriva thing More tests to narrow those down would be appreciated if anyone has appropriate

[PHP] Re: PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Colin Guthrie
Edward Kay wrote: Have you checked your error_log? I've had this problem when the wrong permissions were set on /var/lib/php/session which meant PHP couldn't write it's session files and hence generated a new ID each time. The error_log will tell you if this is the case. No, but the problem

Re: [PHP] PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Jürgen Wind
Colin Guthrie-6 wrote: Hi, I've noticed a bug with PHP 5.2.0 when dealing with sessions and posting quite large forms. I've attached a file that highlights the bug. Can people test this please and if it is confirmed i'll post upsteam. Just want to rule out my distro's packaging

[PHP] Re: [RESOLVED] PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Colin Guthrie
Jürgen Wind wrote: as you mentioned using hardened php: maybe you have to adjust hphp.post.max_value_length = and/or some other settings Thanks to Mr Oden Eriksson @ Mandriva, he pointed out that I needed to up the value for suhosin.request.max_vars from the default of 200. So you were very

Re: [PHP] Is it a bug ?

2006-05-14 Thread Fourat Zouari
ok this is returning the retrived data from open sockets : http://pastebin.com/716768 this is returning an empty string : http://pastebin.com/716767 On 5/14/06, chris smith [EMAIL PROTECTED] wrote: On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: Code 1 : -

Re: [PHP] Is it a bug ?

2006-05-14 Thread Fourat Zouari
On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: ok this is returning the retrived data from open sockets : http://pastebin.com/716768 this is returning an empty string : http://pastebin.com/716767 it's not a bug :) i shoul wait for stream to be returned, i use :

Re: [PHP] Is it a bug ?

2006-05-14 Thread cajbecu
$var = file (http://www.some.server.net:someport;); then $var=explode ... bla bla.. that never crash. cheers, cajbecu On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: ok this is returning the retrived data from open sockets :

Re: [PHP] Is it a bug ?

2006-05-14 Thread Fourat Zouari
cajbecu, am talking about non-blocking sockets, that's a simple blocking socket On 5/14/06, cajbecu [EMAIL PROTECTED] wrote: $var = file (http://www.some.server.net:someport;); then $var=explode ... bla bla.. that never crash. cheers, cajbecu On 5/14/06, Fourat Zouari [EMAIL PROTECTED]

Re: [PHP] Is it a bug ?

2006-05-14 Thread Richard Lynch
On Sun, May 14, 2006 8:49 am, Fourat Zouari wrote: On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: it's not a bug :) i shoul wait for stream to be returned, i use : while(($buff = stream_get_contents($socket[$i]))==); echo $buff;

[PHP] Is it a bug ?

2006-05-13 Thread Fourat Zouari
Code 1 : - var_dump(stream_get_contents($rr)); - Output 1 - string(185) HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html Pragma: no-cache Cache-Control: no-cache 0: Accepted

Re: [PHP] Is it a bug ?

2006-05-13 Thread chris smith
On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: Code 1 : - var_dump(stream_get_contents($rr)); - Output 1 - string(185) HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html

Re: [PHP] Is it a bug of CakePHP?

2006-04-08 Thread John Wells
Pham Huu Le Quoc Phuc a écrit : I catch an error, could you tell me if you have some ideas? Error message: Undefined index: start_date in c:\Inetpub\wwwroot\Cake\app\controllers\dsptrainings_controller.php on line 33 PHP is telling you that what you are trying to access

[PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } class DsptrainingsController extends AppController {

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread nicolas figaro
Pham Huu Le Quoc Phuc a écrit : I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } did you try your sql

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
Thanks for relying! But, Do not have anyway to solve this problem. - Original Message - From: nicolas figaro [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, April 07, 2006 3:49 PM Subject: Re: [PHP] Is it a bug of CakePHP? Pham Huu Le Quoc Phuc a écrit : I catch

[PHP] which version fixes bug 29922

2006-02-07 Thread Daniel Bondurant
I am trying to track down which version of php4 has the fix for bug 29922. I am running 4.3.11 which came out after the bug was fixed in CVS, but I seem to be having the problem listed in the bug. For various reason, I can't upgrade to a later version very easily. thanks - daniel -- PHP

Re: [PHP] PHP 4.4.1 array_set_current bug?

2005-12-18 Thread Curt Zirzow
On Fri, Dec 16, 2005 at 09:09:08AM -0500, Eric Butera wrote: Hello all, I have an image gallery script I created and I seem to be having some difficulties with it. I am using this script on many different platforms and different PHP versions. I have tried it on 4.4.0 (linux) and

[PHP] PHP 4.4.1 array_set_current bug?

2005-12-16 Thread Eric Butera
Hello all, I have an image gallery script I created and I seem to be having some difficulties with it. I am using this script on many different platforms and different PHP versions. I have tried it on 4.4.0 (linux) and 4.3.11(entrophy osx). The problem is with PHP version 4.4.1 from what I can

[PHP] RE: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
-Original Message- From: Rob Richards [mailto:[EMAIL PROTECTED] Sent: 07 December 2005 04:21 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: XmlWriter::writeDTD bug... Jared Williams wrote: Hi, $writer = new XmlWriter(); ...

RE: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
Jared Williams wrote: Hi, $writer = new XmlWriter(); ... $writer-writeDtd('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); produces no whitespace between the public system ids like... !DOCTYPE

Re: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Rob Richards
Jared Williams wrote: PS. Yeah, thought it was libxml, hence didn't file a pecl bug report. But there does seem a problem with this method as can't just have a publicId or a systemId, libxml function uses NULL as a parameter to specify which id you don't want to use. Which we've lost

RE: [PHP] Re: XmlWriter::writeDTD bug...

2005-12-07 Thread Jared Williams
Jared Williams wrote: PS. Yeah, thought it was libxml, hence didn't file a pecl bug report. But there does seem a problem with this method as can't just have a publicId or a systemId, libxml function uses NULL as a parameter to specify which id you don't want to use. Which

[PHP] Re: XmlWriter::writeDTD bug...

2005-12-06 Thread Rob Richards
Jared Williams wrote: Hi, $writer = new XmlWriter(); ... $writer-writeDtd('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); produces no whitespace between the public system ids like... !DOCTYPE

[PHP] if statement probable bug

2005-03-24 Thread TheI2eptile
Probably this is the wrong place to put this but I couldn't search for the bug and what I saw in the bugs newsgroup was a bit strange and seem to be a log for the bugs forms. So here is what I would call a bug, but maybe it's thought to be so: ?php $var1 = 0; $var2 = AS; if($var1 == AS){

[PHP] if statement probable bug

2005-03-24 Thread TheI2eptile
Probably this is the wrong place to put this but I couldn't search for the bug and what I saw in the bugs newsgroup was a bit strange and seem to be a log for the bugs forms. So here is what I would call a bug, but maybe it's thought to be so: ?php $var1 = 0; $var2 = AS; if($var1 == AS){

Re: [PHP] if statement probable bug

2005-03-24 Thread Richard Davey
Hello TheI2eptile, Thursday, March 24, 2005, 2:05:14 PM, you wrote: T So here is what I would call a bug, but maybe it's thought to be so: Try it with strict (data-type) comparisons, i.e.: if ($var === AS) Then you won't get the bug. Best regards, Richard Davey --

Re: [PHP] if statement probable bug

2005-03-24 Thread Jochem Maas
TheI2eptile wrote: Probably this is the wrong place to put this but I couldn't search for not at all the wrong place, having said that the only thing probable with regard to you/your post is that you are not fully aware of the nature of data types in php and the way auto-typecasting works (in

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

2005-01-30 Thread news.php.net
? 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; $a = new A(wsx);

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;

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 array by reference $a = new

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 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 //objects are assigned to an array by reference

[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

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] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
Hi all, I use the following program: ?php print_form(); print_quotes (); function print_form () { ob_start(); output_add_rewrite_var(sort, sorting); echo EOF form ... /form EOF; ob_flush(); } function print_quotes () { output_reset_rewrite_vars(); echo EOF table ... /table EOF; } ?

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 table ... /table 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

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

2004-11-29 Thread Octavian Rasnita
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: Hi all, I use the following program: function

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 code

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:

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

[PHP] Re: Sessions problem bug

2004-10-27 Thread Jason Barnett
Are you using cookie-based sessions? Thus sayeth the manual: Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless if the current session id is identical to the one being set. Thanks google. Reinhart Viane

RE: [PHP] Re: Sessions problem bug

2004-10-27 Thread Reinhart Viane
: woensdag 27 oktober 2004 11:41 To: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions problem bug Are you using cookie-based sessions? Thus sayeth the manual: Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless

Re: [PHP] Dissappearing instance variables; Bug or Feature?

2004-09-18 Thread Marek Kilimajer
In PHP4 $this-one = $one; assigns a *copy* of $one to $this-one. You need to use $this-one = $one; The code will work as expected in PHP5 (and zend.ze1_compatibility_mode set to off). Ryan Briones wrote: This is a scaled down example of something I'm doing in some code. The results are very

[PHP] Dissappearing instance variables; Bug or Feature?

2004-09-17 Thread Ryan Briones
This is a scaled down example of something I'm doing in some code. The results are very funky. I guess I could understand this happening if $two was out of scope when print_r($this) was called in One()...actually no I couldn't. ?php Class One { function One() { $this-test = array();

[PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
Hello Frédéric. This is neither a bug nor a paradox. The code you've posted just contains some nonsense. $foo['bar'] = 'bar'; cannot work since $foo is an object and not an array. And even $foo-bar = 'bar'; cannot work because there is no property $bar. Frédéric hardy wrote: Hello - I think

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
WRONG ! Read the manual about __set() and __get(). And read http://www.php.net/~helly/php/ext/spl/index.html about arrayAccess. Php 5 allow you to overloading property dynamicaly with __set() and __get(). And you can access an object like an array with arrayAccess interface. There is no

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Frédéric Hardy
Moreover, $foo['bar'] = 'bar' work perfectly... Fred. Frédéric Hardy wrote: WRONG ! Read the manual about __set() and __get(). And read http://www.php.net/~helly/php/ext/spl/index.html about arrayAccess. Php 5 allow you to overloading property dynamicaly with __set() and __get(). And you can

Re: [PHP] Re: [PHP5] paradox ? Bug ?

2004-09-03 Thread Daniel Kullik
Well alright, then I ought to read the suggested sources. Thanks for the advice. Anyway, doesn't it cause trouble to have $array as a private member? Frédéric hardy wrote: Moreover, $foo['bar'] = 'bar' work perfectly... Fred. Frédéric Hardy wrote: WRONG ! Read the manual about __set() and

[PHP] Re: crazy readdir bug

2004-06-18 Thread Peter Clarke
Matt Richards wrote: Imagine the following: 362class someClass { 363 function someFunction() { 364if($rDirectory = opendir(/templates)) { 365 while(false != ($strFile = readdir($srDirectory))) { 366print $strFile.br /; 367 } 368 } 369 } 370} line 364 $rDirectory line 365

[PHP] Re: call_user_func possible bug in PHP5Rc1 PHP5RC2, am I crazy?

2004-04-29 Thread Vincent A. Wixer
Curt, Ben, Thank you for your thoughts. Actually, [EMAIL PROTECTED] addressed this via bugs at http://bugs.php.net/bug.php?id=28189 . [27 Apr 11:47pm CEST] [EMAIL PROTECTED] The behavior that's new in PHP 5 isn't the inability to call a method by call name instead of instance. It's that if

[PHP] Re: call_user_func possible bug in PHP5Rc1 PHP5RC2, am I crazy?

2004-04-29 Thread Jason Barnett
In light of this statement and further testing in PHP4, I'm not sure if an object was being instantiated or not. It certainly didn't pipe up with an error. Unfortunately, no (http://www.php.net/call_user_func): Object methods may also be invoked statically using this function by passing

Re: [PHP] PHP has a bug...?

2004-04-06 Thread John W. Holmes
From: Stephen Craton [EMAIL PROTECTED] I was making a parabola grapher and I was testing out some values. Part of the script is to take the variable b and multiply it was negative one, then multiply by 2 times a. I entered a test value where a equals 1, b equals 0, and c equals 0. The result

[PHP] PHP has a bug...?

2004-04-05 Thread Stephen Craton
I was making a parabola grapher and I was testing out some values. Part of the script is to take the variable b and multiply it was negative one, then multiply by 2 times a. I entered a test value where a equals 1, b equals 0, and c equals 0. The result told me that -1 times 0 is -0. Here's

[PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread Rob Petty
I am getting incorrect results from strtotime: [dali]$ uname -a Linux dali 2.4.24-grsec+w+fhs5+gr1913+nfs+++p3+c3+bu+gr0b-v6.182 #1 SMP Mon Jan 5 12:43:44 PST 2004 i686 unknown [dali]$ date Sat Feb 28 14:33:39 PST 2004 [dali]$ cat t1.php ? $start = strtotime('next monday'); echo ('Start

Re: [PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread hitek
I don't think it's so much a bug as it is just some odd behavior. If you use 'this monday' the results are correct. $start = strtotime('this monday'); Keith At 02:44 PM 2/28/2004, Rob Petty wrote: I am getting incorrect results from strtotime: [dali]$ uname -a Linux dali

[PHP] Re: PHP5 simpleXML bug or am i just being silly :)

2004-02-26 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 or this: print('p$this-user-site[0]::/p'); print_r($this-user-site[0]); wait... thats what he done hehe nvm? what is your php5 build? have you tried the examples? (http://www.php.net/manual/en/ref.simplexml.php) did they work? anyway, it looks

[PHP] Re: PHP5 simpleXML bug or am i just being silly :)

2004-02-26 Thread Luke
Dont you need to use instead of ' as ' is a string literal, while parses variables etc in that string try this instead: print(p$this-user-site[0]::/p); Maybe that will help? -- Luke William Bailey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, I am currently working

Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-16 Thread Scott Fletcher
I don't think it is a PHP issue because I don't have this problem with Mozilla browser. It more had to do with IE and worse, it is only a random occurance. Scott F. Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 14 February 2004 05:44, Scott Fletcher wrote:

[PHP] Re: [PHP-INSTALL] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-16 Thread Scott Fletcher
IE bug is something I can't do about, I can't image about other 3rd party browser if this ever happen. So, I decided to use the $_REQUEST instead and not have to deal with the browser issues. You should do the same because as everyone know, IE bugs doesn't normally get fixed overnight or worse,

[PHP] Re: File Injection Bug

2004-02-15 Thread Andr Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 on index.php, are you including directly the file passed by content? if you are vulnerable, the autor of your index.php is the one to blame, not php hehe if safe mode is on, you may be immune to this asu.txt, but dont relly on it against everything

[PHP] Re: [PHP-INSTALL] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-14 Thread Chris Wilson
I found several sources of information regarding a IE bug that does'nt pass all the post data, however this is roughly 1/4 times that it does it. Its actually become a serious problem for people to navigate through my webmail :/ Chris I mean, I sometime found a few POST data had incorrectly went

Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 05:44, Scott Fletcher wrote: I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. If something like that really is happening then it seems like a pretty serious bug.

  1   2   3   >