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
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
. 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
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
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
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
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:
-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
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
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
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 =
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:
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
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
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]
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
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
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
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
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 /'\;
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
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
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
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
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
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
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
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)
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) {
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) {
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
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
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)
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
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
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
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
,
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
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
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
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
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
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 :
-
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 :
$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 :
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]
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;
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
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
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
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
{
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
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
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
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
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
-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();
...
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
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
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
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
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){
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){
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
--
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
?
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);
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;
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
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] =
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
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
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
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;
}
?
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
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
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
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:
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
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
: 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
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
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();
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
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
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
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
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
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
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
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
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
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
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
-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
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
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:
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,
-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
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
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 - 100 of 245 matches
Mail list logo