RE: [PHP-DEV]

2002-04-25 Thread derick

On Thu, 25 Apr 2002, Brinkman, Theodore wrote:

> Well, having read that thread (thank you), I tallied up the votes (where I
> could tell what the vote was) and it was 13 for, 3 against, 2
> undecided/don't care.  Of the unsure, one person voted against, then
> undecided, then for, the other voted don't care, then against.  Of the
> against, one voted against purely on stylistic reasons.
> 
> Why wasnt' this change implemented?  It's not a feature anyone would be
> forced to use, it improves syntax consistency, and the feeling from that
> discussion was overwhelmingly for the change.

It's invalid XML,  -Original Message-
> From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 6:40 PM
> To: Brinkman, Theodore
> Cc: 'PHP Developers Mailing List'
> Subject: Re: [PHP-DEV]  
> 
> On Thu, 2002-04-25 at 15:27, Brinkman, Theodore wrote:
> > Ok.  I have the feeling that I'm going to be making myself a bit unpopular
> > here with my first post, but I mean no offense or disrespect.  I'm just
> > trying to understand something.
> > 
> > PHP allows  > enabled, but doesn't allow  the
> > source and as near as I can tell without getting my hands on a C compiler,
> > changing it so that the '{opentag}=' format was equivalent to '{opentag}
> > echo' would take a 2 line patch to one file.  I submitted this change as a
> > feature request in the bug system (#16763), and got the incredibly
> > informative and helpful response of "this was discussed to death on
> php-dev.
> > it's not going to happen." 17 minutes later.
> > 
> > I've spent the next 2 days trying to hunt down any mention of it, and
> having
> > no luck because searching for  > an effort to understand why and how the decision was made to leave a
> feature
> > partially implemented, I'm left with no resort except to post here and
> > probably bring down a can of whoop-ass on myself.  My appologies to anyone
> > who is sick of this being discussed.
> > 
> > That said.  Why?
> > 
> > - Theo
> 
> One long discussion starts here:
> 
>   http://marc.theaimsgroup.com/?l=php-dev&m=100405792100833&w=2
> 
> It looks like consistency was voted down because someone might 
> misread  worse than the age-old '=' vs. '==' screwup. Anyway, there's the
> thread and you should read it and decide whether this needs to
> get going again. :)
> 
> 
> -- 
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] FYI: Function rename

2002-04-25 Thread Yasuo Ohgaki

Sterling Hughes wrote:
>>Hi all,
>>
>>I'll change function names to confirm current naming standard
>>starting from standard module.
>>(e.g. phpversion => php_version)
>>There will be alias for old names.
>>
>>Any comments?
>>
> 
> 
> yeah, don't do it! :)
> 
> we haven't decided this issue yet...

No problem.
Are we going to decide before PHP5?

--
Yasuo Ohgaki





__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] FYI: Function rename

2002-04-25 Thread Sterling Hughes

> Hi all,
> 
> I'll change function names to confirm current naming standard
> starting from standard module.
> (e.g. phpversion => php_version)
> There will be alias for old names.
> 
> Any comments?
>

yeah, don't do it! :)

we haven't decided this issue yet...

-Sterling

> --
> Yasuo Ohgaki
> 
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV]

2002-04-25 Thread Edin Kadribasic

> Why wasnt' this change implemented?  It's not a feature anyone would be
> forced to use, it improves syntax consistency, and the feeling from that
> discussion was overwhelmingly for the change.

"All animals are equal, but some animals are more equal than others."

George Orwell (1903-1950)



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: recode configure checks broken

2002-04-25 Thread Jani Taskinen


Yes, I'm blind. :)
So you have recode 3.5...just update to 3.6 and it works.
That configure error message just needs tuning. 

--Jani


On Fri, 26 Apr 2002, Jani Taskinen wrote:

>
>Which recode version you have there?
>
>--Jani
>
>
>On Fri, 26 Apr 2002, Wez Furlong wrote:
>
>>Hey Jani,
>>
>>ext/recode no longer builds for me; this is what happens during configure:
>>
>>checking for readline support... no
>>checking for recode support... yes
>>checking for recode_format_table in -lrecode... no
>>configure: error: I cannot link librecode (-L/usr/lib -lrecode). Is it installed?
>>wez@zaneeb:~/src/php/PHPDEV > recode --version
>>Free recode 3.5
>>
>>config.log says:
>>
>>configure:61009: checking for recode_format_table in -lrecode
>>configure:61028: gcc -o conftest -g -O2 ... -lrecode ...
>>
>>/usr/lib/librecode.so: undefined reference to `program_name'
>>   collect2: ld returned 1 exit status
>>   configure: failed program was:
>>   #line 61017 "configure"
>>   #include "confdefs.h"
>>   /* Override any gcc2 internal prototype to avoid an error.  */
>>   /* We use char because int might match the return type of a gcc2
>>   builtin and then its argument prototype would still apply.  */
>>   char recode_format_table();
>>
>>   int main() {
>>   recode_format_table()
>>   ; return 0; }
>>
>>Based on what I remember seeing from your recent commits for ext/recode,
>>you just need to declare program_name in that code above and everything
>>should be fine.
>>I have no idea how to do that :-)
>>
>>--Wez.
>>
>>
>
>

-- 


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] FYI: Function rename

2002-04-25 Thread Yasuo Ohgaki

Hi all,

I'll change function names to confirm current naming standard
starting from standard module.
(e.g. phpversion => php_version)
There will be alias for old names.

Any comments?

--
Yasuo Ohgaki




-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: recode configure checks broken

2002-04-25 Thread Jani Taskinen


Which recode version you have there?

--Jani


On Fri, 26 Apr 2002, Wez Furlong wrote:

>Hey Jani,
>
>ext/recode no longer builds for me; this is what happens during configure:
>
>checking for readline support... no
>checking for recode support... yes
>checking for recode_format_table in -lrecode... no
>configure: error: I cannot link librecode (-L/usr/lib -lrecode). Is it installed?
>wez@zaneeb:~/src/php/PHPDEV > recode --version
>Free recode 3.5
>
>config.log says:
>
>configure:61009: checking for recode_format_table in -lrecode
>configure:61028: gcc -o conftest -g -O2 ... -lrecode ...
>
>/usr/lib/librecode.so: undefined reference to `program_name'
>   collect2: ld returned 1 exit status
>   configure: failed program was:
>   #line 61017 "configure"
>   #include "confdefs.h"
>   /* Override any gcc2 internal prototype to avoid an error.  */
>   /* We use char because int might match the return type of a gcc2
>   builtin and then its argument prototype would still apply.  */
>   char recode_format_table();
>
>   int main() {
>   recode_format_table()
>   ; return 0; }
>
>Based on what I remember seeing from your recent commits for ext/recode,
>you just need to declare program_name in that code above and everything
>should be fine.
>I have no idea how to do that :-)
>
>--Wez.
>
>

-- 


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] recode configure checks broken

2002-04-25 Thread Wez Furlong

Hey Jani,

ext/recode no longer builds for me; this is what happens during configure:

checking for readline support... no
checking for recode support... yes
checking for recode_format_table in -lrecode... no
configure: error: I cannot link librecode (-L/usr/lib -lrecode). Is it installed?
wez@zaneeb:~/src/php/PHPDEV > recode --version
Free recode 3.5

config.log says:

configure:61009: checking for recode_format_table in -lrecode
configure:61028: gcc -o conftest -g -O2 ... -lrecode ...

/usr/lib/librecode.so: undefined reference to `program_name'
   collect2: ld returned 1 exit status
   configure: failed program was:
   #line 61017 "configure"
   #include "confdefs.h"
   /* Override any gcc2 internal prototype to avoid an error.  */
   /* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
   char recode_format_table();

   int main() {
   recode_format_table()
   ; return 0; }

Based on what I remember seeing from your recent commits for ext/recode,
you just need to declare program_name in that code above and everything
should be fine.
I have no idea how to do that :-)

--Wez.

-- 
Wez Furlong
The Brain Room Ltd.


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV]

2002-04-25 Thread Brinkman, Theodore

Well, having read that thread (thank you), I tallied up the votes (where I
could tell what the vote was) and it was 13 for, 3 against, 2
undecided/don't care.  Of the unsure, one person voted against, then
undecided, then for, the other voted don't care, then against.  Of the
against, one voted against purely on stylistic reasons.

Why wasnt' this change implemented?  It's not a feature anyone would be
forced to use, it improves syntax consistency, and the feeling from that
discussion was overwhelmingly for the change.

- Theo

-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 6:40 PM
To: Brinkman, Theodore
Cc: 'PHP Developers Mailing List'
Subject: Re: [PHP-DEV]  Ok.  I have the feeling that I'm going to be making myself a bit unpopular
> here with my first post, but I mean no offense or disrespect.  I'm just
> trying to understand something.
> 
> PHP allows  enabled, but doesn't allow  source and as near as I can tell without getting my hands on a C compiler,
> changing it so that the '{opentag}=' format was equivalent to '{opentag}
> echo' would take a 2 line patch to one file.  I submitted this change as a
> feature request in the bug system (#16763), and got the incredibly
> informative and helpful response of "this was discussed to death on
php-dev.
> it's not going to happen." 17 minutes later.
> 
> I've spent the next 2 days trying to hunt down any mention of it, and
having
> no luck because searching for  an effort to understand why and how the decision was made to leave a
feature
> partially implemented, I'm left with no resort except to post here and
> probably bring down a can of whoop-ass on myself.  My appologies to anyone
> who is sick of this being discussed.
> 
> That said.  Why?
> 
>   - Theo

One long discussion starts here:

  http://marc.theaimsgroup.com/?l=php-dev&m=100405792100833&w=2

It looks like consistency was voted down because someone might 
misread 
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] win32 build

2002-04-25 Thread Edin Kadribasic

As an added service for the developers without a win32 build environment I
made snapshot status and log available.

To get the latest build summary:

http://snaps.php.net/win32/snapshot.log

The complite build log:

http://snaps.php.net/win32/compile.log

Please note that the build system used is nowhere near complete, and there
are many extensions that it is incapable of producing.

Edin


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV]

2002-04-25 Thread Lars Torben Wilson

On Thu, 2002-04-25 at 15:27, Brinkman, Theodore wrote:
> Ok.  I have the feeling that I'm going to be making myself a bit unpopular
> here with my first post, but I mean no offense or disrespect.  I'm just
> trying to understand something.
> 
> PHP allows  enabled, but doesn't allow  source and as near as I can tell without getting my hands on a C compiler,
> changing it so that the '{opentag}=' format was equivalent to '{opentag}
> echo' would take a 2 line patch to one file.  I submitted this change as a
> feature request in the bug system (#16763), and got the incredibly
> informative and helpful response of "this was discussed to death on php-dev.
> it's not going to happen." 17 minutes later.
> 
> I've spent the next 2 days trying to hunt down any mention of it, and having
> no luck because searching for  an effort to understand why and how the decision was made to leave a feature
> partially implemented, I'm left with no resort except to post here and
> probably bring down a can of whoop-ass on myself.  My appologies to anyone
> who is sick of this being discussed.
> 
> That said.  Why?
> 
>   - Theo

One long discussion starts here:

  http://marc.theaimsgroup.com/?l=php-dev&m=100405792100833&w=2

It looks like consistency was voted down because someone might 
misread 
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV]

2002-04-25 Thread Brinkman, Theodore

Ok.  I have the feeling that I'm going to be making myself a bit unpopular
here with my first post, but I mean no offense or disrespect.  I'm just
trying to understand something.

PHP allows http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Persistent overloaded class registration problem,

2002-04-25 Thread Andi Gutmans

At 11:11 24/04/2002 +0100, Sam Liddicott wrote:
>My overloaded classes are now registered in MINIT with:
>
>INIT_OVERLOADED_CLASS_ENTRY()
>zend_register_internal_class()
>..zend_register_list_destructors_ex
>
>And all seems mostly fine;
>
>except the second time apache serves a request, one of the classes (!!) has
>been de-registered!  As shown by get_declared_classes() in the script.
>
>Swig is generating all the classes the same way so I'm asking if anyone
>might know the cause for this.
>
>The class registration pattern I am following leaves no scope for me to
>estrdup or emalloc and the like as zend underlying layers do all this stuff
>properly for me.

I'm not sure what's happening there. Did you grep the directories under 
ext/ for examples of how to use zend_register_internal_class()?

Andi


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] sockets

2002-04-25 Thread Markus Fischer

Hi,

Simple when enough people have tested it and it reaches the
consensus that it's mature enough for being called stable
(api doesn't change anymore, more testers, you name it).

- Markus

On Thu, Apr 25, 2002 at 07:46:30PM +0200, Michael Virnstein wrote : 
> Hi,
> 
> as i could read in the manual, the socket functions are completely
> experimental.
> When do you think the API gets final and won't change
> anymore. Any comments on this are welcome.
> 
> Michael
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Daniel Swarbrick

Yep, just configure'd and built using that script - looks good. MySQL is
connecting with unix socket when specifying simply 'localhost' as the host
to connect to.

The MySQL socket on Slackware 8.0+ systems is in /var/run/mysql/.

Well done...

"Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
133201c1ec9a$16144370$050a@master">news:133201c1ec9a$16144370$050a@master...
> Could you verify that configure script http://www.edin.dk/php/configure.gz
> works on your system. Also could you please tell us the location of
> mysql.sock on your system, so we can include it in the configure checks.
>
> Edin
>
> "Daniel Swarbrick" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I just thought I'd post my results with doing this on a fairly bleeding
> edge
> > Slackware 8.1beta system, mainly because it has autoconf 2.53 on
> > it.Previously I tried running buildconf with autoconf 2.50, which didn't
> > generate any of the additional warnings.
> >
> > Although the the 'make'ed binary libphp4.so was identical in size my
> > previous build, it was a different md5sum, so I thought I'd give it a
> shot.
> > The good news is that things seem to be working correctly, and MySQL
> > connects using sockets again!
> >
> > buildconf: checking installation...
> > buildconf: autoconf version 2.53 (ok)
> > buildconf: automake version 1.5 (ok)
> > buildconf: libtool version 1.4.2 (ok)
> > rebuilding configure
> > configure.in:40: warning: do not use m4_patsubst: use patsubst or
> > m4_bpatsubst
> > configure.in:1259: warning: do not use m4_regexp: use regexp or
m4_bregexp
> > rebuilding main/php_config.h.in
> > WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
> > WARNING: and `config.h.top', to define templates for `config.h.in'
> > WARNING: is deprecated and discouraged.
> >
> > WARNING: Using the third argument of `AC_DEFINE' and
> > WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
> > WARNING: `acconfig.h':
> >
> > WARNING:   AC_DEFINE([NEED_MAIN], 1,
> > WARNING: [Define if a function `main' is needed.])
> >
> > WARNING: More sophisticated templates can also be produced, see the
> > WARNING: documentation.
> > autoheader: `main/php_config.h.in' is created
> >
> > "Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
> > 09d901c1ec55$d53c2af0$[EMAIL PROTECTED]">news:09d901c1ec55$d53c2af0$[EMAIL PROTECTED]...
> > > Summary (mysql related connection problems) :
> > >
> > > 4.2.0 was packed with configure script made by autoconf 2.52 which
> doesn't
> > > seem to work correcly.
> > > configure built with autoconf 2.13 works fine.
> > >
> > > Resolutions:
> > > * wait for 4.2.1 (due in a week or so)
> > > * if you have autoconf 2.13 on you system, delete configure and run
> > > ./buildconf
> > > * download configure script from http://www.edin.dk/php/configure.gz
> > >
> > > Edin
> > >
> >
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread derick

On Fri, 26 Apr 2002, Daniel Swarbrick wrote:

> Ooops, sorry folks, jumped the gun on that one. Nope, still using TCP.

autoconf 2.13 is the way to go

Derick

> 
> "Daniel Swarbrick" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I just thought I'd post my results with doing this on a fairly bleeding
> edge
> > Slackware 8.1beta system, mainly because it has autoconf 2.53 on
> > it.Previously I tried running buildconf with autoconf 2.50, which didn't
> > generate any of the additional warnings.
> >
> > Although the the 'make'ed binary libphp4.so was identical in size my
> > previous build, it was a different md5sum, so I thought I'd give it a
> shot.
> > The good news is that things seem to be working correctly, and MySQL
> > connects using sockets again!
> >
> > buildconf: checking installation...
> > buildconf: autoconf version 2.53 (ok)
> > buildconf: automake version 1.5 (ok)
> > buildconf: libtool version 1.4.2 (ok)
> > rebuilding configure
> > configure.in:40: warning: do not use m4_patsubst: use patsubst or
> > m4_bpatsubst
> > configure.in:1259: warning: do not use m4_regexp: use regexp or m4_bregexp
> > rebuilding main/php_config.h.in
> > WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
> > WARNING: and `config.h.top', to define templates for `config.h.in'
> > WARNING: is deprecated and discouraged.
> >
> > WARNING: Using the third argument of `AC_DEFINE' and
> > WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
> > WARNING: `acconfig.h':
> >
> > WARNING:   AC_DEFINE([NEED_MAIN], 1,
> > WARNING: [Define if a function `main' is needed.])
> >
> > WARNING: More sophisticated templates can also be produced, see the
> > WARNING: documentation.
> > autoheader: `main/php_config.h.in' is created
> >
> > "Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
> > 09d901c1ec55$d53c2af0$[EMAIL PROTECTED]">news:09d901c1ec55$d53c2af0$[EMAIL PROTECTED]...
> > > Summary (mysql related connection problems) :
> > >
> > > 4.2.0 was packed with configure script made by autoconf 2.52 which
> doesn't
> > > seem to work correcly.
> > > configure built with autoconf 2.13 works fine.
> > >
> > > Resolutions:
> > > * wait for 4.2.1 (due in a week or so)
> > > * if you have autoconf 2.13 on you system, delete configure and run
> > > ./buildconf
> > > * download configure script from http://www.edin.dk/php/configure.gz
> > >
> > > Edin
> > >
> >
> >
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Edin Kadribasic

Could you verify that configure script http://www.edin.dk/php/configure.gz
works on your system. Also could you please tell us the location of
mysql.sock on your system, so we can include it in the configure checks.

Edin

"Daniel Swarbrick" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I just thought I'd post my results with doing this on a fairly bleeding
edge
> Slackware 8.1beta system, mainly because it has autoconf 2.53 on
> it.Previously I tried running buildconf with autoconf 2.50, which didn't
> generate any of the additional warnings.
>
> Although the the 'make'ed binary libphp4.so was identical in size my
> previous build, it was a different md5sum, so I thought I'd give it a
shot.
> The good news is that things seem to be working correctly, and MySQL
> connects using sockets again!
>
> buildconf: checking installation...
> buildconf: autoconf version 2.53 (ok)
> buildconf: automake version 1.5 (ok)
> buildconf: libtool version 1.4.2 (ok)
> rebuilding configure
> configure.in:40: warning: do not use m4_patsubst: use patsubst or
> m4_bpatsubst
> configure.in:1259: warning: do not use m4_regexp: use regexp or m4_bregexp
> rebuilding main/php_config.h.in
> WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
> WARNING: and `config.h.top', to define templates for `config.h.in'
> WARNING: is deprecated and discouraged.
>
> WARNING: Using the third argument of `AC_DEFINE' and
> WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
> WARNING: `acconfig.h':
>
> WARNING:   AC_DEFINE([NEED_MAIN], 1,
> WARNING: [Define if a function `main' is needed.])
>
> WARNING: More sophisticated templates can also be produced, see the
> WARNING: documentation.
> autoheader: `main/php_config.h.in' is created
>
> "Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
> 09d901c1ec55$d53c2af0$[EMAIL PROTECTED]">news:09d901c1ec55$d53c2af0$[EMAIL PROTECTED]...
> > Summary (mysql related connection problems) :
> >
> > 4.2.0 was packed with configure script made by autoconf 2.52 which
doesn't
> > seem to work correcly.
> > configure built with autoconf 2.13 works fine.
> >
> > Resolutions:
> > * wait for 4.2.1 (due in a week or so)
> > * if you have autoconf 2.13 on you system, delete configure and run
> > ./buildconf
> > * download configure script from http://www.edin.dk/php/configure.gz
> >
> > Edin
> >
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Daniel Swarbrick

Ooops, sorry folks, jumped the gun on that one. Nope, still using TCP.

"Daniel Swarbrick" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I just thought I'd post my results with doing this on a fairly bleeding
edge
> Slackware 8.1beta system, mainly because it has autoconf 2.53 on
> it.Previously I tried running buildconf with autoconf 2.50, which didn't
> generate any of the additional warnings.
>
> Although the the 'make'ed binary libphp4.so was identical in size my
> previous build, it was a different md5sum, so I thought I'd give it a
shot.
> The good news is that things seem to be working correctly, and MySQL
> connects using sockets again!
>
> buildconf: checking installation...
> buildconf: autoconf version 2.53 (ok)
> buildconf: automake version 1.5 (ok)
> buildconf: libtool version 1.4.2 (ok)
> rebuilding configure
> configure.in:40: warning: do not use m4_patsubst: use patsubst or
> m4_bpatsubst
> configure.in:1259: warning: do not use m4_regexp: use regexp or m4_bregexp
> rebuilding main/php_config.h.in
> WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
> WARNING: and `config.h.top', to define templates for `config.h.in'
> WARNING: is deprecated and discouraged.
>
> WARNING: Using the third argument of `AC_DEFINE' and
> WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
> WARNING: `acconfig.h':
>
> WARNING:   AC_DEFINE([NEED_MAIN], 1,
> WARNING: [Define if a function `main' is needed.])
>
> WARNING: More sophisticated templates can also be produced, see the
> WARNING: documentation.
> autoheader: `main/php_config.h.in' is created
>
> "Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
> 09d901c1ec55$d53c2af0$[EMAIL PROTECTED]">news:09d901c1ec55$d53c2af0$[EMAIL PROTECTED]...
> > Summary (mysql related connection problems) :
> >
> > 4.2.0 was packed with configure script made by autoconf 2.52 which
doesn't
> > seem to work correcly.
> > configure built with autoconf 2.13 works fine.
> >
> > Resolutions:
> > * wait for 4.2.1 (due in a week or so)
> > * if you have autoconf 2.13 on you system, delete configure and run
> > ./buildconf
> > * download configure script from http://www.edin.dk/php/configure.gz
> >
> > Edin
> >
>
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Daniel Swarbrick

I just thought I'd post my results with doing this on a fairly bleeding edge
Slackware 8.1beta system, mainly because it has autoconf 2.53 on
it.Previously I tried running buildconf with autoconf 2.50, which didn't
generate any of the additional warnings.

Although the the 'make'ed binary libphp4.so was identical in size my
previous build, it was a different md5sum, so I thought I'd give it a shot.
The good news is that things seem to be working correctly, and MySQL
connects using sockets again!

buildconf: checking installation...
buildconf: autoconf version 2.53 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4.2 (ok)
rebuilding configure
configure.in:40: warning: do not use m4_patsubst: use patsubst or
m4_bpatsubst
configure.in:1259: warning: do not use m4_regexp: use regexp or m4_bregexp
rebuilding main/php_config.h.in
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: `main/php_config.h.in' is created

"Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
09d901c1ec55$d53c2af0$[EMAIL PROTECTED]">news:09d901c1ec55$d53c2af0$[EMAIL PROTECTED]...
> Summary (mysql related connection problems) :
>
> 4.2.0 was packed with configure script made by autoconf 2.52 which doesn't
> seem to work correcly.
> configure built with autoconf 2.13 works fine.
>
> Resolutions:
> * wait for 4.2.1 (due in a week or so)
> * if you have autoconf 2.13 on you system, delete configure and run
> ./buildconf
> * download configure script from http://www.edin.dk/php/configure.gz
>
> Edin
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] managing php session data

2002-04-25 Thread Deval Parikh

hi,

I am want to store some values to php sessions and 
in another script i want to fetch data from php
session.
basically I want to store some variable values
serverside and use them in other scripts.
if is possible other way!!
how can i do it?

If any one knows then let me know.

thanks,

- deval

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




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

2002-04-25 Thread brad lafountain

Yeah it was disscuessed that the session modules could define and handle
$_APP so that would be globals for all sessions.

a work around would be to do something like this

$oldsession_id = sessoin_id();
session_id(1);
session_start();
$var = $_SESSION['var'];
session_desetroy();
session_id($oldsesion_id);
session_start();
echo $var . $_SESSION['local_var'];
(i didn't run this code might not work logicall it does tho)

it would be much cleaner to do
session_start();
echo $_APP['var'] . $_SESSION['local_var'];

and allowing the session modules to handle the $_APP (files/mm/msession)
variable.

but you bring up a good point.. globals per 'mode'.
not just 'loggged_in' but.. you could have many 'modes' that you would want
globaly scoped data assoicated with them.

but you could do something like this too...
$_APP['logged_in'] = array(some, global, data);

So i guess what im saying... if $_APP global was added then it would also solve
your other 'scope'.

- Brad









--- Dan Hardiker <[EMAIL PROTECTED]> wrote:
> While were talking about session advancement... has anyone ever thought of
> adding shared sesssions? Consider the following scenario:
> 
> I have 3 sets of variables:
> 
>   1. Global Scoped - Variables accessed and altered by anyone entering my
> site. EG: a "currently online" array which stores the a list of active users
>   2. Logged in Scoped - Variables accessed by *anyone* logged in. EG: if
> you cache the database stuff in a session then if one user updates the
> cache the often you want all the logged in users to see that change without
> having to requery the db
>   3. Individual Scope - Variables specific to this user (eg: whats my name,
> my last ip, when did I last do anything meaningful).
> 
> Being able to split those scopes up into separate variables would be great
> and being able to do something along the lines of:
> 
> $session->global = array of global variables
> $session->loggedin = 2nd scope
> $session->personal = personal variables
> 
> and then have the session module manage those 3 sessions individually.
> 
> 
> In short - it would be cool if a script could (easily) have access to a
> multitude of sessions and keep them segregated.
> 
> -- 
> Dan Hardiker [[EMAIL PROTECTED]]
> ADAM Software & Systems Engineer
> First Creative Ltd
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] sockets

2002-04-25 Thread Michael Virnstein

Hi,

as i could read in the manual, the socket functions are completely
experimental.
When do you think the API gets final and won't change
anymore. Any comments on this are welcome.

Michael



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] foreach

2002-04-25 Thread Rose, Billy

I feel like an idiot, I overlooked the *_fetch__array(). It's been a long
week...

Billy Rose 
[EMAIL PROTECTED]

> -Original Message-
> From: Gabriel Ricard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 11:53 AM
> To: Rose, Billy
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] foreach
> 
> 
> This is neither a problem with PHP nor FreeTDS. From the manual:
> 
> " sybase_fetch_array() is an extended version of 
> sybase_fetch_row(). In 
> addition to storing the data in the numeric indices of the 
> result array, 
> it also stores the data in associative indices, using the 
> field names as 
> keys. "
> 
> Therefore each row contains duplicates of each value. Use 
> sybase_fetch_row() instead.
> 
> And, btw, this question really belongs on the php-general list. ;)
> 
> - Gabriel
> 
> Rose, Billy wrote:
> > Environment:
> > 
> >   Apache 2.0.35
> >   PHP 4.2.0RC2
> >   FreeTDS used in place of Sybase libraries to connect to 
> MS SQL 2000
> >   RedHat Linux 7.1
> >   PII 233
> > 
> > Problem:
> > 
> >   Using foreach retrieves a duplicate of each database column.
> > 
> > Code tested:
> > 
> > 
> > 
> > Test
> > 
> > 
> >  > $link = sybase_connect($dbhost,$dbuser,$dbpass)
> >   or die("Error connecting");
> > sybase_select_db($dbname)
> >   or die("Error selecting database");
> > $result = sybase_query($query)
> >   or die("Error running query");
> > print(" cellspacing='4'>\n");
> > while ($row = sybase_fetch_array($result)) {
> >   print("\n");
> >   foreach ($row as $col) {
> > print("".$col."\n");
> >   }
> >   print("\n");
> > }
> > print("\n");
> > sybase_free_result($result);
> > sybase_close($link);
> > ?>
> > 
> > 
> > 
> > Is this a PHP issue, or a FreeTDS problem?
> > 
> > Billy Rose 
> > [EMAIL PROTECTED]
> > 
> 
> 
> 
> -- 
> Gabriel Ricard
> [EMAIL PROTECTED]
> 

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] foreach

2002-04-25 Thread Gabriel Ricard

This is neither a problem with PHP nor FreeTDS. From the manual:

" sybase_fetch_array() is an extended version of sybase_fetch_row(). In 
addition to storing the data in the numeric indices of the result array, 
it also stores the data in associative indices, using the field names as 
keys. "

Therefore each row contains duplicates of each value. Use 
sybase_fetch_row() instead.

And, btw, this question really belongs on the php-general list. ;)

- Gabriel

Rose, Billy wrote:
> Environment:
> 
>   Apache 2.0.35
>   PHP 4.2.0RC2
>   FreeTDS used in place of Sybase libraries to connect to MS SQL 2000
>   RedHat Linux 7.1
>   PII 233
> 
> Problem:
> 
>   Using foreach retrieves a duplicate of each database column.
> 
> Code tested:
> 
> 
> 
> Test
> 
> 
>  $link = sybase_connect($dbhost,$dbuser,$dbpass)
>   or die("Error connecting");
> sybase_select_db($dbname)
>   or die("Error selecting database");
> $result = sybase_query($query)
>   or die("Error running query");
> print("\n");
> while ($row = sybase_fetch_array($result)) {
>   print("\n");
>   foreach ($row as $col) {
> print("".$col."\n");
>   }
>   print("\n");
> }
> print("\n");
> sybase_free_result($result);
> sybase_close($link);
> ?>
> 
> 
> 
> Is this a PHP issue, or a FreeTDS problem?
> 
> Billy Rose 
> [EMAIL PROTECTED]
> 



-- 
Gabriel Ricard
[EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Re: Addition to session-module (patch included)

2002-04-25 Thread Harald Radi

> On Thu, Apr 25, 2002 at 03:04:36PM +0200, Harald Radi wrote:
> > sounds very useful, go ahead ;)
> > 
> > would you mind extending it that 
> session_set_userdata(array("thies" => 
> > "1", "harald" => "2", "knorp" => "100")) would be possible ?
> 
> nope - that would make the url_scanner slower.
> but you can always ancode as much data as you want into the
> one userdata var.

can you explain me why this affects the url_scanner ?

harald


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] foreach

2002-04-25 Thread Rose, Billy

Environment:

  Apache 2.0.35
  PHP 4.2.0RC2
  FreeTDS used in place of Sybase libraries to connect to MS SQL 2000
  RedHat Linux 7.1
  PII 233

Problem:

  Using foreach retrieves a duplicate of each database column.

Code tested:



Test


\n");
while ($row = sybase_fetch_array($result)) {
  print("\n");
  foreach ($row as $col) {
print("".$col."\n");
  }
  print("\n");
}
print("\n");
sybase_free_result($result);
sybase_close($link);
?>



Is this a PHP issue, or a FreeTDS problem?

Billy Rose 
[EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] odbc problems in 4.2

2002-04-25 Thread Ryan Jameson (USA)

That sounds possible Andreas, I downloaded the windows binaries from the main site. I 
didn't compile this myself. The first link under Windows Binaries on 
http://www.php.net/downloads.php

... maybe that's all it is, maybe this distribution was compiled differently. As far 
as the driver manager goes, it works fine with 4.1.1 so I'm sure it isn't an issue 
with that.

<>< Ryan

-Original Message-
From: Andreas Karajannis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 5:16 PM
To: Dan Kalowsky
Cc: Ryan Jameson (USA); [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] odbc problems in 4.2


Dan Kalowsky wrote:
> Hi Ryan,
> 
> Okay did a little looking over the odbc_fetch_row code, and it should
> reset the result->fetched to whatever the second argument (if one is
> provided) is.  This variable is how the ODBC result system handles where
> it currently is in the cache.  Now the catch is that odbc_result checks
> this value, and if it's set to 0 re-fetches the results.
> 
This should be perfectly ok, just as if you start with a fresh resultset. 
Row # 0 doesn't contain data.

> So in otherwords the code sample you sent should work, provided that the
> $rs is a valid result.  I'm having some local DB access/ODBC issues so I
> cannot test it right at the moment.   I'm working on fixing that.
> 
> 
> 
> On Wed, 24 Apr 2002, Ryan Jameson (USA) wrote:
> 
> 
>>If this is easy for anyone could someone verify that:
>>
>>odbc_fetch_row($rs,0);
>>
>>...does not reset the result set in version 4.2? From what I can tell
>>it doesn't work at all. I want to be certain that we cannot upgrade to
>>4.2. If someone has another way to reset an ODBC result set I'd love to
>>hear about it. It's done in a central core function, but is necessary in
>>a plethora of scripts. The result set comes from the MS SQL Server driver
>>(shhh... I tried to get them to use MySQL ... they are scared of free
>>stuff. I'm just glad they let me use PHP). Thanks!
>>

Just to clarify: The odbc module doesn't cache or refetch resultsets.
Whether you're able to "reset" a resultset depends on the odbc driver
or driver manager you use (And how PHP was compiled, see below).
If the driver doesn't support so called "scrollable cursors", some
Driver Managers (afaik unixODBC and the standard MS Windows DM do)
provide support for this via a cusror library that caches resultsets and 
emulates scrolling cursors.

My guess is that the PHP 4.2 you've tried was wasn't compiled with 
HAVE_SQL_EXTENDED_FETCH (so only the simple SQLFetch that can only move 
forwards gets used; the rownum parameter is ignored in this case) or that 
your DM wasn't configured to use it's cursor library.

-Andreas
-- 
Andreas Karajannis
mediaworx berlin  AG

Fon (0 30) 2 75 80 - 266
Fax (0 30) 2 75 80 - 200



--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Alan Knowles

__LINE__ , __FILE__ (and now __FUNCTION__ & __CLASS__) are converted at 
compile time into a string - have a look at zend/zend_language_scanner.l 
 for more details.

regards
alan


Michael Virnstein wrote:

>A short question on this:
>how about __LINE__?
>doesn't this also require runtime context or am i wrong?
>if so, why it is a constant then, not a function?
>
>Michael
>
>"Stig S. Bakken" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>>Hi,
>>
>>__FILE__ is compiled into a constant string by Zend.  You can think of
>>it as equivalent of putting a string with the filename there instead.
>>It is constant.  __CFILE__ would require runtime context (which function
>>called us), so it makes no sense as a constant.  Derick's xdebug
>>extension will provide functions for this instead.
>>
>> - Stig
>>
>>On Wed, 2002-04-24 at 21:40, Michael Virnstein wrote:
>>
>>>an additional thought:
>>>if __CFILE__ and __CLINE__ are used outside of
>>>a function/method, both should be NULL. and trigger_error
>>>should only overwrite its __FILE__ and __LINE__ settings, if
>>>they are NOT NULL. And if one of the __FILE__ , __LINE parameters
>>>of trigger_error is NOT NULL, both have to be set.
>>>
>>>My 2 cents ;)
>>>That's how i would prefer it.
>>>
>>><[EMAIL PROTECTED]> schrieb im Newsbeitrag
>>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>
Hello Michael,

I'm working (80% done) on an extension for this. It should be finished

>in
>
a few days. It doesn't feature the __C*__ things yet, but I can add a
function for that too.

I'll keep you posted,

Derick

On Wed, 24 Apr 2002, Michael Virnstein wrote:

>It would be really useful for writing functions/Classes, if
>i were able to determine the __FILE__ and __LINE__ of the
>script, that is calling my function, without the need to send
>__FILE__ and __LINE__ as parameter to my function.
>E.g. __CFILE__ for calling script and __CLINE__ for line in the
>calling script would be really great.
>In addition it'll be useful, if I could use trigger_error in this
>
>>>manner.
>>>
>Most of the time i don't want to know, on which line my
>
>trigger_error
>
>call is located, but on which line in the script that called my
>
>>>function,
>>>
>the
>error occured. it'll be nice, if trigger_error could be extended, so
>
>it
>
>takes
>to more parameters, which overwrite the default __FILE__, __LINE__
>settings of trigger error.
>
>Example:
>
>function somefunction($array) {
>if (!is_array($array)) {
>trigger_error("Not an array", E_USER_ERROR, __CFILE__,
>
>>>__CLINE__);
>>>
>}
>// do something with the array
>}
>
>
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>>---
>>
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B

>>---
>>
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net

>>---
>>
>>>
>>>
>>>--
>>>PHP Development Mailing List 
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>
>
>




-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Michael Virnstein

A short question on this:
how about __LINE__?
doesn't this also require runtime context or am i wrong?
if so, why it is a constant then, not a function?

Michael

"Stig S. Bakken" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> __FILE__ is compiled into a constant string by Zend.  You can think of
> it as equivalent of putting a string with the filename there instead.
> It is constant.  __CFILE__ would require runtime context (which function
> called us), so it makes no sense as a constant.  Derick's xdebug
> extension will provide functions for this instead.
>
>  - Stig
>
> On Wed, 2002-04-24 at 21:40, Michael Virnstein wrote:
> > an additional thought:
> > if __CFILE__ and __CLINE__ are used outside of
> > a function/method, both should be NULL. and trigger_error
> > should only overwrite its __FILE__ and __LINE__ settings, if
> > they are NOT NULL. And if one of the __FILE__ , __LINE parameters
> > of trigger_error is NOT NULL, both have to be set.
> >
> > My 2 cents ;)
> > That's how i would prefer it.
> >
> > <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello Michael,
> > >
> > > I'm working (80% done) on an extension for this. It should be finished
in
> > > a few days. It doesn't feature the __C*__ things yet, but I can add a
> > > function for that too.
> > >
> > > I'll keep you posted,
> > >
> > > Derick
> > >
> > > On Wed, 24 Apr 2002, Michael Virnstein wrote:
> > >
> > > > It would be really useful for writing functions/Classes, if
> > > > i were able to determine the __FILE__ and __LINE__ of the
> > > > script, that is calling my function, without the need to send
> > > > __FILE__ and __LINE__ as parameter to my function.
> > > > E.g. __CFILE__ for calling script and __CLINE__ for line in the
> > > > calling script would be really great.
> > > > In addition it'll be useful, if I could use trigger_error in this
> > manner.
> > > > Most of the time i don't want to know, on which line my
trigger_error
> > > > call is located, but on which line in the script that called my
> > function,
> > > > the
> > > > error occured. it'll be nice, if trigger_error could be extended, so
it
> > > > takes
> > > > to more parameters, which overwrite the default __FILE__, __LINE__
> > > > settings of trigger error.
> > > >
> > > > Example:
> > > >
> > > > function somefunction($array) {
> > > > if (!is_array($array)) {
> > > > trigger_error("Not an array", E_USER_ERROR, __CFILE__,
> > __CLINE__);
> > > > }
> > > > // do something with the array
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > PHP Development Mailing List 
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> ---
> > >  Did I help you? Consider a gift:
> > >   http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> >
> ---
> > >   PHP: Scripting the Web - [EMAIL PROTECTED]
> > > All your branches are belong to me!
> > > SRM: Script Running Machine - www.vl-srm.net
> >
> ---
> > >
> >
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Michael Virnstein

Hi,

you may be right, but this was only a suggestion.
If you know a better way doing this, no problem.
I thought of something like __FILE__ and __LINE__,
because these constants are easy to use. If we have a function
for this, not a constant, it's also ok for me.

Michael

"Stig S. Bakken" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> __FILE__ is compiled into a constant string by Zend.  You can think of
> it as equivalent of putting a string with the filename there instead.
> It is constant.  __CFILE__ would require runtime context (which function
> called us), so it makes no sense as a constant.  Derick's xdebug
> extension will provide functions for this instead.
>
>  - Stig
>
> On Wed, 2002-04-24 at 21:40, Michael Virnstein wrote:
> > an additional thought:
> > if __CFILE__ and __CLINE__ are used outside of
> > a function/method, both should be NULL. and trigger_error
> > should only overwrite its __FILE__ and __LINE__ settings, if
> > they are NOT NULL. And if one of the __FILE__ , __LINE parameters
> > of trigger_error is NOT NULL, both have to be set.
> >
> > My 2 cents ;)
> > That's how i would prefer it.
> >
> > <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello Michael,
> > >
> > > I'm working (80% done) on an extension for this. It should be finished
in
> > > a few days. It doesn't feature the __C*__ things yet, but I can add a
> > > function for that too.
> > >
> > > I'll keep you posted,
> > >
> > > Derick
> > >
> > > On Wed, 24 Apr 2002, Michael Virnstein wrote:
> > >
> > > > It would be really useful for writing functions/Classes, if
> > > > i were able to determine the __FILE__ and __LINE__ of the
> > > > script, that is calling my function, without the need to send
> > > > __FILE__ and __LINE__ as parameter to my function.
> > > > E.g. __CFILE__ for calling script and __CLINE__ for line in the
> > > > calling script would be really great.
> > > > In addition it'll be useful, if I could use trigger_error in this
> > manner.
> > > > Most of the time i don't want to know, on which line my
trigger_error
> > > > call is located, but on which line in the script that called my
> > function,
> > > > the
> > > > error occured. it'll be nice, if trigger_error could be extended, so
it
> > > > takes
> > > > to more parameters, which overwrite the default __FILE__, __LINE__
> > > > settings of trigger error.
> > > >
> > > > Example:
> > > >
> > > > function somefunction($array) {
> > > > if (!is_array($array)) {
> > > > trigger_error("Not an array", E_USER_ERROR, __CFILE__,
> > __CLINE__);
> > > > }
> > > > // do something with the array
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > PHP Development Mailing List 
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> ---
> > >  Did I help you? Consider a gift:
> > >   http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> >
> ---
> > >   PHP: Scripting the Web - [EMAIL PROTECTED]
> > > All your branches are belong to me!
> > > SRM: Script Running Machine - www.vl-srm.net
> >
> ---
> > >
> >
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




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

2002-04-25 Thread Markus Fischer

Hi,

PHP is 'dumb'. It doesn't know about a global scope, or your
logged users in or your current user. This task is up to be
implemented in user space.

- Markus

On Thu, Apr 25, 2002 at 02:29:03PM +0100, Dan Hardiker wrote : 
> While were talking about session advancement... has anyone ever thought of
> adding shared sesssions? Consider the following scenario:
> 
> I have 3 sets of variables:
> 
>   1. Global Scoped - Variables accessed and altered by anyone entering my
> site. EG: a "currently online" array which stores the a list of active users
>   2. Logged in Scoped - Variables accessed by *anyone* logged in. EG: if
> you cache the database stuff in a session then if one user updates the
> cache the often you want all the logged in users to see that change without
> having to requery the db
>   3. Individual Scope - Variables specific to this user (eg: whats my name,
> my last ip, when did I last do anything meaningful).
> 
> Being able to split those scopes up into separate variables would be great
> and being able to do something along the lines of:
> 
> $session->global = array of global variables
> $session->loggedin = 2nd scope
> $session->personal = personal variables
> 
> and then have the session module manage those 3 sessions individually.
> 
> 
> In short - it would be cool if a script could (easily) have access to a
> multitude of sessions and keep them segregated.
> 
> -- 
> Dan Hardiker [[EMAIL PROTECTED]]
> ADAM Software & Systems Engineer
> First Creative Ltd
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




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

2002-04-25 Thread Dan Hardiker

While were talking about session advancement... has anyone ever thought of
adding shared sesssions? Consider the following scenario:

I have 3 sets of variables:

  1. Global Scoped - Variables accessed and altered by anyone entering my
site. EG: a "currently online" array which stores the a list of active users
  2. Logged in Scoped - Variables accessed by *anyone* logged in. EG: if
you cache the database stuff in a session then if one user updates the
cache the often you want all the logged in users to see that change without
having to requery the db
  3. Individual Scope - Variables specific to this user (eg: whats my name,
my last ip, when did I last do anything meaningful).

Being able to split those scopes up into separate variables would be great
and being able to do something along the lines of:

$session->global = array of global variables
$session->loggedin = 2nd scope
$session->personal = personal variables

and then have the session module manage those 3 sessions individually.


In short - it would be cool if a script could (easily) have access to a
multitude of sessions and keep them segregated.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Addition to session-module (patch included)

2002-04-25 Thread Thies C. Arntzen

On Thu, Apr 25, 2002 at 03:04:36PM +0200, Harald Radi wrote:
> sounds very useful, go ahead ;)
> 
> would you mind extending it that session_set_userdata(array("thies" =>
> "1", "harald" => "2", "knorp" => "100")) would be possible ?

nope - that would make the url_scanner slower.
but you can always ancode as much data as you want into the
one userdata var.

tc
> 
> harald.
> 
> "Thies C. Arntzen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:<[EMAIL PROTECTED]>...
> > 
> > hi,
> > 
> > i have made a small patch to the session-module which allows
> > the script to inject some user-defined data into the
> > url_rewriter.
> > 
> > why do i need this? 
> > - i want to be able to open a 2nd browserwindow 
> > - this window will use the same session as the 1st one
> > - i need to be able to differentiate the two windows on the
> >   PHP side
> > 
> > right now the session module can "only" store one cookie (or
> > one info in trans-sid) my patch extends that to one
> > user-defined variable so that:
> > 
> >  > session_start();
> > session_set_userdata("thies", "1");
> > ?>
> > test
> > 
> > 
> > 
> > 
> > 
> > 
> > will generate:
> > 
> >  > href="test.php?MOFL=34b91e4e3d0974c3722c1298172dfb08&thies=1">test
> > 
> >  > value="34b91e4e3d0974c3722c1298172dfb08" /> > name="thies" value="1" />
> > 
> > 
> > 
> > 
> > as you can see "thies" = "1" will now be kept on the page.
> > 
> > so to open a new window _and_ have a unique identifier for
> > each openend window you would do something like:
> > 
> > 
> >  > session_start();
> > 
> > if (! isset($_SESSION[ 'mydata' ])) {
> > $_SESSION[ 'mydata' ] = array();
> > }
> > 
> > if (isset($_REQUEST[ 'newwindow' ])) {
> > $windowid = time();
> > } elseif (isset($_REQUEST[ 'windowid' ])) {
> > $windowid = $_REQUEST[ 'windowid' ];
> > } else {
> > $windowid = 0;
> > }
> > session_set_userdata("windowid", (string) $windowid);
> > 
> > if (! isset($_SESSION[ 'mydata' ][ $windowid ])) {
> > $_SESSION[ 'mydata' ][ $windowid ] = 0;
> > }
> > 
> > echo "clicks in this window ". ++$_SESSION[ 'mydata' ][ $windowid 
> > ].""; ?> New Window
> > 
> > testform:
> > 
> > 
> > 
> > 
> > 
> > 
> > is it OK to commit? 
> > tc
> > 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Addition to session-module (patch included)

2002-04-25 Thread Thies C. Arntzen

On Thu, Apr 25, 2002 at 03:14:19PM +0200, Daniel Lorch wrote:
> Hi,
> 
> >> I am not quite sure whether I understood what you are trying to do,
> >> but assumingly you have 2 frames:
> 
> > i'm talking about 2 or more windows!
> 
> > please reread.
> > tc
> 
> Ups, sorry. I am having the same problem, but I'm solving it by giving
> every window a 'key' (like a secondary session ID). But your patch
> sounds like a good idea :)

yep, this patch will make it work using trans-sid
without any additional  headace.

tc

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP-DEV] Addition to session-module (patch included)

2002-04-25 Thread Daniel Lorch

Hi,

>> I am not quite sure whether I understood what you are trying to do,
>> but assumingly you have 2 frames:

> i'm talking about 2 or more windows!

> please reread.
> tc

Ups, sorry. I am having the same problem, but I'm solving it by giving
every window a 'key' (like a secondary session ID). But your patch
sounds like a good idea :)

-daniel



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Addition to session-module (patch included)

2002-04-25 Thread Harald Radi

sounds very useful, go ahead ;)

would you mind extending it that session_set_userdata(array("thies" =>
"1", "harald" => "2", "knorp" => "100")) would be possible ?

harald.

"Thies C. Arntzen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:<[EMAIL PROTECTED]>...
> 
> hi,
> 
> i have made a small patch to the session-module which allows
> the script to inject some user-defined data into the
> url_rewriter.
> 
> why do i need this? 
> - i want to be able to open a 2nd browserwindow 
> - this window will use the same session as the 1st one
> - i need to be able to differentiate the two windows on the
>   PHP side
> 
> right now the session module can "only" store one cookie (or
> one info in trans-sid) my patch extends that to one
> user-defined variable so that:
> 
>  session_start();
> session_set_userdata("thies", "1");
> ?>
> test
> 
> 
> 
> 
> 
> 
> will generate:
> 
>  href="test.php?MOFL=34b91e4e3d0974c3722c1298172dfb08&thies=1">test
> 
>  value="34b91e4e3d0974c3722c1298172dfb08" /> name="thies" value="1" />
> 
> 
> 
> 
> as you can see "thies" = "1" will now be kept on the page.
> 
> so to open a new window _and_ have a unique identifier for
> each openend window you would do something like:
> 
> 
>  session_start();
> 
> if (! isset($_SESSION[ 'mydata' ])) {
> $_SESSION[ 'mydata' ] = array();
> }
> 
> if (isset($_REQUEST[ 'newwindow' ])) {
> $windowid = time();
> } elseif (isset($_REQUEST[ 'windowid' ])) {
> $windowid = $_REQUEST[ 'windowid' ];
> } else {
> $windowid = 0;
> }
> session_set_userdata("windowid", (string) $windowid);
> 
> if (! isset($_SESSION[ 'mydata' ][ $windowid ])) {
> $_SESSION[ 'mydata' ][ $windowid ] = 0;
> }
> 
> echo "clicks in this window ". ++$_SESSION[ 'mydata' ][ $windowid 
> ].""; ?> New Window
> 
> testform:
> 
> 
> 
> 
> 
> 
> is it OK to commit? 
> tc
> 


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Addition to session-module (patch included)

2002-04-25 Thread Thies C. Arntzen

On Thu, Apr 25, 2002 at 02:41:56PM +0200, Daniel Lorch wrote:
> Hi,
> 
> > right now the session module can "only" store one cookie (or
> > one info in trans-sid) my patch extends that to one
> > user-defined variable so that:
> 
> I am not quite sure whether I understood what you are trying to do,
> but assumingly you have 2 frames:

i'm talking about 2 or more windows!

please reread.
tc

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Addition to session-module (patch included)

2002-04-25 Thread Daniel Lorch

Hi,

> right now the session module can "only" store one cookie (or
> one info in trans-sid) my patch extends that to one
> user-defined variable so that:

I am not quite sure whether I understood what you are trying to do,
but assumingly you have 2 frames:

  +---+
  |  foo  |
  +---+
  |  bar  |
  +---+

what's wrong about keeping all session-related data in an array?

  $data["foo"]["counter"];
  $data["bar"]["counter"];

and accordingly:

  foo.php
  ===

  \n";
  
  ?>

  
  bar.php
  ===

  \n";
  
  ?>

Or did I miss something?

Multiple session IDs only cause confusion. I'm -1.
  
-daniel



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Edin Kadribasic

Summary (mysql related connection problems) :

4.2.0 was packed with configure script made by autoconf 2.52 which doesn't
seem to work correcly.
configure built with autoconf 2.13 works fine.

Resolutions:
* wait for 4.2.1 (due in a week or so)
* if you have autoconf 2.13 on you system, delete configure and run
./buildconf
* download configure script from http://www.edin.dk/php/configure.gz

Edin


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Addition to session-module (patch included)

2002-04-25 Thread Thies C. Arntzen


hi,

i have made a small patch to the session-module which allows
the script to inject some user-defined data into the
url_rewriter.

why do i need this? 
- i want to be able to open a 2nd browserwindow 
- this window will use the same session as the 1st one
- i need to be able to differentiate the two windows on the
  PHP side

right now the session module can "only" store one cookie (or
one info in trans-sid) my patch extends that to one
user-defined variable so that:


test






will generate:

test






as you can see "thies" = "1" will now be kept on the page.

so to open a new window _and_ have a unique identifier for
each openend window you would do something like:


";
?>
New Window

testform:






is it OK to commit? 
tc


Index: session/php_session.h
===
RCS file: /repository/php4/ext/session/php_session.h,v
retrieving revision 1.75
diff -u -r1.75 php_session.h
--- session/php_session.h   30 Mar 2002 16:29:15 -  1.75
+++ session/php_session.h   25 Apr 2002 11:30:36 -
@@ -93,6 +93,8 @@
char *save_path;
char *session_name;
char *id;
+   char *udata_name;
+   char *udata_value;
char *extern_referer_chk;
char *entropy_file;
char *cache_limiter;
@@ -141,6 +143,7 @@
 PHP_FUNCTION(session_set_cookie_params);
 PHP_FUNCTION(session_get_cookie_params);
 PHP_FUNCTION(session_write_close);
+PHP_FUNCTION(session_set_userdata);
 
 #ifdef ZTS
 #define PS(v) TSRMG(ps_globals_id, php_ps_globals *, v)
Index: session/session.c
===
RCS file: /repository/php4/ext/session/session.c,v
retrieving revision 1.296
diff -u -r1.296 session.c
--- session/session.c   30 Mar 2002 16:29:15 -  1.296
+++ session/session.c   25 Apr 2002 11:30:37 -
@@ -71,10 +71,13 @@
PHP_FE(session_set_cookie_params, NULL)
PHP_FE(session_get_cookie_params, NULL)
PHP_FE(session_write_close, NULL)
+   PHP_FE(session_set_userdata, NULL)
{NULL, NULL, NULL} 
 };
 /* }}} */
 
+#define SAFE_STRING(s) ((s)?(s):"")
+
 ZEND_DECLARE_MODULE_GLOBALS(ps);
 
 static ps_module *_php_find_ps_module(char *name TSRMLS_DC);
@@ -84,7 +87,7 @@
 static void php_session_output_handler(char *output, uint output_len, char 
**handled_output, uint *handled_output_len, int mode TSRMLS_DC)
 {
if ((PS(session_status) == php_session_active)) {
-   *handled_output = url_adapt_ext_ex(output, output_len, 
PS(session_name), PS(id), handled_output_len, (zend_bool) (mode&PHP_OUTPUT_HANDLER_END 
? 1 : 0) TSRMLS_CC);
+   *handled_output = url_adapt_ext_ex(output, output_len, 
+PS(session_name), PS(id), SAFE_STRING(PS(udata_name)), SAFE_STRING(PS(udata_value)), 
+handled_output_len, (zend_bool) (mode&PHP_OUTPUT_HANDLER_END ? 1 : 0) TSRMLS_CC);
} else {
*handled_output = NULL;
}
@@ -1403,11 +1406,32 @@
 }
 /* }}} */
 
+/* {{{ proto bool session_set_userdata(string var, string value)
+   sets one additional variable that will be added by in trans-SID mode */
+PHP_FUNCTION(session_set_userdata)
+{
+   zval **str;
+   zval **val;
+
+   if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &str, &val) == FAILURE)
+   WRONG_PARAM_COUNT;
+   
+   if ((Z_TYPE_PP(str) != IS_STRING) || (Z_TYPE_PP(val) != IS_STRING)) {
+   php_error(E_ERROR,"session_set_userdata expects both parameters to be 
+strings");
+   RETURN_FALSE;
+   }
+
+   PS(udata_name) = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));
+   PS(udata_value) = estrndup(Z_STRVAL_PP(val), Z_STRLEN_PP(val));
+
+   RETURN_TRUE;
+}
+/* }}} */
 
 PHPAPI void session_adapt_url(const char *url, size_t urllen, char **new, size_t 
*newlen TSRMLS_DC)
 {
if (PS(apply_trans_sid) && (PS(session_status) == php_session_active)) {
-   *new = url_adapt_single_url(url, urllen, PS(session_name), PS(id), 
newlen TSRMLS_CC);
+   *new = url_adapt_single_url(url, urllen, PS(session_name), PS(id), 
+PS(udata_name), PS(udata_value), newlen TSRMLS_CC);
}
 }
 
@@ -1430,6 +1454,17 @@
if (PS(id)) {
efree(PS(id));
}
+
+   if (PS(udata_name)) {
+   efree(PS(udata_name));
+   PS(udata_name) = NULL;
+   }
+
+   if (PS(udata_value)) {
+   efree(PS(udata_value));
+   PS(udata_value) = NULL;
+   }
+
zend_hash_destroy(&PS(vars));
 }
 
Index: standard/url_scanner_ex.c
===
RCS file: /repository/php4/ext/standard/url_scanner_ex.c,v
retrieving revision 1.53
d

Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Markus Fischer

Heh, ok, who did ? :-)

- Markus

On Thu, Apr 25, 2002 at 01:59:18PM +0200, [EMAIL PROTECTED] wrote : 
> On Thu, 25 Apr 2002, Markus Fischer wrote:
> 
> > (similar if not identical with 4.1.2)
> > 
> > Derick, are you sure you built 4.1.2 configure with 2.52 ?!
> 
> I didn't say 4.1.2, but 4.1.0/4.1.1. I didn't build 4.1.2 afaik 
> 
> Derick
> 
> ---
>  Did I help you? Consider a gift:
>   http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> ---
>   PHP: Scripting the Web - [EMAIL PROTECTED]
> All your branches are belong to me!
> SRM: Script Running Machine - www.vl-srm.net
> ---

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread derick

On Thu, 25 Apr 2002, Markus Fischer wrote:

> (similar if not identical with 4.1.2)
> 
> Derick, are you sure you built 4.1.2 configure with 2.52 ?!

I didn't say 4.1.2, but 4.1.0/4.1.1. I didn't build 4.1.2 afaik 

Derick

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Markus Fischer


4.1.2 from scratch:

checking for ANSI C header files... (cached) yes
checking for sgtty.h... yes
checking for sys/ioctl.h... yes
checking for fcntl.h... (cached) yes
checking for float.h... yes
checking for floatingpoint.h... no
checking for ieeefp.h... (cached) no
checking for limits.h... (cached) yes
checking for memory.h... yes
checking for pwd.h... (cached) yes
checking for select.h... no
checking for stdlib.h... (cached) yes
checking for stddef.h... yes
checking for strings.h... yes
checking for string.h... (cached) yes
checking for synch.h... no
checking for sys/mman.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... yes


4.2.0 from scratch:
checking for ANSI C header files... (cached) yes
checking for sgtty.h... no
checking for sys/ioctl.h... no
checking for fcntl.h... (cached) yes
checking for float.h... no
checking for floatingpoint.h... no
checking for ieeefp.h... (cached) no
checking for limits.h... (cached) yes
checking for memory.h... (cached) yes
checking for pwd.h... (cached) yes
checking for select.h... no
checking for stdlib.h... (cached) yes
checking for stddef.h... no
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for synch.h... no
checking for sys/mman.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/timeb.h... no
checking for sys/types.h... (cached) yes
checking for sys/un.h... no


(quite a difference ...)

4.2.0 deleted configure and rebuilt with autoconf 2.13, automake
version 1.4-p4 and libtool version 1.4.2a:

ecking for ANSI C header files... (cached) yes
checking for sgtty.h... yes
checking for sys/ioctl.h... yes
checking for fcntl.h... (cached) yes
checking for float.h... yes
checking for floatingpoint.h... no
checking for ieeefp.h... (cached) no
checking for limits.h... (cached) yes
checking for memory.h... yes
checking for pwd.h... (cached) yes
checking for select.h... no
checking for stdlib.h... (cached) yes
checking for stddef.h... yes
checking for strings.h... yes
checking for string.h... (cached) yes
checking for synch.h... no
checking for sys/mman.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... yes

(similar if not identical with 4.1.2)

Derick, are you sure you built 4.1.2 configure with 2.52 ?!

- Markus

On Thu, Apr 25, 2002 at 01:20:15PM +0200, [EMAIL PROTECTED] wrote : 
> On Thu, 25 Apr 2002, Markus Fischer wrote:
> 
> > Hi,
> > 
> > after some digging I think I've found something, but I'm not
> > quite sure.
> > 
> > The configure shipped with php-4.2.0 is unable to properly
> > detect  and therefore does NOT set HAVE_SYS_UN_H
> > which is the basis for unix socket support in
> > ext/mysql/libmysql/ .
> > 
> > I've rebuilt the configure from the source archive with
> > autoconf 2.13 and the header was detected and the #define was
> > properly set (in php4/main/php_config.h) and it seems to
> > work.
> 
> Now this is weird, because 4.1.[01] and 4.2.0 were both build with 
> autoconf 2.52
> 
> Derick
> 
> ---
>  Did I help you? Consider a gift:
>   http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> ---
>   PHP: Scripting the Web - [EMAIL PROTECTED]
> All your branches are belong to me!
> SRM: Script Running Machine - www.vl-srm.net
> ---
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] feature request

2002-04-25 Thread Roland Tapken

Hi!

Am Wed, 24 Apr 2002 22:15:19 +0200 schrieb Daniel Lorch <[EMAIL PROTECTED]>:

> function line_count($string) {
>   return count(preg_split("/\r?\n/", $string));
> }

Why not simply use a substr_count($string, "\n")? It works fine for me...

cu, Roland Tapken
-- 
Please reply to:  [EMAIL PROTECTED]
PGP Public Key: http://www.engter.de/~tapkenea/gnupg_roland.txt
  ~~~ I'm a signature-virus. Please copy me into your sig. ~~~

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] a (maybe) feature-request ...

2002-04-25 Thread Edin Kadribasic

> To php-dev:  Would ext/sysvmsg be a good candidate for the core,
> or should it go into PECL?

Since we already have sysvshm and sysvsem I think this should go into the
core.

Edin


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread derick

On Thu, 25 Apr 2002, Markus Fischer wrote:

> Hi,
> 
> after some digging I think I've found something, but I'm not
> quite sure.
> 
> The configure shipped with php-4.2.0 is unable to properly
> detect  and therefore does NOT set HAVE_SYS_UN_H
> which is the basis for unix socket support in
> ext/mysql/libmysql/ .
> 
> I've rebuilt the configure from the source archive with
> autoconf 2.13 and the header was detected and the #define was
> properly set (in php4/main/php_config.h) and it seems to
> work.

Now this is weird, because 4.1.[01] and 4.2.0 were both build with 
autoconf 2.52

Derick

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP-DEV] feature request

2002-04-25 Thread Daniel Lorch

Hi,

> Anyway. There were some discussions lately to implement
> something like word_count() and similar friends. Though I
> don't remember what has happened, you might want to look it
> up in the archive an join the discussion (It was just a week
> ago or so I think).

There were some concerns about performance. A function built-in to PHP
would be certainly faster, and as it was requested already twice,
maybe adding such functions natively to PHP wouldn't be a bad idea.

-daniel



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Recent mysql related connection problems with 4.2.0

2002-04-25 Thread Markus Fischer

Hi,

after some digging I think I've found something, but I'm not
quite sure.

The configure shipped with php-4.2.0 is unable to properly
detect  and therefore does NOT set HAVE_SYS_UN_H
which is the basis for unix socket support in
ext/mysql/libmysql/ .

I've rebuilt the configure from the source archive with
autoconf 2.13 and the header was detected and the #define was
properly set (in php4/main/php_config.h) and it seems to
work.

HTH,

- Markus

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: str_replace fails with preset arrays

2002-04-25 Thread Manuzhai

You should probably be using strtr() for this.

Anyway, questions about developing WITH PHP should go to the php-general
list, instead of php-dev (which is for developing PHP itself).

Regards,

Manuzhai

"Izx" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi ppl,
>
> $xarray=('ab', 'ba');
> $xsearch=array('a', 'b');
> $xreplace=array('c', 'd');
> $xarray=str_replace($xsearch, $xreplace, $xarray);
>
> str_replace used this way fails, returning $xarray unmodified. However:
>
> $xarray=str_replace(array('a', 'b'), array('c', 'd'), $xarray);
>
> works OK.
>
> Any solutions why str_replace doesn't work with externally defined arrays?
>
> TIA,
> izx
>
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] a (maybe) feature-request ...

2002-04-25 Thread Wez Furlong

Hi Thomas,

I wrote such an extension a while ago, intending to commit it.
But then I got busy and forgot about it.
I'll email you a tarball; if you could try it out and give me some
feedback, I'd appreciate it.

To php-dev:  Would ext/sysvmsg be a good candidate for the core,
or should it go into PECL?

--Wez.

On 25/04/02, "Thomas Seifert" <[EMAIL PROTECTED]> wrote:
> is there already support for the use of unix-messages?
> I wanted to try them for communication with a small daemon I wrote
> but I couldn't find any information about them.
> 
> If there isn't already a module or a function for this ...
> how about adding these for later versions?
> Should be easy to add since there are relatively simple syscalls for these.
> 
> Thanks a lot
> 
> Thomas



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: rhheo

2002-04-25 Thread Ryeonho Heo

to translate php.net into korean language

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] str_replace fails with preset arrays

2002-04-25 Thread izx

Hi ppl,

$xarray=('ab', 'ba');
$xsearch=array('a', 'b');
$xreplace=array('c', 'd');
$xarray=str_replace($xsearch, $xreplace, $xarray);

str_replace used this way fails, returning $xarray unmodified. However:

$xarray=str_replace(array('a', 'b'), array('c', 'd'), $xarray);

works OK.

Any solutions why str_replace doesn't work with externally defined arrays?

TIA,
izx



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] a (maybe) feature-request ...

2002-04-25 Thread Thomas Seifert

is there already support for the use of unix-messages?
I wanted to try them for communication with a small daemon I wrote
but I couldn't find any information about them.

If there isn't already a module or a function for this ...
how about adding these for later versions?
Should be easy to add since there are relatively simple syscalls for these.

Thanks a lot

Thomas


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php