Chris,
I have a feeling I'm missing something but from what I'm gathering you
want to be able to use the key of the array right along with the value.
If that's what you need then the following should work:
$array = my_array_creating_function();
while(list($key, $val) = each($array)){
echo ""
If I have a function that creates an array using add_assoc_string and then
adds it to the return value as add_property_zval, then how do I iterate over
the array and get the key and its value?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.
Hi,
On Mon, 14 Feb 2005 01:56:41 +0100, in php.internals [EMAIL PROTECTED] (Peter
Brodersen) wrote:
>http://basedir.ter.dk/globeater.php
>http://basedir.ter.dk/globeater.php?debug=1
>http://basedir.ter.dk/globeater.phps
>
>Is it really a-okay that a script in pure PHP under
>safe_mode-restriction
Hello Frédéric,
Monday, February 21, 2005, 1:45:34 AM, you wrote:
> Hi all,
> Val is right with define.
> but i have unexpected result when:
> 1 - redeclare existing function in main code-> end after function call
> 2 - redefine __autoload -> same
> 3 - redeclare function in test code -> same
Hi all,
Val is right with define.
but i have unexpected result when:
1 - redeclare existing function in main code-> end after function call
2 - redefine __autoload -> same
3 - redeclare function in test code -> same
i think that's due fatal error as Andi say
"some of the engine internals can be
Hello val,
Sunday, February 20, 2005, 5:59:21 PM, you wrote:
> Hello Marcus,
> Sunday, February 20, 2005, 6:32:57 AM, you wrote:
MB>> what happend to defines (when redefining)
>define() is called at run-time, as far as i saw, so there should be no
> problems with it
MB>> and what happe
Hello Marcus,
Sunday, February 20, 2005, 6:32:57 AM, you wrote:
MB> what happend to defines (when redefining)
define() is called at run-time, as far as i saw, so there should be no
problems with it
MB> and what happens to __autoload()?
well, i never used it myself, so i've never te
On Thu, 17 Feb 2005 10:15:10 -0800
Andi Gutmans <[EMAIL PROTECTED]> wrote:
> Hi Antony,
>
> We have too many places that manually check access restrictions at
> this point. I would like to generalize it and use that in all places,
> and make it easier to fix problems like your patch does. Haven'
On Fri, 18 Feb 2005 19:14:27 +0100
Marcus Boerger <[EMAIL PROTECTED]> wrote:
> Hello Antony,
>
> there is no need to fetch the instance (or create a temporairy one)
> since
> the function table is bound to the class rather then the instance.
> This is the major difference between real object
> > On Sun, 20 Feb 2005 12:36:01 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> > > * If the number does not fit, I will try to convert it into a double
> > > (PHP datatype float). This is the case for e.g. numeric(10) - values
> > > might not fit. This is the same what PHP does when adding 1
On Sun, 2005-02-20 at 09:44 -0500, Wez Furlong wrote:
> On Sun, 20 Feb 2005 12:36:01 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> > * If the number does not fit, I will try to convert it into a double
> > (PHP datatype float). This is the case for e.g. numeric(10) - values
> > might not fit.
On Sun, 20 Feb 2005 12:36:01 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> * If the number does not fit, I will try to convert it into a double
> (PHP datatype float). This is the case for e.g. numeric(10) - values
> might not fit. This is the same what PHP does when adding 1 to
> LONG_MAX,
Sebastian Bergmann wrote:
M. Sokolewicz wrote:
So, is this a problem with my compiler being stupid?
Are you sure you have the right MySQL headers and libraries?
ah, thanks for the headsup on this, it seems it was indeed a
header/library mismatch; the configure script took em from the
win32build
Hello Frédéric,
what happend to defines (when redefining) and what happens to
__autoload()? I guess the latter would result ina crash becuase
the engine would register __autoload() and the next class to
load results in call to a non existing function. If at all you
should try with Alan's idea of s
On Sun, 2005-02-20 at 04:32 -0500, Wez Furlong wrote:
> On Sat, 19 Feb 2005 18:11:06 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> > with no indication what went wrong.
>
> Please read the OTN article to learn about the error modes in PDO.
> (I expect everyone to have read this!)
>
> I find set
On Sun, 2005-02-20 at 10:44 +0100, Lukas Smith wrote:
> Timm Friebe wrote:
>
> > while testing PDO I was astonished to see that all values (regardless of
> > their types in the database) are returned as strings (in all extensions
> > except for PgSQL). Why is that so? It _is_ quite inconsistent, i
On Sun, 2005-02-20 at 04:32 -0500, Wez Furlong wrote:
> Please open a pecl bug for this too,
Done so:
http://pecl.php.net/bugs/bug.php?id=3530
--
Timm
If it ain't broken, it doesn't have enough features yet
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http:
On Sat, 19 Feb 2005 18:11:06 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> with no indication what went wrong.
Please read the OTN article to learn about the error modes in PDO.
(I expect everyone to have read this!)
I find setting this:
$dbh->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTI
This is by design.
PDO is deliberately very thin on type support, prefering to give the
script author more control over type conversion by using the PHP
built-in type juggling features.
PgSQL returns other types because it is one of 2 drivers that gives
you what it's got, rather than what you ask
Please open a pecl bug for this too,
Thanks
--Wez.
On Sat, 19 Feb 2005 18:52:47 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote:
> Hi,
>
> native_type (returned from PDOStatement::getColumnMeta()) was showing
> weird behaviour in PDO/MySQL, mostly not existing at all and showing
> incorrect valu
Timm Friebe wrote:
while testing PDO I was astonished to see that all values (regardless of
their types in the database) are returned as strings (in all extensions
except for PgSQL). Why is that so? It _is_ quite inconsistent, isn't it?
Wasn't PDO supposed to _unify_ the RDBMS access apis?
I dont k
21 matches
Mail list logo