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

2002-06-13 Thread Andi Gutmans
At 07:00 PM 6/13/2002 +0100, Ivan Ristic wrote: > > > > The second problem is that I don't see it working with nested classes. > > > > Is it good enough to only have this work with classes in the global >scope? > > > > > > I am not really familiar with nested classes; is it because > > > you d

[PHP-DEV] Warnings in HEAD

2002-06-13 Thread Sebastian Bergmann
I still get these warnings: glob.c(506): warning C4090: 'function': different 'const' qualifiers glob.c(506): warning C4028: formal parameter 1 different from declaration glob.c(506): warning C4090: 'function': different 'const' qualifiers glob.c(506): warning C4028: formal parameter 2 differen

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Jani Taskinen
On Thu, 13 Jun 2002, Rasmus Lerdorf wrote: >> >I don't know offhand which versions are broken. I'd have to do some >> >research. Hence my suggestion that more research is needed before blindly >> >uncommenting something like this. >> >> It's also good practice to add comments to the code >>

[PHP-DEV] [bugzilla@apache.org: DO NOT REPLY [Bug 9821] New: - PHP... $QUERY_STRING is always empty (with GET)]

2002-06-13 Thread Aaron Bannert
You guys aren't the only ones who have to deal with the reprocussions of changing the register_globals default... (I've already sent the reporter in the right direction and closed this bug, but something tells me this won't be the last time we hear about this.) -aaron - Forwarded message

Re: [PHP-DEV] understanding resources

2002-06-13 Thread Alan Knowles
http://www.php.net/manual/en/zend.variables.resource.php - Im sure thats improved alot since I first read it :) regards alan fabwash wrote: >Something went wrong in the format of my message! > >It should read: > > > >>ZEND_FETCH_RESOURCE(resource_ptr, resource_struct *, resource_id, -1, >>"

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Rasmus Lerdorf
> >I don't know offhand which versions are broken. I'd have to do some > >research. Hence my suggestion that more research is needed before blindly > >uncommenting something like this. > > It's also good practice to add comments to the code > about things like this so that people shouldn

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Jani Taskinen
On Thu, 13 Jun 2002, Rasmus Lerdorf wrote: >> Ah..nice to get that information now. Why didn't you reply to >> my question about this when I asked it on this list? > >I don't recall seeing the question. http://marc.theaimsgroup.com/?l=php-dev&m=101952354225480&w=2 >> And I reall

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Rasmus Lerdorf
> Ah..nice to get that information now. Why didn't you reply to > my question about this when I asked it on this list? I don't recall seeing the question. > And I really didn't commit it without testing, it works fine > with Apache 1.3.24, so what might that apache version be wit

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Jani Taskinen
On Thu, 13 Jun 2002, Rasmus Lerdorf wrote: >It is actually my code and the uncommenting had to do with a bug in >Apache. The deep meaning being that leaving this code in there will make >all authentication break for some versions of Apache. Ah..nice to get that information now. Why didn't y

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Rasmus Lerdorf
It is actually my code and the uncommenting had to do with a bug in Apache. The deep meaning being that leaving this code in there will make all authentication break for some versions of Apache. -Rasmus On Fri, 14 Jun 2002, Jani Taskinen wrote: > > Yes, I did ask Stig who's code it is and

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Jani Taskinen
Yes, I did ask Stig who's code it is and he said it was propably left commented by accident. And I asked about this on php-dev a while ago..without anybody bothering to reply. So, what is the deep meaning for that to be different from what our manual say

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2002-06-13 Thread Rasmus Lerdorf
Uh Jani, how much research did you do on this one? Don't you think there is a reason that this code is commented out? On Thu, 13 Jun 2002, Jani Taskinen wrote: > sniperThu Jun 13 18:13:58 2002 EDT > > Modified files: > /php4/sapi/apache mod_php4.c > Log: > @- Fixed bug

Re: [PHP-DEV] Re: cvs: php4 /ext/session php_session.h session.c

2002-06-13 Thread Giancarlo Pinerolo
Sascha Schumann wrote: > > > I noticed this risk long time before and I think it's a kind of > > security fix as Sascha's comment, isn't it? > > That depends on your viewpoint. > > From my perspective, this is not urgent. It is not like an > attacker can gain access to the server,

Re: [PHP-DEV] understanding resources

2002-06-13 Thread fabwash
Something went wrong in the format of my message! It should read: > ZEND_FETCH_RESOURCE(resource_ptr, resource_struct *, resource_id, -1, > "resource", le_resource); > The first argument will be returned to the caller, that will be your > resource identification. > The second argument is a poin

Re: [PHP-DEV] understanding resources

2002-06-13 Thread fabwash
http://www.php.net/manual/en/zend.variables.resource.php will be a starting point. Basically you want to do this: 1) Create a destruction handler for your resource: void my_destruction_handler(zend_rsrc_list_entry *rsrc TSRMLS_DC) { } 2) Register the destruction handler: le_resource = zen

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

2002-06-13 Thread Ivan Ristic
> > > The second problem is that I don't see it working with nested classes. > > > Is it good enough to only have this work with classes in the global scope? > > > > I am not really familiar with nested classes; is it because > > you don't know the name of the file in which a nested class > >

Re: [PHP-DEV] Instantiating Objects ?

2002-06-13 Thread brad lafountain
There is no transpartent way of creating a c++ object from php. What you can do is create a php extension that will proxy the calls to your c++ object. Once you do that you can pass anything into your c++ class (querystring). take a look at ext/* in the souce distribution. - brad --- Kevin C

[PHP-DEV] understanding resources

2002-06-13 Thread Joel Dudley
Hello all, I need to write a molecular visualization extension for PHP to complete a project I am working on. It will have to work somewhat like GD by creating a resource, having other functions operate on that resource, and then output an image. I have trouble finding a good explanation of reso

[PHP-DEV] Instantiating Objects ?

2002-06-13 Thread Kevin Caporaso
Is it possible to instantiate an object from one of my c++ shared libraries (goo.so) and then call methods on that object? How efficient is PHP's way of doing it? (if possible) Also, can I pass things like the querystring and form data into that instantiated object? Thanks for any response! $Kev

[PHP-DEV] test

2002-06-13 Thread kemu
test __ jonas Geiregat ICQ#: 115695917 Current ICQ status: + More ways to contact me __ -- PHP Development Mailing List To unsubscribe, visit: h

[PHP-DEV] [arrays] read arrays from a form

2002-06-13 Thread Àlex Camps
I have a example.html --- function add() { var res=0; for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); example.result.value=res; } --- and show.php --- PHP return the error: Notic

[PHP-DEV] [arrays] read arrays from a form

2002-06-13 Thread Àlex Camps
I have a example.html --- function add() { var res=0; for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); example.result.value=res; } --- and show.php --- PHP return the error: Notic

RE: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] PHP in the future

2002-06-13 Thread Marcus Börger
At 16:46 07.06.2002, Joseph Tate wrote: >How much of C has been reused, and reused and reused again? There is no oo >in stdlib. Ah come on there is no oo in c. You should have asked for C++ and STL (and that is very much of code reuse even though its pro is its main foe: it is so much of reuse t

Re: [PHP-DEV] domxml and validation

2002-06-13 Thread Dan Allen
Christian Stocker ([EMAIL PROTECTED]) wrote: > Hi > > Some maybe already recognized it, for the others: There's DTD-Validation > in domxml available now. Excellent! Can't wait to try it out. However, I still have one very small request that maybe you can add while you are in the xmldoc funct

[PHP-DEV] domxml and validation

2002-06-13 Thread Christian Stocker
Hi Some maybe already recognized it, for the others: There's DTD-Validation in domxml available now. Just for the record, some examples how to use it. $xmldoc = xmldocfile("xhtml1.xhtml",DOMXML_LOAD_PARSING,$error); will parse the file as before, but gives you more meaningfull errormessages in

Re: [PHP-DEV] RFC: slight change to exec functions (Was Re: [PHP-DEV] why does exec() use the shell?)

2002-06-13 Thread Stefan Esser
> Are there any objections to making such a change? I don't think it > has any BC implications. It will have BC implications ;) Because it would finally allow to pass multiple parameters to a program when in safe mode... Stefan -- PHP Development Mailing List To unsubs