Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
Actually, yes it does... $foo="foobar"; instead of parse_str($QUERY_STRING); in file2.php - then file3.php echoes "foo: foobar". Obviously - otherwise there wasn't any point in having sessions. And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) with parse_str("foo=foobar") w

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Markus Fischer
On Mon, Mar 04, 2002 at 09:21:26AM +0100, Thomas Wentzel wrote : > And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) > with parse_str("foo=foobar") which also didn't set my session var, foo > So that is not the problem either! Ah! I now see what you mean! Have you

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Rasmus Lerdorf
It is. I am looking at it now. There may actually be a problem. $foo is set to foobar, but the session stays at "bar" if $foo is set via parse_str(). Something funky in the session code. parse_str() is working just fine. -Rasmus On Mon, 4 Mar 2002, Markus Fischer wrote: > On Mon, Mar 04, 2

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
hehe Thanks - I needed that :) Rasmus Lerdorf wrote: > > It is. I am looking at it now. There may actually be a problem. $foo is > set to foobar, but the session stays at "bar" if $foo is set via > parse_str(). Something funky in the session code. parse_str() is working > just fine. > > -R

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Rasmus Lerdorf
Use import_request_variables('g') instead of parse_str($QUERY_STRING) for now. It does the same thing in your case in a more efficient manner. I think the session code is holding a reference to the original data and php_treat_data() is not doing the right thing when overwriting existing vars. Or s

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
OK! Thanks, Rasmus! That will allow me to keep working on my current model /Thomas Rasmus Lerdorf wrote: > > Use import_request_variables('g') instead of parse_str($QUERY_STRING) for > now. It does the same thing in your case in a more efficient manner. I > think the session code is holding a

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
I'm very sorry, but it seems - that the solution with import_request_variables is even worse. I've tried import_request_variables with ("g","f") and ("g","foo") but now foo isn't even set in file2.php (the url arg to file3 is now "bar") Thomas Wentzel wrote: > > OK! Thanks, Rasmus! > > That wil

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Rasmus Lerdorf
Which version of PHP? I tested your file123 thing here and it worked just fine. On Mon, 4 Mar 2002, Thomas Wentzel wrote: > I'm very sorry, but it seems - that the solution with > import_request_variables > is even worse. I've tried import_request_variables with ("g","f") and > ("g","foo") > bu

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
PHP 4.1.2 std. no CVS Rasmus Lerdorf wrote: > > Which version of PHP? I tested your file123 thing here and it worked just > fine. > > On Mon, 4 Mar 2002, Thomas Wentzel wrote: > > > I'm very sorry, but it seems - that the solution with > > import_request_variables > > is even worse. I've trie

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Rasmus Lerdorf
Should work just fine. But since you don't seem to care how you do it, I don't understand why you don't just do the obvious. Loop through the GET vars and set each one. ie. foreach($HTTP_GET_VARS as $name=>$val) $$name=$val; -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: > PHP 4.1.2 std.

[PHP-DEV] FW: [PHP-CVS] cvs: php4 /ext/odbc birdstep.c config.m4 php_birstep.h php_odbc.c php_odbc.h php_velocis.h setup.stub velocis.c /main build-defs.h.in

2002-03-04 Thread James Cox
Hey, if anyone has access to a Birdstep server (velocis) can you QA this? I'm waiting on seeing if the Birdstep company will send me a copy of their product - however it's just name changes.. James -Original Message- From: James Cox [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 200

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
As I mentioned earlier - it is not because I don't know how to circumvent it but next to actually fixing the bugs/issues I just felt that reporting them would be a good thing :) /Thomas Rasmus Lerdorf wrote: > > Should work just fine. But since you don't seem to care how you do it, I > don't u

Re: [PHP-DEV] FW: [PHP-CVS] cvs: php4 /ext/odbc birdstep.c config.m4php_birstep.h php_odbc.c php_odbc.h php_velocis.h setup.stub velocis.c /main build-defs.h.in

2002-03-04 Thread derick
On Mon, 4 Mar 2002, James Cox wrote: > if anyone has access to a Birdstep server (velocis) can you QA this? I'm > waiting on seeing if the Birdstep company will send me a copy of their > product - however it's just name changes.. It should get tested anyway, you could have made typoes p.e. Deri

Re: [PHP-DEV] makerpm script in source distri

2002-03-04 Thread Derick Rethans
Hello Arjen, I applied the patch, thx Derick On 4 Mar 2002, Arjen Lentz wrote: > Hi, (particularly Zak) > > I sometimes create RPMs from the source distri (any 4.x version), so I > can do an easy install on some RH machines. The 'makerpm' script in the > root of the source tree does this quite

[PHP-DEV] php_ticks.c patch

2002-03-04 Thread Jon Parise
The following patch quells a warning under 'cc: WorkShop Compilers 5.0 98/12/15 C 5.0' (Solaris 8). I think it's theoretically correct, but I'd like a second opinion before I commit the change. -- Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ :

[PHP-DEV] your patch to session.c broke it (testcase included)

2002-03-04 Thread Thies C. Arntzen
zeev, your patch http://cvs.php.net/diff.php/php4/ext/session/session.c?r1=1.277&r2=1.278&ty=u broke the session module: testcase (run multiple times using php-cgi from the command-line) after your patch the changed value of $hallo is no longer remembered. hmm, a

[PHP-DEV] slow ldap operation

2002-03-04 Thread Didier Geheniau
Hi, i have the next code that puts all groups of an apllication from ldap into an array with membership check of the current user: function check_group($group, $uid, $ds) { global $LDAP_SERVER_ADDRESS; global $LDAP_SERVER_PORT; global $LDAP_BASE_DN; global $appnm; global $cfg; $authori

Re: [PHP-DEV] PHP module creation

2002-03-04 Thread Steven J. Sobol
On Sun, 3 Mar 2002, Steven J. Sobol wrote: > > I've followed the instructions at http://www.zend.com/apidoc/ > and generated test code for a php extension, and can get it to compile > into a PHP binary, but I'm having difficulty finding the info I need to > get it to compile as a shared library.

Re: [PHP-DEV] PHP module creation

2002-03-04 Thread Steven J. Sobol
On Sun, 3 Mar 2002, Rasmus Lerdorf wrote: > Make sure you have: > > PHP_EXTENSION(exif, $ext_shared) > > in your config.m4 and then simply do: > > ./configure --with-foo=shared > > You will find it in your ./modules directory. I haven't tried this yet. I will later. I did find phpize, whic

[PHP-DEV] knowing an ip address machine

2002-03-04 Thread Eduardo Melo
Pleasse, How is possible to get information about the machine that is accessing  a PHP file ? as such as : www.anyaddress.org/user.php best regards Eduardo Melo computer programmer Get your FREE download of MSN Explorer at http://explorer.msn.com. -- PHP Development Mailing List To unsubscribe

Re: [PHP-DEV] php + cygwin - some more

2002-03-04 Thread Edin Kadribasic
> >Ok, seeing that some people indeed do use cygwin to build PHP, here's > >report about my achievements: > > Just checked with new cygwin and it builds, compiles but does not link, > seem to be a problem with underscore generation. The cli executable > does not find its functionsmaybe i check

Re: [PHP-DEV] knowing an ip address machine

2002-03-04 Thread Sander Roobol
You're asking on the wrong list; use [EMAIL PROTECTED] for questions like these... PHP-DEV is for the development OF PHP, not for developing WITH PHP. Sander On 2002.03.04 14:43 Eduardo Melo wrote: (I like the html-support in this client :) -- PHP Development Mailing List

[PHP-DEV] PHP4 & SQL: Invalid statement

2002-03-04 Thread Cato Larsen
Hello! When I run this SQL in PHP I get an error: Snip --> $sql="SELECT * FROM site WHERE sID='$wID'"; $result=mysql_query($sql,$db); $row = mysql_fetch_array($result); $content = $row["content"]; <--Snip The problem is that I believe that it can't fetch the code from the content as it is a "L

Re: [PHP-DEV] PHP module creation

2002-03-04 Thread Rasmus Lerdorf
Yup, it is. But you still need to add that PHP_EXTENSION line to your config.m4 if it isn't already there. -Rasmus On Mon, 4 Mar 2002, Steven J. Sobol wrote: > On Sun, 3 Mar 2002, Rasmus Lerdorf wrote: > > > Make sure you have: > > > > PHP_EXTENSION(exif, $ext_shared) > > > > in your config.m4

Re: [PHP-DEV] FW: [PHP-CVS] cvs: php4 /ext/odbc birdstep.c config.m4 php_birstep.h php_odbc.c php_odbc.h php_velocis.h setup.stub velocis.c /main build-defs.h.in

2002-03-04 Thread Steve Meyers
[EMAIL PROTECTED] wrote: > On Mon, 4 Mar 2002, James Cox wrote: > >> if anyone has access to a Birdstep server (velocis) can you QA this? I'm >> waiting on seeing if the Birdstep company will send me a copy of their >> product - however it's just name changes.. > > It should get tested anyway,

[PHP-DEV] [PATCH] add appname argument to sybase_connect

2002-03-04 Thread Christophe Sollet
Attached patch add an optional 'appname' argument to sybase_connect (both ct and db interface). The first goal of this patch is, obviously, to be able to set the appname to something more informative that just 'PHP 4.0' if your db server is php dedicaced. Futhermore, it's allow to make separate c

Re: [PHP-DEV] PHP module creation

2002-03-04 Thread Steven J. Sobol
On Mon, 4 Mar 2002, Rasmus Lerdorf wrote: > Yup, it is. But you still need to add that PHP_EXTENSION line to your > config.m4 if it isn't already there. Did that. I actually got dl'ing of my test module working using phpize. Wrote a function that displays info in phpinfo() too. I think it's pre

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

2002-03-04 Thread Sebastian Bergmann
Sascha Schumann wrote: > Log: > revert last commit, puts does more through putc. ... and I was half-way through coming up with a patch to make this work in thread-safe builds :-) -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I h

[PHP-DEV] New function (repost from php-cvs)

2002-03-04 Thread Marcus Boerger
hi guys, what about a new function called strnlen str*n*len which will return the length of a string with a given maximum to avoid problems with strings not zero terminated. i suggest we put this in a single .c file near strlcpy.c /* {{{ php_strnlen * get length of string if buffer if less th

[PHP-DEV] Re: New function (repost from php-cvs)

2002-03-04 Thread Jim Winstead
Marcus Boerger <[EMAIL PROTECTED]> wrote: > what about a new function called strnlen str*n*len which will > return the length of a string with a given maximum to avoid > problems with strings not zero terminated. why not just use memchr()? jim -- PHP Development Mailing List

[PHP-DEV] Get object name

2002-03-04 Thread Klaus Reimer
Hi, I need to acces the name of an object in a class method written in C. How can I do this? Example: I have the following PHP code $Test=new CMyClass(); $Test->print_obj_name(); and I have the following print_obj_name()-method written in C: ZEND_NAMED_FUNCTION(cmyclass_print_obj_name)

Re: [PHP-DEV] php_ticks.c patch

2002-03-04 Thread Zeev Suraski
Looks fine... At 12:51 04/03/2002, Jon Parise wrote: >The following patch quells a warning under 'cc: WorkShop >Compilers 5.0 98/12/15 C 5.0' (Solaris 8). I think it's >theoretically correct, but I'd like a second opinion before I >commit the change. > >-- >Jon Parise ([EMAIL PROTECTED]) . Inf

Re: [PHP-DEV] your patch to session.c broke it (testcase included)

2002-03-04 Thread Zeev Suraski
At 13:18 04/03/2002, Thies C. Arntzen wrote: > zeev, > your patch > >http://cvs.php.net/diff.php/php4/ext/session/session.c?r1=1.277&r2=1.278&ty=u > > broke the session module: > > testcase (run multiple times using php-cgi from the command-line) > >session_id("thies"); >session_s

[PHP-DEV] Re: Get object name

2002-03-04 Thread l0t3k
you can do this only with a not-so nice hack. essentially you have to manually search the active symbol table stack for a zval * which equals your variable. zend_hash_find wont help you, since you're doing a "reverse" lookup. so the process is something like (totally OTTOMH) HashTable *table

[PHP-DEV] php_error & $php_erormsg

2002-03-04 Thread Marcus Boerger
Question, do we have a function that resets the $php_errormsg variable before returning from a php function (Then one could write E_NOTICE to log but not generae info returning in $php_errormsg)? marcus ->>> mailto:[EMAIL PROTECTED] <<< I don't want to start any b

Re: [PHP-DEV] Re: Get object name

2002-03-04 Thread Hartmut Holzgraefe
l0t3k wrote: > you can do this only with a not-so nice hack. essentially you have to > manually search the active symbol table stack for a zval * which equals your > variable. zend_hash_find wont help you, since you're doing a "reverse" > lookup. ... and your chances of getting the right name in

[PHP-DEV] Does function ImageTTFText work with php 4.1.2 and freetype 2.0.5?

2002-03-04 Thread Ziying Sherwin
We installed php 4.1.2 with freetype 2.0.5 library support on our Solaris 2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() stopped to work properly with the new installation. We used the following sample code from php web site for testing: TTF result "; echo " ";

[PHP-DEV] New Module

2002-03-04 Thread Keyser Soze
Hi all, I have developed a new module that may be of interest of you. I'm putting it under GNU license. The module consist of two functions: bool cfg_set(string file,assoc array vars): it saves configurations in vars crypted into file array cfg_set(string file): returns the associative array un

Re: [PHP-DEV] {NULL,NULL,NULL}

2002-03-04 Thread Vlad Krupin
Sorry, couldn't reply earlier - I was away on my honeymoon ;) Yes, the change is cool - I guess, I was too happy with the 'Cut' shortcut when Copy&Pasting code from aspell a couple of years ago :) Thanks for noticing Vlad Yasuo Ohgaki wrote: > [EMAIL PROTECTED] wrote: > >> ID:

[PHP-DEV] Re: [PHP] Does function ImageTTFText work with php 4.1.2 and freetype 2.0.5?

2002-03-04 Thread Tom Rogers
Hi The following worked for me with gd gd-2.0.1 php-4.1.2 freetype-2.0.5 (putting html in the jpeg output didn't work for me :) for other people having trouble getting this to work here are the various settings that worked for me on linux: gd-2.0.1 Makefile... CFLAGS=-g -DHAVE_LIBPNG -DHAVE

Re: [PHP-DEV] Re: Function to retrieve headers for message/rfc822 attachments

2002-03-04 Thread Vlad Krupin
Sorry, I'm just catching up with email backlog, so this email might be irrelevant by now, but just in case it isn't: imap_fetch_header() is probably not a very good name because we already have imap_fetchheader() and I believe they might be a bit too similar in names (I don't know what the pro

[PHP-DEV] Re: cvs: php4 / makerpm

2002-03-04 Thread Yasuo Ohgaki
Derick Rethans wrote: > derickMon Mar 4 05:45:31 2002 EDT > > Modified files: > /php4 makerpm > Log: > - Fix a path and remove --with-imap > Is there problem with including imap? -- Yasuo Ohgaki -- PHP Development Mailing List

[PHP-DEV] Feature Request for pcre_match*()

2002-03-04 Thread 'Ricky' S Dhatt
Hi - I'd like to ask that the pcre_match*() functions be modified such that they can also return position info on where the match(s) occured, akin to Perl's pos(). I think this would be a very useful addition, plus it requires minimal code changes since the actual function, php_pcre_match() compu

Re: [PHP-DEV] your patch to session.c broke it (testcase included)

2002-03-04 Thread Thies C. Arntzen
On Mon, Mar 04, 2002 at 10:42:42PM +0200, Zeev Suraski wrote: > At 13:18 04/03/2002, Thies C. Arntzen wrote: > >zeev, > >your patch > > > >http://cvs.php.net/diff.php/php4/ext/session/session.c?r1=1.277&r2=1.278&ty=u > > > >broke the session module: > > > >testcase (run multiple ti

RE: [PHP-DEV] New Module

2002-03-04 Thread Chris Newbill
PHP already has mcrypt support so doing this in userland wouldn't be much of a challenge at all. See pear.php.net. -Chris -Original Message- From: Keyser Soze [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 5:58 PM To: PHP-DEV Subject: [PHP-DEV] New Module Hi all, I have de

Re: [PHP-DEV] New Module

2002-03-04 Thread derick
Hey, why not simply use the mcrypt functions available in PHP? Derick On Mon, 4 Mar 2002, Keyser Soze wrote: > Hi all, > > I have developed a new module that may be of interest of you. I'm putting it > under GNU license. > The module consist of two functions: > bool cfg_set(string file,assoc a

[PHP-DEV] odbc_fetch_into alteration

2002-03-04 Thread Dan Kalowsky
Hello hello! One of the changes I ment to get into PHP4.1 was this change to odbc_fetch_into. Traditionally, the function can take upto three params like so: odbc_fetch_into(required, [ not required,] required) Meaning params 1and2 or 1and3 are always required. To me this is a rather backwards

Re: [PHP-DEV] Feature Request for pcre_match*()

2002-03-04 Thread derick
Hello, can you please post a unified diff (diff -u)? That's much more readable. regards, Derick On Mon, 4 Mar 2002, 'Ricky' S Dhatt wrote: > Hi - > > I'd like to ask that the pcre_match*() functions be modified such that > they can also return position info on where the match(s) occured, akin

Re: [PHP-DEV] Re: cvs: php4 / makerpm

2002-03-04 Thread derick
On Tue, 5 Mar 2002, Yasuo Ohgaki wrote: > Derick Rethans wrote: > > derick Mon Mar 4 05:45:31 2002 EDT > > > > Modified files: > > /php4 makerpm > > Log: > > - Fix a path and remove --with-imap > > > > Is there problem with including imap? The dependencies on Kerberos f

Re: [PHP-DEV] your patch to session.c broke it (testcase included)

2002-03-04 Thread derick
Hey Thies, can you file a bug report for this so that we can use it during the release process (make it Critical right away :). Derick On Tue, 5 Mar 2002, Thies C. Arntzen wrote: > On Mon, Mar 04, 2002 at 10:42:42PM +0200, Zeev Suraski wrote: > > At 13:18 04/03/2002, Thies C. Arntzen wrote: >

Re: [PHP-DEV] your patch to session.c broke it (testcase

2002-03-04 Thread Yasuo Ohgaki
Zeev, Thies is complaining about the same issue that I've mailed to you personally. Have you read my emails? I've send 2 emails about the patch, one with short script that you can play with. I'll send them again to you, if you didn't get them. -- Yasuo Ohgaki Zeev Suraski wrote: > At 13:18 0

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

2002-03-04 Thread derick
On Tue, 5 Mar 2002, Yasuo Ohgaki wrote: > Thanks for catching this. I should have fix this description for now. > Test script does _NOT_ work with CLI SAPI's php binary. Yeah, but why doesn't it work? Derick -- PHP Development Mailing List To unsubscribe, visit: http://

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

2002-03-04 Thread derick
On Tue, 5 Mar 2002, Yasuo Ohgaki wrote: > We should use: > CGI sapi unless we make test script work with CLI sapi > or > Skip tests that does not work with CLI sapi. > > I would like to skip tests that does not work with CLI, > but I don't have time to change run-tsets.php. I don't think that's

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

2002-03-04 Thread derick
On Tue, 5 Mar 2002, Yasuo Ohgaki wrote: > "make test" does not work... I'm supposing this > will be changed to use CGI sapi for now. Nope, I'm just fixing it to work with the CLI :) Derick -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/uns

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

2002-03-04 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > On Tue, 5 Mar 2002, Yasuo Ohgaki wrote: > > >>[Which "php" executable "make test" look for] >>- >> "make test" executes "run-tests.php" script with "./sapi/cli/php". >>Although, "run-tests.php" is executed by CLI SAPI binary,

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

2002-03-04 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > > Isn't it an idea just to modify the scripts so that it uses the cli > version always? > Stig changed so that make test uses cli sapi. Edin said it wouldn't work, and it does not work for me also. We should use: CGI sapi unless we make test script work with CLI sapi