Re: [PHP-DEV] Why can constants only be scalars?

2004-05-13 Thread Ilya Sher
Sean Coates wrote: Ilya Sher wrote: We discussed this issue with Jevon Wright (private emails) and in the end of the day agreed that most simple yet powerful solution is "superglobals", which would work like $_GET,$_POST etc. This can be accomplished in user-space, by cheating the existing $_*

RE: [PHP-DEV] A misleading error message

2004-05-13 Thread Wez Furlong
The message is correct; Two is abstract since you haven't implemented a "real" version of bar(). --Wez. > With 5RC2 the following code produces a the fatal error > "Cannot instantiate > abstract class Two." In fact Two is not an abstract class, > so the wording > tripped me up for a minute. >

[PHP-DEV] A misleading error message

2004-05-13 Thread Rick Fletcher
With 5RC2 the following code produces a the fatal error "Cannot instantiate abstract class Two." In fact Two is not an abstract class, so the wording tripped me up for a minute. The error actually occurs because Two doesn't implement all of One's abstract methods. Could someone make a change to

Re: [PHP-DEV] Internal zvals can't be arrays

2004-05-13 Thread David Sklar
I think your humor is too subtle for me. I don't understand what you mean. If I do this: sorry i just wanted to say that if you find out a solution you should tell it to me and that atm i don't have any idea how to do it. [...] Your code was absolute correct. OK, I figured that since you wrote

Re: [PHP-DEV] Internal zvals can't be arrays

2004-05-13 Thread Marcus Boerger
Hello David, Thursday, May 13, 2004, 10:42:00 PM, you wrote: > I think your humor is too subtle for me. I don't understand what you > mean. If I do this: sorry i just wanted to say that if you find out a solution you should tell it to me and that atm i don't have any idea how to do it. [...]

[PHP-DEV] CVS Account Request: firman

2004-05-13 Thread Firman Wandayandi
1. Maintaining my PEAR Math::Math_Numerical_RootFinding package. 2. Translating the PEAR documentation into Indonesian language. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Internal zvals can't be arrays

2004-05-13 Thread David Sklar
I think your humor is too subtle for me. I don't understand what you mean. If I do this: PHP_METHOD(test_class,__construct); zend_class_entry *test_class_ce_ptr = NULL; static zend_function_entry test_class_functions[] = { PHP_ME(test_class, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL

Re: [PHP-DEV] Internal zvals can't be arrays

2004-05-13 Thread Marcus Boerger
Hello David, i did most of these functions but have no idea how to create default arrays. If you find out please tell us. marcus Thursday, May 13, 2004, 9:29:02 PM, you wrote: > zend_declare_property() tells me that I can't use it to create a class > property that is an array. Why is that? W

[PHP-DEV] Internal zvals can't be arrays

2004-05-13 Thread David Sklar
zend_declare_property() tells me that I can't use it to create a class property that is an array. Why is that? What is the recommended way to create an array class property? Thanks, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PDO (was: SQLite API deficiency)

2004-05-13 Thread Marcus Boerger
Hello Marc, i'll update the checkout on my server but you will have it through PECL anyway in a week. Thursday, May 13, 2004, 5:06:31 PM, you wrote: > Hi, >> Although we discussed a limited amount SQL dialect abstraction at >> LinuxTag last year, the initial code is not going to do anything abo

RE: [PHP-DEV] PDO (was: SQLite API deficiency)

2004-05-13 Thread Wez Furlong
It's more like Perl DBI in concept but with a PHP twist; data access abstraction as opposed to database abstraction. Very light weight and will take advantage of PHP 5 OO features to implement lazy evaluation of result sets. Although we discussed a limited amount SQL dialect abstraction at LinuxT

[PHP-DEV] PDO (was: SQLite API deficiency)

2004-05-13 Thread Marc Boeren
Hi, > I'm currently in DB API mode (working on PDO), I know PDO is slated to be _the_ db-abstraction module from 5.x (5.1?) onwards (which would replace dbx, but that's fine by me: PDO seems to work more or less the same but with a more OO-ish api), but I was wondering if these names bear any r

RE: [PHP-DEV] SQLite API deficiency

2004-05-13 Thread Stanislav Malyshev
WF>>Can the compile/step definitely not handle multiple queries? WF>>That's a shame :/ Manual says: The sqlite_compile "compiles" a single SQL statement (specified by the second parameter) and generates a virtual machine that is able to execute that statement. /.../ If the 2nd parameter actually

Re: [PHP-DEV] SQLite API deficiency

2004-05-13 Thread Ilia Alshanetsky
On May 13, 2004 09:25 am, Stanislav Malyshev wrote: > I have discovered that SQLite function sqlite_query runs sqlite_exec > function if it's return value is used and sqlite_compile/sqlite_step combo > if return value is used. I think this is a problem - if I want to run some > pack of queries (lik

RE: [PHP-DEV] SQLite API deficiency

2004-05-13 Thread Wez Furlong
I've been bitten by this too, but didn't get time to delve into it. Can the compile/step definitely not handle multiple queries? That's a shame :/ I'm currently in DB API mode (working on PDO), so I'll refresh my memory and do some sqlite stuff over the next few days; if there is no way to get th

[PHP-DEV] SQLite API deficiency

2004-05-13 Thread Stanislav Malyshev
I have discovered that SQLite function sqlite_query runs sqlite_exec function if it's return value is used and sqlite_compile/sqlite_step combo if return value is used. I think this is a problem - if I want to run some pack of queries (like, create whole DB schema in one call), I can do it with

RE: [PHP-DEV] CVS Account Request: bolk

2004-05-13 Thread Wez Furlong
Submit a few first, and if they're good, you'll get an account. --Wez. > -Original Message- > From: Evgeny Stepanischev [mailto:[EMAIL PROTECTED] > Sent: 13 May 2004 09:04 > To: [EMAIL PROTECTED] > Subject: [PHP-DEV] CVS Account Request: bolk > > Submiting new packages > > -- > PHP I

[PHP-DEV] CVS Account Request: bolk

2004-05-13 Thread Evgeny Stepanischev
Submiting new packages -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Why can constants only be scalars?

2004-05-13 Thread Andi Gutmans
No. At the time of introducing superglobals it was made clear this is only for internal use and not for script use. The main reason for introducing them was to make it easier to access $_GET, $_POST and friends mainly due to register_globals change. As this is something which happens at compile