[PHP-DEV] Sort doesn't reindex all arrays (Bug #12572)

2002-08-16 Thread Adam Maccabee Trachtenberg
I want to propose the following patch to Zend to fix a minor inconsistency. The sort() functions reindex arrays of length > 1, but not of length == 1. See http://bugs.php.net/bug.php?id=12572 for an example. The patch is: Index: zend_hash.c ==

[PHP-DEV] PHP apxs installs on AIX

2002-08-16 Thread Dan Kalowsky
Hello again list... While scanning through some of the bugs tonight, I came across a real jem. A large number of bugs are submitted dealing with the fact that PHP on AIX machines does not install. There is some minor hackery done to enable this, and it's actually documented only through the bug

[PHP-DEV] Re: [PHP-DOC] Re: #3793 [Ana->Opn]: session.gc_maxlifetime does notwork

2002-08-16 Thread Rasmus Lerdorf
Ok, thinking a bit more about this.. session_readonly() really should be implemented. Imagine a system where you have dynamically generated images/flash/pdf or even just a straight framed site. You use sessions to pass information around between not only pages, but also to the dynamically gener

Re: [PHP-DEV] Tru64, snprintf and bug #1298

2002-08-16 Thread Dan Kalowsky
Well it's starting to sound like it might be necessary to do this. While nohn's compiler is working, it seems that at least one other Tru64 person is having difficulty. Looking at the influx of bugs as well, I'm wondering if Tru64 is going to be more of a problem for the project as whole... or i

Re: [PHP-DEV] Re: #18401 [Opn->Ana]: shuffle() broken (fwd)

2002-08-16 Thread Adam Maccabee Trachtenberg
On Fri, 16 Aug 2002, Tim Converse wrote: > --- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > If you don't believe me, take your algorithm and run it > many times, tracking how often element i in the input moves > to become element j in the output, and print the resulting > counts out as an n-by-n tab

Re: [PHP-DEV] Re: #18401 [Opn->Ana]: shuffle() broken (fwd)

2002-08-16 Thread Tim Converse
--- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > Tim Converse wrote: > > --- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > > > >>Dan Kalowsky wrote: > >> > >>>Anyone able to confirm or deny the validity of this > >> > >>patch? > >> > >>> > >>>-- Forwarded message -- > >>> > >>>[2002-07-

Re: [PHP-DEV] Trying to input a webpage - need help

2002-08-16 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ken, This code chunk should do the trick. - -- php code -- $data ="insert=data&location=here"; /* This would be the data that needs to be posted to the site - urlencode it */ /* Headers for http transactionreplace /folder/pages.ext */ $h

Re: [PHP-DEV] Re: #18401 [Opn->Ana]: shuffle() broken (fwd)

2002-08-16 Thread Yasuo Ohgaki
Tim Converse wrote: > --- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > >>Dan Kalowsky wrote: >> >>>Anyone able to confirm or deny the validity of this >> >>patch? >> >>> >>>-- Forwarded message -- >>> >>>[2002-07-18 01:03:51] [EMAIL PROTECTED] >>> >>>The shuffle() function in the CVS

[PHP-DEV] Re: #3793 [Ana->Opn]: session.gc_maxlifetime does not work

2002-08-16 Thread Zeev Suraski
Just wondering - why are we even using atime? I think lots of filesystems don't support it, but regardless of that - as far as I recall from reading the session code, if a session is opened for reading - it is also going to be rewritten at the end of the session. So, it should be quite safe t

Re: [PHP-DEV] trans-sid warning?

2002-08-16 Thread Rasmus Lerdorf
> Edin Kadribasic wrote: > > > > > I absolutely agree with Stefan here. It is *not* PHP's job to > > secure > > > a connection. SSL does this. > > > > Like that's going to stop users from pasting url with SID in it to > > an email, which is what this thread is about. > > > > Edin > > The issue is

[PHP-DEV] Unserialize Bug #17728 and Re: [PHP-DEV] Data Hiding Implementation in PHP Classes

2002-08-16 Thread Ben Dischinger
Thanks so much for your help Brad and Sander. I've downloaded the newest Zend2 from cvs and compiled it into Php-4.3.0-dev. All of the features of data hiding which I would need for this project look nicely implemented in this engine! But now I'm running a bit of a dilemna. I'm saving seria

[PHP-DEV] Trying to input a webpage - need help

2002-08-16 Thread Ken Meyer
I am trying to write a script that will read a page from another website. So long at the page is accessed via a "GET", this is no problem; I just need to open the page using fopen, readfile or file_get_contents. The problem is that I need to access a page that requires a "POST". Any suggestions

Re: [PHP-DEV] Tru64, snprintf and bug #1298

2002-08-16 Thread Marcus Börger
First of all the internal replacement of snprintf fails if size is 1 or 0. Second it is not C99 complient and third we do not include it the right way. We would need to check if snprintf is available and if it is C99 complient and if not use the replacement. I had a lengthy discussion with the ph

[PHP-DEV] Tru64, snprintf and bug #1298

2002-08-16 Thread Dan Kalowsky
Yes, that is correct, bug #1298 (it's existed for a LONG time). The user is having some difficulty compiling the Zend libraries for 4.2.2. Mainly it seems that snprintf is turning up as an unresolved symbol. I asked him to grep through the /usr/include looking for it, and the result was nothing.

[PHP-DEV] Re: cvs: php4 / README.PARAMETER_PARSING_API

2002-08-16 Thread Andrei Zmievski
So, should we go ahead and change it to 'long' then? The existing code would be affected of course.. On Thu, 04 Jul 2002, Yasuo Ohgaki wrote: > It sounds like changing API (int -> long) is better to me. > _zvalue_value.lval's type is long also. > > -- > Yasuo Ohgaki > > Sascha Schumann wrote: >

[PHP-DEV] multipart/form-data bug [crossposted]

2002-08-16 Thread James E. Flemer
Sorry for the cross-post, but I don't know which side is causing this bug, Apache or PHP. OS: Solaris 8 Apache: 1.3.26 PHP: 4.2.2 (DSO) By default, PHP sets "max_post_size" to 8Mb. If the post data exceeds that, it seems PHP discards all of it (no post data gets to the script). In my situation "

[PHP-DEV] RE: [Zend Engine 2] RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-08-16 Thread phpsurf
sure, you can try with brad's script, removing his includes. this gives the following files, all in the same directory: Foo.php MyFoo.php index.php when you call index.php, it crashes with the following error: Fatal error: Class myfoo: Cannot inherit from undefined class foo in c:\webroo

[PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-16 Thread Thies C. Arntzen
hi, this patch adds the extremely useful debug_backtrace() function to ZE1. as it's more-or-less the same implementation as in ZE2 so it should be "fast and efficient" enough for inclusion in 4.3 IMHO. it has one extra feature over the ZE2 implementation by giving s

RE: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-08-16 Thread Andi Gutmans
At 06:24 PM 8/7/2002 +0200, phpsurf wrote: >Hi > >I'm testing this great feature ... >but unfortunately, it lokos like it doesn't work for extended classes either >! > >in brad's example (in the history of this mail) >you cannot remove the include_once statements in the children classes (I >would

Re: [PHP-DEV] ZE2 and PHP

2002-08-16 Thread Zeev Suraski
At 18:26 16/08/2002, Dan Hardiker wrote: > >>2. When is it expected to be available in a development (experimental) > >> or production release? > > > > It already is - go to www.php.net, and search for 'alpha'. > > > http://www.php.net/do_download.php?download_file=php-4.3.0-dev-zend2-alpha2.tar.

Re: [PHP-DEV] ZE2 and PHP

2002-08-16 Thread Dan Hardiker
>>2. When is it expected to be available in a development (experimental) >> or production release? > > It already is - go to www.php.net, and search for 'alpha'. > http://www.php.net/do_download.php?download_file=php-4.3.0-dev-zend2-alpha2.tar.gz Forgive me for my ignorance... but does that mean

Re: [PHP-DEV] objects as string and arrays as string

2002-08-16 Thread Brad LaFountain
I went back and read the lists about why people don't like __to_string() or __string_value() method. the arguments were the differences in when convert_to_string vs zend_make_printable_zval were called differently. I believe andi isn't against it but wants it implemented good and zeev was all fo

Re: [PHP-DEV] ZE2 and PHP

2002-08-16 Thread Zeev Suraski
At 17:43 16/08/2002, Brad LaFountain wrote: >--- Zeev Suraski <[EMAIL PROTECTED]> wrote: > > At 14:21 16/08/2002, Dan Hardiker wrote: > > >Hi, > > > > > >As php user's requests are getting closer and closer to what ZE2 is > > >offering (eg: back tracing, private/protected classes, extra inheritan

[PHP-DEV] Gathering library thread safety info

2002-08-16 Thread Rasmus Lerdorf
Folks, I started a table here: http://httpd.apache.org/docs-2.0/developer/thread_safety.html To try to get started down the bumpy road of figuring out which PHP extensions are likely to be thread unsafe based on their usage of thread unsafe libraries. Please help out by either adding more libra

Re: [PHP-DEV] ZE2 and PHP

2002-08-16 Thread Brad LaFountain
--- Zeev Suraski <[EMAIL PROTECTED]> wrote: > At 14:21 16/08/2002, Dan Hardiker wrote: > >Hi, > > > >As php user's requests are getting closer and closer to what ZE2 is > >offering (eg: back tracing, private/protected classes, extra inheritance > >functionality, etc) ... > > > >1. When is ZE2 exp

Re: [PHP-DEV] ZE2 and PHP

2002-08-16 Thread Zeev Suraski
At 14:21 16/08/2002, Dan Hardiker wrote: >Hi, > >As php user's requests are getting closer and closer to what ZE2 is >offering (eg: back tracing, private/protected classes, extra inheritance >functionality, etc) ... > >1. When is ZE2 expected to be released (if its not already) My guess is early

Re: [PHP-DEV] objects as string and arrays as string

2002-08-16 Thread Jason T. Greene
stratification = stringification (damn spellchecker) On Fri, 2002-08-16 at 09:30, Jason T. Greene wrote: > Perl has this (it's called "stratification"), and it is quite useful. > One example is that you have an error object that contains various > properties (line location, error class, error lev

Re: [PHP-DEV] objects as string and arrays as string

2002-08-16 Thread Jason T. Greene
Perl has this (it's called "stratification"), and it is quite useful. One example is that you have an error object that contains various properties (line location, error class, error level, error code, etc). And on evaluating the object as a string, it dumps it as an easy to read error message. -

Re: [PHP-DEV] objects as string and arrays as string

2002-08-16 Thread Marcus Börger
At 15:52 16.08.2002, Brad LaFountain wrote: >I want to throw together a quick hack so that objects can implement a >__as_string() method that will get called when the string is used in a string >contex. Instead of append "Object". > >$s = (string)$object; > or >$s .= $object; > >also the same

[PHP-DEV] objects as string and arrays as string

2002-08-16 Thread Brad LaFountain
I want to throw together a quick hack so that objects can implement a __as_string() method that will get called when the string is used in a string contex. Instead of append "Object". $s = (string)$object; or $s .= $object; also the same things with arrays that will do something similar to

Re: [PHP-DEV] Build warnings on OSX in sockets

2002-08-16 Thread Jason T. Greene
All of the warning messages you list, with the exception of the last, is specific to the readmsg() sendmsg() code which uses msghdr's (A messgae header has all void * members). They should not cause any problems, but I will clean them up. The last message is referring to a buffer that is used in

Re: [PHP-DEV] Data Hiding Implementation in PHP Classes

2002-08-16 Thread Marcus Börger
We also have public as an alias for variable. marcus At 15:09 16.08.2002, Brad LaFountain wrote: >That .txt only talks about private members. Zend2 also implements protected >data members. > > - brad >--- Sander Roobol <[EMAIL PROTECTED]> wrote: > > The Zend Engine 2 implements this. See http:/

Re: [PHP-DEV] Data Hiding Implementation in PHP Classes

2002-08-16 Thread Brad LaFountain
That .txt only talks about private members. Zend2 also implements protected data members. - brad --- Sander Roobol <[EMAIL PROTECTED]> wrote: > The Zend Engine 2 implements this. See http://www.php.net/ZEND_CHANGES.txt > > Sander > > On Fri, Aug 16, 2002 at 03:13:57AM -0500, Ben Dischinger wro

[PHP-DEV] ZE2 and PHP

2002-08-16 Thread Dan Hardiker
Hi, As php user's requests are getting closer and closer to what ZE2 is offering (eg: back tracing, private/protected classes, extra inheritance functionality, etc) ... 1. When is ZE2 expected to be released (if its not already) 2. When is it expected to be available in a development (experiment

Re: [PHP-DEV] trans-sid warning?

2002-08-16 Thread Giancarlo Pinerolo
Edin Kadribasic wrote: > > > I absolutely agree with Stefan here. It is *not* PHP's job to > secure > > a connection. SSL does this. > > Like that's going to stop users from pasting url with SID in it to > an email, which is what this thread is about. > > Edin The issue is also that anyone can

[PHP-DEV] domxml updates

2002-08-16 Thread Christian Stocker
Hi I fixed almost all reported bugs for domxml and made some more W3C compliant, therefore some stuff changed the behaviour (slightly). It shouldn't break BC for most of the scripts, but i can't make happy both camps (BC and W3C compliance), and i prefer W3C compliance. I would be very glad, if

Re: [PHP-DEV] Data Hiding Implementation in PHP Classes

2002-08-16 Thread Sander Roobol
The Zend Engine 2 implements this. See http://www.php.net/ZEND_CHANGES.txt Sander On Fri, Aug 16, 2002 at 03:13:57AM -0500, Ben Dischinger wrote: > Hello, > > My question is if there is anyone working on an implementation of data hiding in >php? IE Public, private, and protected data types wit

[PHP-DEV] Data Hiding Implementation in PHP Classes

2002-08-16 Thread Ben Dischinger
Hello, My question is if there is anyone working on an implementation of data hiding in php? IE Public, private, and protected data types within php classes. I can not find anywhere mentioning this besides very few websites that say it is on the "TODO" list. The research that I'm doing involv

Re: [PHP-DEV] Re: #18401 [Opn->Ana]: shuffle() broken (fwd)

2002-08-16 Thread Tim Converse
--- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > Dan Kalowsky wrote: > > Anyone able to confirm or deny the validity of this > patch? > > > > > > -- Forwarded message -- > > > > [2002-07-18 01:03:51] [EMAIL PROTECTED] > > > > The shuffle() function in the CVS is (still) broken. It

Re: [PHP-DEV] PHP extension initialisation

2002-08-16 Thread Pete Dishman
Hi, I asked about this a few weeks ago with apache on windows. The best answer I got was from George Schlossnagle: I believe this is because when apache does it's intial configtest run as part of start (to validate it's config), it has to do a complete startup (otherwise it wouldn't know about

Re: [PHP-DEV] Hiding the remote server

2002-08-16 Thread Matthew Walker
The tool you're looking for is 'curl'. Look it up in PHP's docs. Michael said: > Is it possible to write a script that: > 1) gathers information > 2) upon clicking a "submit" button, "posts" this information to a remote > server for processing. 3) the remote server, by default, will generate > re