[PHP-DEV] e-commerse recommendations engine, beta testers.

2003-02-07 Thread mlwmohawk
If I am misusing this list incorrectly, I apologize. I am the author of MSession and the PHP msession extension. I just finished up productizing a recommendations engine for e-commerce sites. I need a few sites with a good customer history willing to be my testers and example sites. I'll

[PHP-DEV] MSession 1.2 FYI

2003-01-19 Thread mlwmohawk
Changes committed will conflict with creation of a PHP binary using MSession and Phoenix prior to Jan 17, 2003. If you wish to continue using the older version of MSession, you will need to revert msession.c, reqclient.h, and php_msession.h. Using 1.2 msession gives you higher performance, a

[PHP-DEV] Session behavior, Survey

2002-11-10 Thread mlwmohawk
I want to conduct a survey of the various behaviors of sessions as used by PHP. Specifically, I am wrapping up some new features on msession, and I would like to come up with a more realistic test suite for the system. Some of the questions are obviously hard to nail down, but any input

Re: [PHP-DEV] PECL != Siberia

2002-06-11 Thread mlwmohawk
Dan Allen Wrote: Tomas V.V.Cox ([EMAIL PROTECTED]) wrote: Stig S. Bakken wrote: You tell me :) We currently have no nice way of bootstrapping PEAR on Windows like we have on Unix (with make install-pear-installer and go-pear). What would be the most sensible way of giving

Re: [PHP-DEV] PHP's vision

2002-06-05 Thread mlwmohawk
John Lim Wrote: If the cluster cannot handle the load, then the queues will just get longer and longer. It's interesting that mlwmohawk asked about this because msession is a lightweight session handler without rdbms overhead. Similarly queuing is used instead of a real database

Re: [PHP-DEV] PHP's vision

2002-06-05 Thread mlwmohawk
Peace through superior firepower? That's a trademarked american concept at the moment, I think. Kristian Can we please keep the anti-american comments to ourselves. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] WHAT is PHP's vision????

2002-06-05 Thread mlwmohawk
This was a great post, it says what I tried to say but lacked the eloquence with which to say it. Perhaps I am showing my age, but it seems these progammatic style issues are common with developers with less experience. I remember coding assembly language with pencil, hex-code sheet, and

Re: [PHP-DEV] PHP's vision

2002-06-04 Thread mlwmohawk
John Lim Wrote: Hi, I like the PHP language the way it is with some exceptions. Private members and methods are essential from a security view-point, and perhaps application variables, but that's about it. My main problem with PHP's direction is that it seems stuck at the low-end

Re: [PHP-DEV] PHP's vision

2002-06-03 Thread mlwmohawk
I am curious, besides some language quarks, like multidimentional arrays, what sorts of things can you do in Java which can not be done in PHP? I'm actually curious about the multidimensional arrays point. Exactly what do you mean? PHP can obviously do $a[1][2][3][4]... Maybe it

Re: [PHP-DEV] PHP's vision

2002-06-03 Thread mlwmohawk
I am curious, besides some language quarks, like multidimentional arrays, what sorts of things can you do in Java which can not be done in PHP? I'm actually curious about the multidimensional arrays point. Exactly what do you mean? PHP can obviously do $a[1][2][3][4]... Maybe it

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread mlwmohawk
Jani Taskinen wrote: I'm not that familiar with Java..so it would be nice to hear what Java offers that PHP doesn't? Private members and methods, interfaces, Application Servers, Beans, Enterprise Beans. And coming back to the original topic of this thread: perfect support

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread mlwmohawk
There are also a number of people for whom the above is not enough. They strive for the possibilities the Java platform offers, without being forced to develop in a closed-source environment. As I said before, I really like Java as a language, but don't want to use the Java

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread mlwmohawk
Stig S. Bakken Wrote: But that is what you'll never get with PHP. Just look at how fast creating objects is in Java. Java revolves aroun on objects, they are created and destructed implicitly during execution of overloaded operators and everything. PHP has a _much_ higher cost for

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread mlwmohawk
Sebastian Bergmann Wrote: I love PHP, but I would like to design and implement my application the same way I could do with Java. I think this is the problem. PHP is not Java, so it follows you would probably need a different approach. When I code something in assembler,

Re: [PHP-DEV] Re: Dynamically loaded extensions and PHP sessions

2002-05-30 Thread mlwmohawk
[EMAIL PROTECTED] wrote: Is it possible to configure the PHP session system to use a dynamically loaded session manager? I am loading the extension, but the session extension seems to try to initialize itself prior to the dynamic extension being loaded. This is the one of

Re: [PHP-DEV] PHP web farms (i.e. why msession or something like it)

2002-05-29 Thread mlwmohawk
[EMAIL PROTECTED] wrote: At 10:20 25/05/2002 -0400, [EMAIL PROTECTED] wrote: Marginalizing this capability IMHO is not the right direction, I think there should, in fact, be a stronger push for this sort of capability to be built in by default. Agree with that too... but if

Re: [PHP-DEV] PHP web farms (i.e. why msession or something like it)

2002-05-29 Thread mlwmohawk
[EMAIL PROTECTED] wrote: The problem with using databases are they they are expensive and they are slow. A generalized PostgreSQL session manager would be cool, I have actually been thinking about such an extension. Using the schema from the PG msession plugin, it would be fairly

Re: [PHP-DEV] PHP web farms (i.e. why msession or something like

2002-05-29 Thread mlwmohawk
Steve Meyers wrote: Well, you didn't try it with MySQL, which is significantly faster than Oracle and Postgres for most stuff. In any case, I agree that msession is probably a better solution -- I just think that having built-in MySQL session support would be a good thing for PHP.

Re: [PHP-DEV] PHP web farms (i.e. why msession or something like

2002-05-29 Thread mlwmohawk
[EMAIL PROTECTED] wrote: MySQL's table locking during update pretty much make sure that performance will degrade under heavy load with many connections. It's not actually as bad as you think. With a table like this, the table locking actually has a very minimal effect on it. In

[PHP-DEV] Dynamically loaded extensions and PHP sessions

2002-05-29 Thread mlwmohawk
Is it possible to configure the PHP session system to use a dynamically loaded session manager? I am loading the extension, but the session extension seems to try to initialize itself prior to the dynamic extension being loaded. -- PHP Development Mailing List http://www.php.net/ To

[PHP-DEV] PHP web farms (i.e. why msession or something like it)

2002-05-25 Thread mlwmohawk
I kind of went off in a huff yesterday with the whole PECL/pear issue with msession, it's over and lets move on. I did, however, want to explain *why* I think msession should be in the main code. In *big* websites, you need multiple web servers serving copies of the same data in a load

[PHP-DEV] MSession beta4 (release candidate)

2002-05-24 Thread mlwmohawk
For users of msession, beta3 was supposed to be the release candidate, but there were far too many requests for *important* features to be ignored for a 1.0 release. Instead, I opted for one more beta release, crossing my fingers, saying this time for sure. New features: Enhanced Windows

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README config.m4 msession-test.php msession.c msession.php php_msession.h reqclient.h

2002-05-24 Thread mlwmohawk
On Fri, 24 May 2002, [EMAIL PROTECTED] wrote: On Fri, 24 May 2002, [EMAIL PROTECTED] wrote: Woa!! When did this discussion take place? Why is it taking place on bugs and not dev? Because most of the active developers are there, it seems. I am looking at the bugs list on

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README config.m4 msession-test.php msession.c msession.php php_msession.h reqclient.h

2002-05-24 Thread mlwmohawk
On Fri, 24 May 2002, [EMAIL PROTECTED] wrote: I am looking at the bugs list on news.php.net, and I can't find any mention of msession. I would like a little more discussion BEFORE my extension is removed the the main tree. To characterize my mood as anything less than disturbed,

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README config.m4 msession-test.php msession.c msession.php php_msession.h reqclient.h

2002-05-24 Thread mlwmohawk
the point being is that modules being maintained by the maintainer, and not everyone in general, should go into PECL (not just yours, we should be moving more slowly...) and those which are considered main main-stream, they should go in ext/) The point being that I didn't put

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README config.m4 msession-test.php msession.c msession.php php_msession.h reqclient.h

2002-05-24 Thread mlwmohawk
I don't mean to be blunt here, but consider the following: - working on the existing session stuff would probably have scored higher I tried to work with the session stuff, and lets use the word inflexable to describe the developers. Msession is actually a standard

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README config.m4 msession-test.php msession.c msession.php php_msession.h reqclient.h

2002-05-24 Thread mlwmohawk
I don't mean to be blunt here, but consider the following: - working on the existing session stuff would probably have scored higher I tried to work with the session stuff, and lets use the word inflexable to describe the developers. Msession is actually a standard

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore CREDITS README

2002-05-24 Thread mlwmohawk
Hey guys, Out of courtesy, I think it would have been polite to at least email the primary extension maintainer with: 1) A note to say that it was going to be moved 2) A couple of reasons why 3) An invitation to join the discussion. -- before moving it!! If the same thing

[PHP-DEV] I need your support: Reinstatement of msession

2002-05-24 Thread mlwmohawk
I would like reinstatement of msession into the main tree, and if you oppose I would like a serious discussion to take place on the developer list. If you support it, I need you to sound in on the discussion. I intend to re-add it back to CVS early next week. I have spent a good amount

Re: [PHP-DEV] I need your support: Reinstatement of msession

2002-05-24 Thread mlwmohawk
Just curious, but how many real users does it have? 30'000 ? It has been under development for some time now. The same day the final release candidate was released, they pull it out of the main tree. How the hell will it get ANY more users? It isn't legacy, it is *new* and new

Re: [PHP-DEV] I need your support: Reinstatement of msession

2002-05-24 Thread mlwmohawk
Just curious, but how many real users does it have? 30'000 ? It has been under development for some time now. The same day the final release candidate was released, they pull it out of the main tree. How the hell will it get ANY more users? It isn't legacy, it is *new* and new

Re: [PHP-DEV] I need your support: Reinstatement of msession

2002-05-24 Thread mlwmohawk
Just curious, but how many real users does it have? 30'000 ? It has been under development for some time now. The same day the final release candidate was released, they pull it out of the main tree. How the hell will it get ANY more users? It isn't legacy, it is *new* and new

Re: [PHP-DEV] I need your support: Reinstatement of msession

2002-05-24 Thread mlwmohawk
Just curious, but how many real users does it have? 30'000 ? It has been under development for some time now. The same day the final release candidate was released, they pull it out of the main tree. How the hell will it get ANY more users? It isn't legacy, it is *new* and new

Re: [PHP-DEV] PECL vs. CORE .... was msession

2002-05-24 Thread mlwmohawk
I don't see why msession is not part of the core PHP. On some levels, it is no different that mod_mm, or mod_files. My original proposal was that it should be part of ext/session. I was told that it should be its own extension. I think, before you guys decide, that you look at it.

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore

2002-05-24 Thread mlwmohawk
On Fri, 24 May 2002, Rasmus Lerdorf wrote: I log everything, if you want logs just ask. And not to be blunt, but the people who do actually something _are_ on IRC. (not saying that it's the best forum to discuss things, but it is more 'vivid' than mailinglists). I think this is

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession .cvsignore

2002-05-24 Thread mlwmohawk
On Fri, 24 May 2002 [EMAIL PROTECTED] wrote: On Fri, 24 May 2002, Rasmus Lerdorf wrote: I log everything, if you want logs just ask. And not to be blunt, but the people who do actually something _are_ on IRC. (not saying that it's the best forum to discuss things, but it is more

Re: [PHP-DEV] Another addition to session-module ... while were on topic

2002-05-04 Thread mlwmohawk
If you use msession, this should all just work. $sid = session_id(); $array_users = msession_get_array('users'); $array_globals = msession_get_array('globals'); $array_my = session_get_array($sid); Msession does not handle classes all that well. It uses discrete variables. -- PHP

[PHP-DEV] Msession beta 3 (RC1), Pre-Built binaries for Windows, FreeBSD, and Linux.

2002-04-15 Thread mlwmohawk
Msession is entering the final phase of development.There are many new features and enhancements over previous versions. PostgreSQL plugin, which allows save/restore. Extensive testing. Native builds for UNIX and Windows (not cygwin) http://phoenix.mohawksoft.com -- PHP

[PHP-DEV] Number of active sessions

2002-04-12 Thread mlwmohawk
Get to get a feel for common experience, what are the average and maximum number of active sessions on your web sites? It may be useful for sizing default values. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-11 Thread mlwmohawk
$_PERSISTENT could store data key'd to the script that stored it. $_PERSISTENT_GLOBAL (probably a better name can be found) could just store data accessable to any script under a certain document root. You definitly do not want to share persistent data across document roots (ie

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-09 Thread mlwmohawk
Did anyone write module for persistent variable module? There is msession you know :-) I have large static lookup array loaded every time. It's waste of resource, so I would like to make it persistent. I thought someone wrote it already. If you did, could you post URL to

[PHP-DEV] msession beta 2

2002-04-09 Thread mlwmohawk
If anyone is using msession, beta 2 is up on my website. http://www.mohawksoft.com For those of you that do not know what msession is, it is a system for managing session information across multiple PHP systems. It is like a networked mm save handler, but it also has custom features that

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-09 Thread mlwmohawk
[EMAIL PROTECTED] wrote: That could be a pretty cool extension. Should be trivial to write. If no one else does, I will after msession 1.0 is out of beta and released. Do you have any idea how long will it take? If it's short, I can wait rather than writing one by myself :)

[PHP-DEV] Session patch for ID created by handler

2002-03-29 Thread mlwmohawk
So have we discussed this enough, can I just apply it and be done with it? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Re: Session patch

2002-03-28 Thread mlwmohawk
Why is it you do not wish the session save handlers to be able to generare their own session IDs? The patch does not break any save handlers, but adds a lot more flexibility to the session system. A pseudo-random number may not be what is desired. I may want the session id to be the user's

RE: [PHP-DEV] Re: Re: Session patch

2002-03-28 Thread mlwmohawk
Stefan Esser writes: Hi, I have not followed the discussion, but its nonsense to force people to use PHP generated session IDs. Its an argument against using PHP. I don't think so. There are several situations where it is not possible to let PHP generate the session

Re: [PHP-DEV] Re: Session patch

2002-03-27 Thread mlwmohawk
Hello Mark, We would like this indeed, but not 'love' it :) I meant to say I'm sure the SRM guys would love this. perhaps that was an overstatement. Oh well, but it answers a lot of issues about who creates the session id. Should php create the session id, or should the session

Re: [PHP-DEV] Re: Re: Session patch

2002-03-27 Thread mlwmohawk
Should php create the session id, or should the session handler? PHP should. Here is something to think about. It is hard to generate hard to guess session ids. PHP has various internal entropy sources and can read from system provided entropy sources as well. That

[PHP-DEV] msession entering first beta.

2002-03-27 Thread mlwmohawk
The msession daemon (part of the Phoenix project) and extension is available for PHP versions 4.0.6, 4.1.2, and current CVS. For those of you unfamiliar with msession, it is sort of a cross between a database and the mm session save handler. It is a networked information server

[PHP-DEV] session patch, if no one objects, I will apply

2002-03-26 Thread mlwmohawk
I posted a patch to session a couple days, an only got one reply of looks good. The patch is intended to help session handler writers. It allows them to intercept PHPSESSID creation, and optionally replace it with their own value. The session handlers which will benefit right away

[PHP-DEV] Re: Session patch

2002-03-26 Thread mlwmohawk
If it is possible, I'd like to push this one on to the fast track. I have a couple msession users that would REALLY like this patch, and I'm sure the SRM guys would love to have it too. This patch is the product of a discussion a month back about session id cookies. This allows the session

RE: [PHP-DEV] Resume of my problem

2002-03-25 Thread mlwmohawk
I am assuming that he is making a very simple example for something much larger, written in C. erm, it would make more sense to use php: ?php $c = 1 + 2; print (Value C is $c); ? You need to make an extension. Look in the ext/ directory. Those are all PHP extensions.

[PHP-DEV] Session patch for ID created by handler

2002-03-24 Thread mlwmohawk
I am submitting a patch that will enable a session handler to override the default session id creation routine. This will help extensions like srm and msession. It adds a new member to the ps_module structure and defines a default if it is not overridden. session.c is also changed in that the

Re: [PHP-DEV] Resume of my problem

2002-03-24 Thread mlwmohawk
You need to make an extension. Look in the ext/ directory. Those are all PHP extensions. HI, I have a functino write in c, like as: void addvalue ( int a, int b, int *c ) { *c = a + b; } in php ? phpinclude (alexlib); addvalue ( 1, 2, c ); print (

[PHP-DEV] Can anyone compile CVS?

2002-03-15 Thread mlwmohawk
I am trying to compile PHP CVS. I had a working development environment. I download re2c, got all new source, and am trying to get my patches working. Alas I get the messeges included below. Is this a common problem what is very pedestrian solution, or is this something I have to slog

[PHP-DEV] Session ID routine, modifying session module structure

2002-02-23 Thread mlwmohawk
I am working on adding a new member to the session module structure. It will create the session ID for the session module. It will default to NULL, in which case the session code will call its normal session_create_id function, however, if the modules define a custome session_id creation

[PHP-DEV] Override session id creation and cookie creation?

2002-02-18 Thread mlwmohawk
In my module, msession, I have routines that guarentee that a session id is unique within a cluster of web servers. The problem I have is that session creates and sets the session cookie without some mechanism to allow me to replace the session id string, prior to the session code setting the

Re: [PHP-DEV] Override session id creation and cookie creation?

2002-02-18 Thread mlwmohawk
Try running some tests on this where you have the page you're talking about and an additional page that dumps all environment variables you can think of. Or, if you have a way to snoop the HTTP request (2nd request) from your browser, that would be even better. Your problem *might* be

Re: [PHP-DEV] Override session id creation and cookie creation?

2002-02-18 Thread mlwmohawk
Wow, that's nasty. :) The cookie to get picked up will be the first one encountered as the Cookie header's value is parsed from left to right. Are these session cookies or persistent? I'm quite confused as to how the browser is keeping two identical cookies. I'll try to look more into

[PHP-DEV] msession and mod_mm

2002-02-17 Thread mlwmohawk
I had a report of a problem with mod_mm and msession. If you configure PHP to use both msession and the mm session handler, you will render apache unable to start. The session.save_path is used by both msession and mod_mm. When mod_mm uses it, it expects it to be a valid working directory.

Re: [PHP-DEV] msession tech note, 'feature' (buglet), call for

2002-02-13 Thread mlwmohawk
At 10:16 PM 2/12/2002 -0500, [EMAIL PROTECTED] wrote: There are a number of ways to deal with this, but creating a socket pool of active sockets, and have a number of threads handle the sockets in a classing queue fashion seems like the best way. Anyone have a better idea? Either do a thread

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-10 Thread mlwmohawk
Stig S. Bakken wrote: Well, shouldn't Mark, who maintains the code in question, be the one to decide whether a couple of extra ifdefs makes his code unmaintainable? Well, needs msession a ''prime time seat'' in /php4/ext/, or wouldn't we all be better off putting it into /pear/? That

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-10 Thread mlwmohawk
I think the issue is not compatibility with external libraries but with previous versions of the engine. IMHO, there is no reason for a module in the HEAD branch to be compatible with older versions of PHP. In the case of MySQL and GD, the ifdefs are used to maintain compatibility with the

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-10 Thread mlwmohawk
What I don't like is the attitude of the primary maintainer of the msession extension. He reverts patches by other PHP contributors without discussing it. I can't recall ever reverting a patch. I recall being accused of it, and when I asked for more details about what was lost/reverted

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-05 Thread mlwmohawk
[EMAIL PROTECTED] wrote: We have been down this road before. There is a reasonable expectation that extensions may differ subtly from extension to extension. I see no need to fork my source for 4.0.x and 4.1.x compatibility when it is simple enough to do with macros and maintain one source

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-05 Thread mlwmohawk
[EMAIL PROTECTED] wrote: Removing backward compatibility for aesthetic reasons is bogus. To be perfectly honest, I think the whole PHP extension API is truly ugly. The removal of a few #ifdefs will not a Mona Lisa make. to me readability is a maintainance issue, not an aestheic one ...

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-05 Thread mlwmohawk
[EMAIL PROTECTED] wrote: This sort of bothers me. Who is this our you talk about? As contributor of the msession extension, am I not also part of our and don't I get a say on the priorities of msession? not if these priorities are in contradiction to the overall goals, and as such BC is

Re: [PHP-DEV] Bug #15390: Persistent OCI8 Connections Get Poisoned

2002-02-05 Thread mlwmohawk
We are seeing this problem too. I am thinking of having a standard error page which executes posix_kill ( pos_getpid()) ; On Oracle errors. From: [EMAIL PROTECTED] Operating system: RedHat 6.2 PHP version: 4.0.6 PHP Bug Type: OCI8 related Bug description:

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession msession.c

2002-02-04 Thread mlwmohawk
If you want to maintain compatibility to 4.0.6, do it someplace else. Anything in PHP cvs should be compatible with the latest CVS. Or move your extension elsewhere. I appreciate your position, but the source checked in *IS* compatible with the latest version of PHP and uses the latest APIs.

[PHP-DEV] Bug in msessiond/phoenix

2002-01-15 Thread mlwmohawk
If you are using msesson, and have downloaded phoenix-011223a.tgz you are encouraged to update to phoenix-011223b.tgz, there is a small typo takes the address of a pointer instead of the pointer in reqmsession.cpp, in reqUniq() and reqRandStr(). Memory corruption is very likely. -- PHP

[PHP-DEV] Msession and redundancy

2001-10-02 Thread mlwmohawk
After just announcing msession, I am already getting requests for some sort of hot spare system. OK, here is the question: how hot is hot? A periodic update, where once a minute or so, changes are batched out to the hot spare. A really hot spare where all write actions are mirrored on to the

Re: [PHP-DEV] Do database resources sleep at night?

2001-10-02 Thread mlwmohawk
Hello, I am writing a book on PHP with Andrei Zmievski and I asked him a question on how resources are handled and he suggested posting the question here. Hi Andrei, I am doing the 2nd database chapter and had some problems that I hope you can clarify: 1. Are open resources (eg.

Re: [PHP-DEV] ./configure problem (4.0.8-dev)

2001-09-30 Thread mlwmohawk
If you enable msession, you have to have the phoenix library installed. Right now it is expected to be in /usr/local/phoneix. If you have it somewhere else, just make a symlink. I would like to try msession so, I deleted and created new configure script with ./buildconf. configure script

Re: [PHP-DEV] Re: ./configure problem (4.0.8-dev)

2001-09-30 Thread mlwmohawk
This is my bug and I am working on it now. I need to add a test in config.m4 to test whether or not phoenix is installed and built. the msession extension will not build if phoenix is not installed in /usr/local/phoenix. Nobody has problem with configure script generated by buildconf?

Re: [PHP-DEV] Re: ./configure problem (4.0.8-dev)

2001-09-30 Thread mlwmohawk
Oops, this is not my bug, I thought this was a continuation of something else. (I should read the message before responding.) This is my bug and I am working on it now. I need to add a test in config.m4 to test whether or not phoenix is installed and built. the msession extension will not

Re: [PHP-DEV] Re: ./configure problem (4.0.8-dev)

2001-09-30 Thread mlwmohawk
Do a cvsup of ext/msession, Jon Parise rewrote my config.m4, and it seems pretty good. I should not legally be permitted to edit config.m4 scripts. Of course, you will have to run buildconf again to get it into the configure script. Also, if you are using FreeBSD you will need to grab

[PHP-DEV] In C, how do I access an associative array?

2001-09-25 Thread mlwmohawk
If I do this in PHP: ? $array = array(); $array[foo] = bar; $array[hey] = you; $array[pink]=floyd; myext_function($array); ? How do I find all the keys and values out of that array in my extension? Is there a way? -- PHP Development Mailing List

Re: [PHP-DEV] In C, how do I access an associative array?

2001-09-25 Thread mlwmohawk
On Tue, Sep 25, 2001 at 09:00:18AM -0400, [EMAIL PROTECTED] wrote: If I do this in PHP: ? $array = array(); $array[foo] = bar; $array[hey] = you; $array[pink]=floyd; myext_function($array); ? How do I find all the keys and values out of that array

[PHP-DEV] class destructors?

2001-09-24 Thread mlwmohawk
Just a thought. I have been using PHP for a while now, and have wondered why it does not support class destructors? It would be a very useful thing. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP-DEV] SquirrelMail?

2001-09-23 Thread mlwmohawk
Has anyone else noticed that the current released version of squrrelmail does not work with the CVS version of PHP? It seems that they are re-including PHP files. This could means that either the mechanism they use to keep this from happening has changed or that it wasn't an error before. The

Re: [PHP-DEV] Fw: Bumping PHP to support 8byte integers

2001-09-23 Thread mlwmohawk
[Jeroen van Wolffelaar [EMAIL PROTECTED]] Hi, For a scripting language, integers should IMHO be bounded by a number that will reasonally not be bound by numbers that will be used in normal scripts. That is currently not the case, 4 bytes are insufficient IMHO. Why not make sure PHP

Re: [PHP-DEV] Re: [Zend Engine 2] Bumping PHP to support 8byte integers

2001-09-23 Thread mlwmohawk
On 23 Sep 2001, Stig Sæther Bakken wrote: [Jeroen van Wolffelaar [EMAIL PROTECTED]] In PHP performance is IMHO a bit less important than in DBMS's. If you're after performance you shouldn't use a scripting language anyway :). Sorry for starting, but this is just nonsense. First of

Re: [PHP-DEV] Fw: Bumping PHP to support 8byte integers

2001-09-23 Thread mlwmohawk
I would be very worried about making numbers 8 bytes by default, unless the CPU supports them natively. There are a lot of consequenses involved with something like that. Assuming a 32 bit register system (x86) integers will no longer fit in registers. This changes EVERYTHING, from passing

Re: [PHP-DEV] Re: Seeding rand() at process start?

2001-09-22 Thread mlwmohawk
srand(); As of the CVS version of PHP, if you leave the seed out, the rand implementation will autogenerate it for you (it really wasn't that hard beforehand, but...) I'm currently debating whether seeding at startup is a good idea, because alot of scripts don't

[PHP-DEV] Seeding rand() at process start?

2001-09-21 Thread mlwmohawk
Does it make sense for PHP to seed rand() with srand() when it starts up, during MINIT in basic_functions.c? It just seems that there is no good way to ensure you have a good seed for random, and if rand() were ready to use, out of the box a lot of people would not be pulling their hair out

Re: [PHP-DEV] Re: Seeding rand() at process start?

2001-09-21 Thread mlwmohawk
That's not the point. If PHP seeds the random number generator at MINIT time, with a pretty good random seed it will save a lot of work for devlopers tying to use rand() to come up with a good random number. As it is now, they need some sort of flag that indicates that they have seeded the

[PHP-DEV] Zend CVS doesn't compile

2001-09-21 Thread mlwmohawk
Tried latest cvs update from zend and yy_state_type is typedef'ed in multiple places. Attached is a patch which should allow you to compile. I'm not sure what the procedure is for getting the fix back to zend. patch.zend -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

[PHP-DEV] New extension: ext/msession

2001-09-20 Thread mlwmohawk
At my company we use Oracle as the main back-end server. We implemented our own session class system. Unfortunately we noticed that its a pretty big load on the server. So I started looking at PHP sessions. The problem was the same, the shared session systems, NFS and SQL, assumed reliable disk

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession CREDITS Makefile Makefile.inREADME config.m4 libs.mk msession.c msession.php php_msession.hreqclient.h

2001-09-19 Thread mlwmohawk
Sorry, I guess I messed up. Which file is GPL? I will chage it to be PHP license. The Library it requires is LGPL. So I hope that isn't an issue. The extension is an interface to a stand-alone session management daemon. Mark L. Woodward wrote: mlwmohawk Wed Sep 19 09:14:23

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/msession CREDITS Makefile

2001-09-19 Thread mlwmohawk
Sebastian Bergmann wrote: and the fact that the source is licensed under the GPL. which is not a bad thing in the first place but needs an additional statement that you give special permission with php and especially the zend engine as these are not yet compatible with the gpl The

[PHP-DEV] changes to ext/session

2001-09-19 Thread mlwmohawk
I wish to add two files to ext/session, and make some minor changes to session.c and Makefile.in ? mod_msession.h ? mod_msession.c cvs server: Diffing . Index: Makefile.in === RCS file: /repository/php4/ext/session/Makefile.in,v

Re: [PHP-DEV] pthread building problem

2001-09-14 Thread mlwmohawk
Hi, I am developing an external php module which uses the pthread on FreeBsd. It works well when compiling a standalone php binary. But if I use the --with-apxs option to build the libphp4.so, then I got the following error: Syntax error on line 205 of

Re: [PHP-DEV] Bug #13229 - some analysing

2001-09-14 Thread mlwmohawk
Hi f0lks, I've just subscribed to this mailing list because I have a problem with session handling that seems to be a bug (the one described at http://www.php.net/bugs.php?id=13229). I've spend a lot of time on analyzing session handling so I hope my results help somebody to fix this