[PHP-DEV] bugs database searching

2002-02-28 Thread GaM3R
reading from http://bugs.php.net/source.php?url=/search.php . . . just a suggestion, if (strlen($search_for)) { $where_clause .= " AND MATCH (email,sdesc,ldesc) AGAINST ('$search_for')"; } should be if (strlen($search_for) > 3 ) { $where_clause .= " AND MATCH (email,

Re: [PHP-DEV] [Fwd: [PHP-CVS] cvs: php4 /ext/mcve mcve.c]

2002-02-28 Thread Sebastian Bergmann
Sebastian Bergmann wrote: >> First of all, why does this not belong in ext/ >> as CCVS/CyberCash/etc does ? The extensions you mention will be moved to PEAR / PECL in due time. At the moment we would like to see no new extensions added to /php4/ext/. -- Sebastian Bergmann http://sebasti

Re: [PHP-DEV] php cvs with zendengine2

2002-02-28 Thread GaM3R
'--with-config-file-path=/home/gamr/vhosts/ec.gamrdev.workgroup/php.ini' gamr@gamrdev ~ > ls -la /home/gamr/vhosts/ec.gamrdev.workgroup/php.ini -rw-r--r-- 1 gamr gamr 1681 Mar 1 16:28 /home/gamr/vhosts/ec.gamrdev.workgroup/php.ini gamr@gamrdev ~ > Where I told it it would be when i compiled

Re: [PHP-DEV] php cvs with zendengine2

2002-02-28 Thread Derick Rethans
On Fri, 1 Mar 2002, GaM3R wrote: > FreeBSD gamrdev.workgroup 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Jun 11 > 22:06:18 GMT 2001 [EMAIL PROTECTED]:/.1/src/sys/compile/bsd i386 > PHP Version 4.3.0-dev > Build Date Mar 1 2002 16:16:45 > Zend Engine v2.0.0-dev, Copyright (c) 1998-2002 Zend Technol

[PHP-DEV] php cvs with zendengine2

2002-02-28 Thread GaM3R
FreeBSD gamrdev.workgroup 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Jun 11 22:06:18 GMT 2001 [EMAIL PROTECTED]:/.1/src/sys/compile/bsd i386 PHP Version 4.3.0-dev Build Date Mar 1 2002 16:16:45 Zend Engine v2.0.0-dev, Copyright (c) 1998-2002 Zend Technologies Configure Command './configure' '--

[PHP-DEV] [mfischer@php.net: Bug #12465 Updated: posix_* issuing Warnings, no error code.]

2002-02-28 Thread Markus Fischer
I'm forwarding this to php-dev@ (so people doing filtering don't miss it ;) and let's see what opinion others have about this. - Markus -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc --- Begin Message ---

[PHP-DEV] Re: Bug #12465 Updated: posix_* issuing Warnings, no error code.

2002-02-28 Thread Markus Fischer
On Thu, Feb 28, 2002 at 11:10:00PM -, [EMAIL PROTECTED] wrote : > ID: 12465 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > Status: Open > Bug Type: POSIX related > Operating System: Linux > PHP Version: 4.0.6 > New Co

Re: [PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Brad Fisher
The correct proto for unhtmlentities is: /* {{{ proto string unhtmlentities(string str [, string charset]) sry about that. -Brad -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Brad Fisher
Just a newer version of the unhtmlentities function. This one utilizes the same tables as htmlentities, and (hopefully) is a little more locale friendly. It also supports &#...; (decimal) &#x...; (hex) and &#X...; (hex) numeric entity formats. -Brad Index: ext/standard//basic_functions.c

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Yasuo Ohgaki
Wez Furlong wrote: > Well, if the general opinion is that there *should* be such a > function included in PHP, around a week or so ago I implemented > a version that uses the multiple charset aware tables that are > already in html.c. > > But the voting was -0 (Derick) and +1 (Yasuo). > Personall

Re: [PHP-DEV] Re: unset($_SESSION[...]) vs. register_globals=On

2002-02-28 Thread Yasuo Ohgaki
Steve Meyers wrote: > I think you're missing something here, Yasuo. Hans is talking about > unregistering a single session variable, not the entire session array. > He's talking about unset($_SESSION['varname']), not unset($_SESSION). > Thanks for point it out and sorry for sloppy reading ;)

[PHP-DEV] opendir SafeMode Multiuser Problem/Patch

2002-02-28 Thread Chand
hi, Just wanted to let you guys know that the php opendir() function suffers a tiny security risk in a multiuser environment. Say you have a server with multiple users having access to php. Those users Homedirs are stored in the same tree (say /data/users/). With the function as it is now, t

RE: [PHP-DEV] Parsing File Names

2002-02-28 Thread Chris Newbill
This is really the wrong list for this. PHP-DEV is about developing PHP, not developing WITH PHP. BUT since I like your username 'phpmonkey' here's how ya'd do it. (untested of course, but the general idea) :) -Chris -Original Message- From: Jason Dubya [mailto:[EMAIL PROTECTED]] Sen

[PHP-DEV] Parsing File Names

2002-02-28 Thread Jason Dubya
I am trying to create a script that will crawl through a directory, take each file name, and parse it to get information from the filename. This is going to be used to place artists and song names into a database. The filenames are all in the following format: artist - songname.mp3 Is there an

[PHP-DEV] [Fwd: [PHP-CVS] cvs: php4 /ext/mcve mcve.c]

2002-02-28 Thread Sebastian Bergmann
Brad House wrote: > > For some reason, I can't send e-mail to any > @*.php.net it gives me error 533, so I can > only reply directly to you... > > First of all, why does this not belong in ext/ > as CCVS/CyberCash/etc does ? > > Next, we heavily support the MacOS X community, > but last I checke

[PHP-DEV] Who coded upload flaw?

2002-02-28 Thread August
Curious how this upload flaw got through. One would think this code, of all the bits of code out there would have been most carefully screened as uploading files is a natural trouble spot. I know historically there were a number of security questions with it, and now this. - AZ -- PHP Dev

RE: [PHP-DEV] MailServer blacklist

2002-02-28 Thread Jaime Bozza
Brad, It looks like your server is still listed on the osirusoft.com database of open relays. You'll need to get off that database at the very least. I'm not sure how php.net blocks, but if they're using that database you're out of luck until you're removed. Try this link for more informatio

[PHP-DEV] Take a "close" look at this article

2002-02-28 Thread Chris Newbill
http://news.com.com/2100-1001-847092.html   Look at the author’s last name, sounds familiar doesn’t it? J   (Yes, this is about PHP)   -Chris

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Wez Furlong
Well, if the general opinion is that there *should* be such a function included in PHP, around a week or so ago I implemented a version that uses the multiple charset aware tables that are already in html.c. But the voting was -0 (Derick) and +1 (Yasuo). Personally, I'm +0 since I have written th

[PHP-DEV] MailServer blacklist

2002-02-28 Thread Brad House
This is terribly off-topic, so I appologize in advance, if you could tell me where to redirect this to, that would be great. My Mailserver (216.155.101.162) had been blacklisted from *@*.php.net and I need to get it removed so. It had been configured as open-relay, and I assume that is why it g

Re: [PHP-DEV] [Fwd: [PHP-CVS] cvs: php4 /ext/mcve mcve.c]

2002-02-28 Thread Jan Lehnardt
Hi, On Thu, 28 Feb 2002 17:48:57 +0100 Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > > Next, we heavily support the MacOS X community, > > but last I checked, PEAR wouldn't even compile > > on OS X, so this would inhibit OS X users from > > using our module. PEAR is a repository, it is not sup

[PHP-DEV] [Fwd: [PHP-CVS] cvs: php4 /ext/mcve mcve.c]

2002-02-28 Thread Sebastian Bergmann
Brad House wrote: > For some reason, I can't send e-mail to any > @*.php.net it gives me error 533, so I can > only reply directly to you... > > First of all, why does this not belong in ext/ > as CCVS/CyberCash/etc does ? > > Next, we heavily support the MacOS X community, > but last I checked,

[PHP-DEV] Re: No announce for PHP 4.1.2

2002-02-28 Thread Steve Meyers
Yasuo Ohgaki wrote: > Hi, whoever relased PHP 4.1.2. > > It is announced in freshmeast. > However, there is no announce message in php.announce (yet) :) > There was also no announcement for the security bugfix to PHP. IMO, this is a serious oversight. -- PHP Development Mailing List

Re: [PHP-DEV] Re: unset($_SESSION[...]) vs. register_globals=On

2002-02-28 Thread Steve Meyers
I think you're missing something here, Yasuo. Hans is talking about unregistering a single session variable, not the entire session array. He's talking about unset($_SESSION['varname']), not unset($_SESSION). Yasuo Ohgaki wrote: > Hans Spath wrote: >> Yasuo Ohgaki wrote: >> >>> Hans Spath w

[PHP-DEV] Small change in Apache2

2002-02-28 Thread Teodor Cimpoesu
Hi, Apache 2.0.32 changed the prototype of ap_get_brigade. To make php4.1.2 compile w/ it I had to do: --- sapi_apache2.c.orig Thu Feb 28 15:52:54 2002 +++ sapi_apache2.c Thu Feb 28 15:53:03 2002 @@ -244,7 +244,7 @@ INIT_CTX; - if ((rv = ap_get_brigade(f->next, bb, mode, re

Re: [PHP-DEV] [PATCH] Better fix for PHP Safe Mode FilesystemCircumvention Problem

2002-02-28 Thread Jason Greene
Yes this for sure works. CLIENT_CAPABILITIES is a bitmask consisting of the capabilities of the mysql client. CLIENT_LOCAL_FILES is bit 8 of the mask (128). This information is sent to the server, which is actually who decides whether local file uploads happen. server code in mysql_server 3.23.49

[PHP-DEV] PHP and Apache-1.3.23

2002-02-28 Thread Robinson, Mike
Title: PHP and Apache-1.3.23 FWIW, the AddType section of httpd.conf-dist distributed with the latest Apache-1.3.x has had the PHP references removed, including the commented AddType lines for enabling PHP3 and PHP4. Mike Robinson IT/Developer - Torstar Media Group Television Phone: 416.945.

Re: [PHP-DEV] [PATCH] Better fix for PHP Safe Mode FilesystemCircumvention Problem

2002-02-28 Thread Zak Greant
On Thu, 2002-02-28 at 07:22, Andi Gutmans wrote: > At 05:03 AM 2/28/2002 -0700, Zak Greant wrote: > >Hi Jason, > > > >Did this actually work? I wrote almost the same code on my own and > >tested it, only to find that nothing changed. I walked through the code, > >but did not spot a point where the

Re: [PHP-DEV] [PATCH] Better fix for PHP Safe Mode Filesystem Circumvention Problem

2002-02-28 Thread Andi Gutmans
At 05:03 AM 2/28/2002 -0700, Zak Greant wrote: >Hi Jason, > >Did this actually work? I wrote almost the same code on my own and >tested it, only to find that nothing changed. I walked through the code, >but did not spot a point where the CLIENT_LOCAL_FILES is actually used >other than: > >% grep -

Re: [PHP-DEV] 4.2.0 & CLI

2002-02-28 Thread Derick Rethans
On Thu, 28 Feb 2002, Edin Kadribasic wrote: > Would you try implementing it? I'll try it sometime this week(end). Derick -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 4.2.0 & CLI

2002-02-28 Thread Edin Kadribasic
> > 2. php.ini search path has CWD as the first element. This is IMHO major > > inconvinience if we want to make PHP more suitable for writing general > > purpose applications like PHP-GTK, etc. The execution of the program shold > > not depend on where the program was started from. > > Agreed, bu

[PHP-DEV] Re: [PHP-QA] Re: PHP 4.2.0 release process

2002-02-28 Thread Yasuo Ohgaki
Sascha Schumann wrote: > On Thu, 28 Feb 2002, Derick Rethans wrote: > > >>On Thu, 28 Feb 2002, Yasuo Ohgaki wrote: >> >> >>>Derick, Sascha, do you find any problem with my session >>>patch? It fixes many serious problems. >>> >>I didn't test it yet, but go ahead and apply the patch. >> > >

Re: [PHP-DEV] [PATCH] Better fix for PHP Safe Mode FilesystemCircumvention Problem

2002-02-28 Thread Zak Greant
Hi Jason, Did this actually work? I wrote almost the same code on my own and tested it, only to find that nothing changed. I walked through the code, but did not spot a point where the CLIENT_LOCAL_FILES is actually used other than: % grep -rn CLIENT_LOCAL_FILES * ext/mysql/libmysql/libmysql.c:5

[PHP-DEV] Re: [PHP-QA] Re: PHP 4.2.0 release process

2002-02-28 Thread Sascha Schumann
On Thu, 28 Feb 2002, Derick Rethans wrote: > On Thu, 28 Feb 2002, Yasuo Ohgaki wrote: > > > Derick, Sascha, do you find any problem with my session > > patch? It fixes many serious problems. > > I didn't test it yet, but go ahead and apply the patch. There were problems with the patch the la

[PHP-DEV] Re: [PHP-QA] Re: 4.2.0 & CLI

2002-02-28 Thread Derick Rethans
On 28 Feb 2002, Jim Winstead wrote: > In php.dev Edin Kadribasic <[EMAIL PROTECTED]> wrote: > > 1. If you compile CGI binary and then issue 'make install' it will be > > installed in $PREFIX/bin, then CLI will be put in the same place overwriting > > it. Any suggestions on what to do in this situ

Re: [PHP-DEV] Re: Bug #15678 Updated: isset fails for 4.1.1 and CVS

2002-02-28 Thread Yasuo Ohgaki
Derick Rethans wrote: > On Thu, 28 Feb 2002, Yasuo Ohgaki wrote: > > >>Hmm. What is the most important thing when we develop applications? >>Correctness is the most important for me. >> >>With this bugs, PHP is wrongly evaluates FALSE value as TRUE. >>which cannot be accepted and worse than cras

[PHP-DEV] Re: Bug #15748: make clean does not empty the modules dir

2002-02-28 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > From: [EMAIL PROTECTED] > Operating system: RedHat 7.0 > PHP version: 4.1.1 > PHP Bug Type: *Compile Issues > Bug description: make clean does not empty the modules dir > > Neither "make clean" nor "make distclean" empty the modules dir. > > ./con

[PHP-DEV] Re: [PHP-QA] Re: PHP 4.2.0 release process

2002-02-28 Thread Derick Rethans
On Thu, 28 Feb 2002, Yasuo Ohgaki wrote: > Derick, Sascha, do you find any problem with my session > patch? It fixes many serious problems. I didn't test it yet, but go ahead and apply the patch. > I would like to commit before branching. It should be > ASAP since many people are going to test

Re: [PHP-DEV] Re: Bug #15678 Updated: isset fails for 4.1.1 and CVSversion

2002-02-28 Thread Derick Rethans
On Thu, 28 Feb 2002, Yasuo Ohgaki wrote: > Hmm. What is the most important thing when we develop applications? > Correctness is the most important for me. > > With this bugs, PHP is wrongly evaluates FALSE value as TRUE. > which cannot be accepted and worse than crash. When PHP crashes, > we know

[PHP-DEV] Re: [PHP-QA] 4.2.0 & CLI

2002-02-28 Thread Derick Rethans
On Thu, 28 Feb 2002, Edin Kadribasic wrote: > Hello all, > > One of the new things in 4.2.0 will be CLI SAPI and modifications of the > build process that were made to make simultanious build with other SAPIs > possible. There are few issues that remain: > > 1. If you compile CGI binary and then

[PHP-DEV] Sociology survey on Linux/OpenSource development

2002-02-28 Thread Lin Chi-Chen
Dear community member: I apologize if you are receiving multiple copies of this call. This mail was originally posted to the linux-kernel mailing list a week ago; I need some additional answers to complete the survey. I am trying to target the highest traffic lists in order to keep the number

Re: [PHP-DEV] Patch to extract()

2002-02-28 Thread Hartmut Holzgraefe
Richard Heyes wrote: > Anyone interested in this patch? > > not really, i'd use foreach and unset on the array before extracting, far less obfuscated than the callback approach or, if the array should not be modifiert: function callback(&$value, $key) { if(preg_match('/^var/', $key)) {

[PHP-DEV] Re: Bug #15678 Updated: isset fails for 4.1.1 and CVS version

2002-02-28 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > ID: 15678 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > -Status: Critical > +Status: Open > Bug Type: Variables related > Operating System: i686-pc-linux-gnu > PHP Version: 4.0CVS-2002-0