Jani Taskinen <[EMAIL PROTECTED]> writes:
> Please troll, do you go away if I close my eyes?
That's not fair. Russell is providing strong arguments and rebuttals for
every point. You may not agree with his points, but what he's doing is not
trolling. This discussion seems to have strong ba
[EMAIL PROTECTED] writes:
Leonardo Pedretti <[EMAIL PROTECTED]> writes:
> I would like (for code cleanliness purposes) to make 'new' return a
> reference to an already created object under certain circumstances without
> using a factory, is it possible?
A number of months ago, I proposed a simil
"Thies C. Arntzen" <[EMAIL PROTECTED]> writes:
> diff -u -w -r1.95 pdo_stmt.c
> --- ext/pdo/pdo_stmt.c24 Mar 2005 12:32:06 - 1.95
> +++ ext/pdo/pdo_stmt.c25 Mar 2005 13:13:18 -
> @@ -242,6 +242,13 @@
>
> hash = is_param ? stmt->bound_params : stmt->bound_column
Prior to the upcoming release, if not already done, the embedded sqlite 2.8.15
should be upgraded to 2.8.16. The new version fixes a database corruption
problem which can occur when VACUUM is used. IIRC, all of the previous
changes to sqlite that were discovered by the PHP team (mostly pertaining
Wez Furlong <[EMAIL PROTECTED]> writes:
> There is no official way to do this kind of thing between arbitrary
> extensions. When extensions that are written to share this information,
> they typically export an XXX_API function that you can link against to fetch
> the data.
>
> What you've done w
I've written an extension which needs to accept a Resource which is an SQLite
database handle, and call a C function which will be using that db handle to
issue queries. What I've done works, but is kinda nasty because there doesn't
appear to be a clean way to obtain that database handle nor, from
"Torsten Roehr" <[EMAIL PROTECTED]> writes:
> Hi devs,
>
> after a long discussion on php-general [1], searching the archives and
> trying every proposed solution without success I'm asking for your help to
> solve the following problem:
>
> class Car {
> function drive() {
> // I need
[EMAIL PROTECTED] writes:
> I don't think it's "really clean" to not return a *new* instance with a
> *new* call. I'm not sure what kind of advantage it gives you over a private
> constructor and a static getInstance($n) function.
"Really clean" in that I believe that it's the class' business wha
Andrey Hristov <[EMAIL PROTECTED]> writes:
> Why not using Singleton for multiple objects with getInstance() ?
Yeah, it's not quite a Singleton pattern. I've seen references to what I'm
talking about as a Pool pattern. That's basically what I described here:
>> One could certainly call a func
I came across an interesting desire today. I'd like to create a new class
instance if an only if a "key" value does not already exist. This key value
could be looked up in a database, in an array, etc.
The following contrived example shows use of a proposed __new() overload
function which would
Moriyoshi Koizumi <[EMAIL PROTECTED]> writes:
> AFAIK FreeBSD's libsmb is released under a BSD-style license.
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/smbfs/lib/smb/
That's not libsmb; rather, it's the kernel module that can read/write remote
SMB file systems. libsmb, more properly
FYI, attached is a highly edited (for brevity) series of responses to the
SQLite mailing list, to a query about SQLite3 being included in PHP 5. My
reply is first.
D. Richard Hipp is the author of SQLite, so his response is of particular
relevance...
[EMAIL PROTECTED] writes:
> "julien" <[EMAIL
"Frank M. Kromann" <[EMAIL PROTECTED]> writes:
> It might be documented but it has not always been working like this. I
> have some code that I have not touched for over 2 years, and It has workd
> with both PHP4 and PHP5 versions (even PHP5-1-0-dev from Aug 19 2004
> 17:03:39 ). After upgrading t
Ilia Alshanetsky <[EMAIL PROTECTED]> writes:
> This is not a bug, but rather expected behavior. PCRE extension caches
> compiled regular expressions so that subsequent runs of the same regex do
> not need to perform the compilation step. In your example you are generating
> new regex in an untermi
Adam Q <[EMAIL PROTECTED]> writes:
> I think encryption for SQLite is essential for PHP. Without it, it makes it
> almost useless in a webscripting language. Suppose you wanted to create an
> open source, easily portable, file based guestbook in PHP. I would never use
> SQLLite under the current
Derick Rethans <[EMAIL PROTECTED]> writes:
> On Wed, 18 Aug 2004 [EMAIL PROTECTED] wrote:
>
>> I'm trying to compile PHP from cvs, but it barfs while trying to generate
>> zend_language_scanner.c from zend_language_scanner.l. The problem is in the
>> specified skeleton file: flex.skl, and it seem
I'm trying to compile PHP from cvs, but it barfs while trying to generate
zend_language_scanner.c from zend_language_scanner.l. The problem is in the
specified skeleton file: flex.skl, and it seems to be dying near the beginning
on the first '%-' line. I can't find any reference in the flex gramm
Wez Furlong <[EMAIL PROTECTED]> writes:
> I won't commit to a definite time, but keep in mind that the current sqlite
> only took me around 2 hours to code from scratch (plus various refinements
> since then); this is the kind of thing that will pop into existence real soon
> now when I get a spar
[EMAIL PROTECTED] writes:
> Wez Furlong <[EMAIL PROTECTED]> writes:
>
>> I would say don't bother as its something I have planned for PDO.
>> But that's just me ;-)
>
> Sorry, TLA knowledge problem here. What's "PDO"?
Ok, now I know what PDO is. Wez, what do you anticipate as a completion
sched
Wez Furlong <[EMAIL PROTECTED]> writes:
> I would say don't bother as its something I have planned for PDO.
> But that's just me ;-)
Sorry, TLA knowledge problem here. What's "PDO"?
Derrell
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub
I'm considering implementing sqlite3 bindings in PHP, but before I undertake
that project, is anyone else already working on it?
Derrell
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Marcus Boerger <[EMAIL PROTECTED]> writes:
> Hello Derrell,
>
> it is a public interface! Unfortunatley we still have no way of documenting
> classes on the docs page.
Thanks. Steph forwarded me this link, which could be provided on the docs
page as additional reference, until there's a standard
I just discovered (via the RTFS method) that there is an object-level
interface to the sqlite functionality, $obj = new SQLiteDatabase(filename);
It appears that there are SQLiteQuery and a few other object types as well,
although I didn't pursue those.
In searching the documentation on the web si
David Santinoli <[EMAIL PROTECTED]> writes:
> Hi,
> I'm submitting a patch to perform "on the fly" MD5/SHA1 digest
> calculation of a file uploaded via the HTTP POST method. Being
> not uncommon for applications to require some digest of a freshly
> uploaded file, doing the math directly in the
"Sara Golemon" <[EMAIL PROTECTED]> writes:
>> > If you really, really, really wanted to do such a thing, you could still
> do:
>> >
>> > eval("goto foo$bar;");
>> >
>> > to get the same effect, right?
>>
>> Hmm, depends on how it's implemented. It will most likely not work I
>> guess.
>>
> Nope.
Andi Gutmans <[EMAIL PROTECTED]> writes:
> I don't think we should be using computed targets. It'd be more of a
> nightmare than sexy. I prefer doing as much at compile-time as possible and
> I don't think that allowing indirect goto's would lead to anything than
> chaos. Most arguments in favor o
"Rob Richards" <[EMAIL PROTECTED]> writes:
> php5ts_debug.dll!_zend_is_inconsistent(_hashtable * ht=0xcdcdcdcd, char *
> file=0x1053aaf0, int line=510) Line 53 + 0x3 C
> php5ts_debug.dll!zend_hash_destroy(_hashtable * ht=0xcdcdcdcd) Line 510 +
> 0x19 C
> php5ts_debug.dll!php_shutdown_stream_wrap
Andi Gutmans <[EMAIL PROTECTED]> writes:
> I did a test roll of PHP 5.0.0 (without version change). Please download and
> make sure there are no serious show stoppers. You can grab it at
> http://snaps.php.net/~andi/
5.0.0 Test Roll is working fine for me, including the sqlite 2.8.14 upgrade.
Th
Wez Furlong <[EMAIL PROTECTED]> writes:
> Upgraded; please test.
On initial test, it seems to be working fine. I'll continue to work with it
during the upcoming week.
Thank you!
Derrell
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.ph
"Wez Furlong" <[EMAIL PROTECTED]> writes:
> Thanks; I will sync that when I get back from the conference.
Hi. Just checking in to see if there's anything I can do to help. It does
not appear that these changes are yet in php's embedded sqlite, and the
release is coming up soon. The sqlite 2.8.
Christian Schneider <[EMAIL PROTECTED]> writes:
> Before it gets forgotten: I still think that
> $x = ifsetor(mixed var, mixed var [, ...]);
> with expressions in all parts is the way to go.
>
> Example usage:
> $a = ifsetor($_REQUEST['x'], $db->get('x'), 'default_x');
>
> And I also think that th
"Wez Furlong" <[EMAIL PROTECTED]> writes:
> Thanks; I will sync that when I get back from the conference.
Great. When you do, it's currently only in CVS AFAIK (i.e. not in a
"release"), so sync from there. There should have been *very* few changes (if
any) since 2.8.14 since the 3.0 branch is w
I submitted the corrections to sqlite that were found by the PHP team (mostly
64-bit architecture issues), to the sqlite team. Those changes have been
checked in to the sqlite Version 2 branch, so PHP can now more easily track
and keep up with any bug fixes in sqlite.
See http://www.sqlite.org/cv
Ilia Alshanetsky <[EMAIL PROTECTED]> writes:
> Just applying the patch as you've suggested will cause problems as the PHP
> tree have some fixes inside libsqlite that were not yet (or never even
> submitted) added to the external library.
I've been using a patched php5-rc2 with sqlite-2.8.13 fo
Regarding upgrading sqlite to version 2.8.14, I previously wrote:
> A unified diff against HEAD is attached.
I haven't heard anything back on this and I don't want it to get too close to
release time, so I'm just querying status. Is there anything further I
can/should do to help get sqlite 2.8.
"Sara Golemon" <[EMAIL PROTECTED]> writes:
> Here my reservation would be in throwing errors where there previously
> wasn't one (this would apply to both Objects and Arrays as offsets).
Prior to release of PHP5 is most certainly the right time to make this sort of
change. There are already othe
This is a resend of the following message but without the attachment which was
rejected as too large for the list (it's about 18000 lines). Wez should have
received the patch since the message was addressed to him as well as the list.
Anyone else who'd like the patch, please let me know and I'll s
Wez Furlong <[EMAIL PROTECTED]> writes:
> I deliberately omitted several files that were not needed by PHP, in order
> to reduce the size of the bundle; please make sure you don't stick those in
> the update.
You've still included some files some files which are not really necessary,
e.g. parse.y
[EMAIL PROTECTED] writes:
> Steph <[EMAIL PROTECTED]> writes:
>
>> Derrell: which system are you running, and do you have a short test script
>> for the ATTACH command please?
>
> I will generate one and post it in a few hours.
I had to go watch the launch and recovery of SpaceShipOne! Success!
Steph <[EMAIL PROTECTED]> writes:
> Derrell: which system are you running, and do you have a short test script
> for the ATTACH command please?
I will generate one and post it in a few hours.
Derrell
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.
Marcus Boerger <[EMAIL PROTECTED]> writes:
> nothing else i wanted to say. Only thing needed to stress out is that we had
> problems with incorporating newer 2.8.x versions.
I have incorporated 2.8.13 with no problems; I simply copied the source into
the ext/sqlite/libsqlite tree (IIRC the path).
Andi Gutmans <[EMAIL PROTECTED]> writes:
> We won't release PHP 5 final without upgrading it. But as I think PHP 5 final
> is about a month away (I don't think we'll need another RC), I suggest to
> upgrade SQLite right after RC3 so that it's tested.
>
> Andi
Before it gets too close to the PHP 5
"Robert Janeczek" <[EMAIL PROTECTED]> writes:
> is there any way that string 'false' (and its variations with capital
> letters) could be interpeted as boolean of value false? i have xml
> configuration file that has some switches (true/false) in it. when i use
> this values in functions that requ
Andi Gutmans <[EMAIL PROTECTED]> writes:
> Hi Derrell,
>
> I don't think it's wise to upgrade the sqlite version so close to the RC3. If
> we do so, we'll need to wait another few days to make sure it works. As there
> are so many fixes in RC3 and sqlite support hasn't deteriorated, I suggest to
>
Andi Gutmans <[EMAIL PROTECTED]> writes:
> Great to hear. I'll start rolling RC3 soon.
Before you roll it... I had posted a bug (#28246) regarding sqlite, that one
of the important features (ATTACH) didn't work properly with the old version
of sqlite that was included with RC2. The bug is still
45 matches
Mail list logo