Re: [PHP-DEV] Quick CVS Request for 4.2.1RC1

2002-04-25 Thread derick
Hello, On Wed, 24 Apr 2002, Michael Sisolak wrote: If someone with CVS access would make the quick patches to the COM extension described in these two bug reports for 4.2.1RC1 it would really clean up all the Win32 codepage stuff: #16767 - 4.2.0 broke setting the codepage when you don't

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2002-04-25 Thread Yasuo Ohgaki
Markus Fischer wrote: In such cases the manual has to be changed, not the code. No problem. I'll revert and update manual page. Most PostgreSQL users should enable multibyte support, IMO :) -- Yasuo Ohgaki - Markus On Thu, Apr 25, 2002 at 03:28:41PM +0900, Yasuo Ohgaki wrote :

[PHP-DEV] Re: Bug #16733 Updated: posix_getpw* bypasses safe_mode and open_basedir

2002-04-25 Thread Markus Fischer
Hi, help is always appricaited. Without taking a closer look, is this the only function which should be 'guarded' or are there other within the ext/posix extensions? - Markus On Thu, Apr 25, 2002 at 04:30:06AM -, [EMAIL PROTECTED] wrote : ID: 16733

Re: [PHP-DEV] Error Linking Win32 Extensions

2002-04-25 Thread Markus Fischer
Hi, for me, I've always copied over another projects *.dsp file and modified the related parts. I think you're getting a faster answer why this is so if you compare your Wizards generated file with the files within the PHP sources ... - Markus On Wed, Apr 24, 2002

Re: [PHP-DEV] feature request

2002-04-25 Thread Markus Fischer
Hi, people fail to understand the reason why to bloat PHP with just another function which is really just a call to another function (e.g. preg_*() in PHP. As for parsing an ini file, this is certainly not true. Anyway. There were some discussions lately to implement

[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

[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

[PHP-DEV] CVS Account Request: rhheo

2002-04-25 Thread Ryeonho Heo
to translate php.net into korean language -- PHP Development Mailing List http://www.php.net/ 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

[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,

[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 sys/un.h and therefore does NOT set HAVE_SYS_UN_H which is the basis for unix socket support in ext/mysql/libmysql/ .

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

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 sys/un.h and therefore does NOT set HAVE_SYS_UN_H which is the basis for

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]

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...

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

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

[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

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: +---+ |

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

[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

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

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,

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

[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

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...

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

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

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

[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: html head titleTest/title /head body ? $link =

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

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.

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]

[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 http://www.php.net/ To unsubscribe, visit:

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();

[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, -

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

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

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

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

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

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

Re: [PHP-DEV] ?= and %= both work, why not ?php=

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 ?= if short tags are enabled, or %= if

[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

RE: [PHP-DEV] ?= and %= both work, why not ?php=

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

[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?

[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

[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 http://www.php.net/ To unsubscribe, visit:

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

Re: [PHP-DEV] ?= and %= both work, why not ?php=

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) --

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 --

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

RE: [PHP-DEV] ?= and %= both work, why not ?php=

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