[PHP-DEV] Photos from the Conference

2002-11-06 Thread Sebastian Bergmann
  http://www.sebastian-bergmann.de/gallery/phpconference2002

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Re: [PHP-DEV] Documentation for Zend API for PHP Extensions

2002-11-06 Thread Diggy Bell
Thanks Maxim...  I had found that page, but there are a number of functions
(add_assoc_*()) that aren't covered there.  But after a bit of header file
scrambling, I managed to get it working.

Thanks again!

"Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message
news:20021105125029.1C09.MAXIM@;php.net...
> There is one here:
>
> http://www.php.net/manual/en/zend.php
>
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
> www.PHPBeginner.com  // PHP for Beginners
> www.maxim.cx // my Home
>
> // my Wish List: ( Get me something! )
> http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
>
>
>
> "Diggy Bell" <[EMAIL PROTECTED]> wrote... :
>
> > I've been looking through the ./ext dir for php-4.2.3 and trying to
figure
> > out how to revive the Birdstep (Velocis) database extension.  Where I'm
> > running into problems is with the Zend API fnctions.  Is there any
reference
> > material that describes the functionality and API of the TSRM module?
> >
> > Also, if anyone knows anything about the maintenance status of this
module,
> > could you please let me know.
> >
> > TIA
> > --
> > William D. 'Diggy' Bell
> > Principal
> > DB Software Development
> > http://www.dbsoftdev.com
> >
> >
> >
> > --
> > 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] Please help document headers_sent()

2002-11-06 Thread Philip Olson

On Wed, 6 Nov 2002, Ilia A. wrote:

> On November 6, 2002 07:10 pm, Philip Olson wrote:
> > I get a Segmentation fault with this script using
> > PHP CLI:
> >
> >  > headers_sent($file, $line);
> > ?>
> >   philip@rock:~$ php test.php
> >   Segmentation fault
> >
> > That's when no headers are sent before the call.  But if
> > headers are sent beforehand, it works:
> 
> The crash has been fixed in the CVS. PHP CLI cannot send any headers because 
> it is not ment for a webserver enviroment. While CGI, is mostly geared 
> towards web servers and by default will try to send headers.

Okay cool.  I just built from CVS and can confirm
it has been fixed :)  This time I used --enable-debug too ;)
I couldn't build from HEAD yesterday but it's okay today.

Regards,
Philip


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




Re: [PHP-DEV] Please help document headers_sent()

2002-11-06 Thread Ilia A.
On November 6, 2002 07:10 pm, Philip Olson wrote:
> I get a Segmentation fault with this script using
> PHP CLI:
>
>  headers_sent($file, $line);
> ?>
>   philip@rock:~$ php test.php
>   Segmentation fault
>
> That's when no headers are sent before the call.  But if
> headers are sent beforehand, it works:

The crash has been fixed in the CVS. PHP CLI cannot send any headers because 
it is not ment for a webserver enviroment. While CGI, is mostly geared 
towards web servers and by default will try to send headers.

Ilia

>  print "foo\n";
> headers_sent($file, $line);
> print "$file : $line\n";
> ?>
>   philip@rock:~$ php test.php
>   foo
>   test.php : 2
>
> With a fairly (a few weeks old) version of PHP CLI.
> I am unable to do further tests at this time, in fact,
> I am unable to build HEAD (it dies).  Only CLI seems
> to be affected, CGI works either way.  Haven't
> tested mod.
>
> Regards,
> Philip Olson
>
> P.s. If no headers were sent, in CGI, $line gets
> the value int 0.  $file is an empty string.
>
> On Wed, 6 Nov 2002, Philip Olson wrote:
> > > On Wed, 6 Nov 2002, Wez Furlong wrote:
> > > if (headers_sent($file, $line)) {
> > >   echo "headers were sent by $file:$line";
> > > }
> >
> > [snip]
> >
> > Hello Wez-
> >
> > Ahh, that makes sense.  I was a little off
> > base on that one! :)  Will add an example now.
> >
> > Regards,
> > Philip
> >
> >
> >
> >
> > --
> > 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] Please help document headers_sent()

2002-11-06 Thread nicos
Anyway to get a gdb backtrace please?

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Philip Olson" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
>
> I get a Segmentation fault with this script using
> PHP CLI:
>
>  headers_sent($file, $line);
> ?>
>   philip@rock:~$ php test.php
>   Segmentation fault
>
> That's when no headers are sent before the call.  But if
> headers are sent beforehand, it works:
>
>  print "foo\n";
> headers_sent($file, $line);
> print "$file : $line\n";
> ?>
>   philip@rock:~$ php test.php
>   foo
>   test.php : 2
>
> With a fairly (a few weeks old) version of PHP CLI.
> I am unable to do further tests at this time, in fact,
> I am unable to build HEAD (it dies).  Only CLI seems
> to be affected, CGI works either way.  Haven't
> tested mod.
>
> Regards,
> Philip Olson
>
> P.s. If no headers were sent, in CGI, $line gets
> the value int 0.  $file is an empty string.
>
>
>
>
> On Wed, 6 Nov 2002, Philip Olson wrote:
>
> >
> > > On Wed, 6 Nov 2002, Wez Furlong wrote:
> > > if (headers_sent($file, $line)) {
> > >   echo "headers were sent by $file:$line";
> > > }
> > [snip]
> >
> > Hello Wez-
> >
> > Ahh, that makes sense.  I was a little off
> > base on that one! :)  Will add an example now.
> >
> > Regards,
> > Philip
> >
> >
> >
> >
> > --
> > 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] Please help document headers_sent()

2002-11-06 Thread Philip Olson

I get a Segmentation fault with this script using
PHP CLI:


  philip@rock:~$ php test.php
  Segmentation fault

That's when no headers are sent before the call.  But if 
headers are sent beforehand, it works:


  philip@rock:~$ php test.php
  foo
  test.php : 2

With a fairly (a few weeks old) version of PHP CLI.
I am unable to do further tests at this time, in fact,
I am unable to build HEAD (it dies).  Only CLI seems
to be affected, CGI works either way.  Haven't
tested mod.

Regards,
Philip Olson

P.s. If no headers were sent, in CGI, $line gets
the value int 0.  $file is an empty string.




On Wed, 6 Nov 2002, Philip Olson wrote:

> 
> > On Wed, 6 Nov 2002, Wez Furlong wrote:
> > if (headers_sent($file, $line)) {
> >   echo "headers were sent by $file:$line";
> > }
> [snip]
> 
> Hello Wez-
> 
> Ahh, that makes sense.  I was a little off
> base on that one! :)  Will add an example now.
> 
> Regards,
> Philip
> 
> 
> 
> 
> -- 
> 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] Please help document headers_sent()

2002-11-06 Thread Philip Olson

> On Wed, 6 Nov 2002, Wez Furlong wrote:
> if (headers_sent($file, $line)) {
>   echo "headers were sent by $file:$line";
> }
[snip]

Hello Wez-

Ahh, that makes sense.  I was a little off
base on that one! :)  Will add an example now.

Regards,
Philip




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




Re: [PHP-DEV] Please help document headers_sent()

2002-11-06 Thread Wez Furlong
Hi Philip,

I think the idea is that you do this:

if (headers_sent($file, $line)) {
  echo "headers were sent by $file:$line";
}

Both $file and $line are optional.

--Wez.

On 06/11/02, "Philip Olson" <[EMAIL PROTECTED]> wrote:
> Hello-
> 
> headers_sent() has two new parameters as of PHP 
> 4.3.0, these are passed in by reference.  I see
> no need to have to do:
> 
>   $file = 'file.php';
>   $line = 4;
> 
>   headers_sent($file, $line);
> 
> When one could simply do this:
> 
>   headers_sent('file.php', 4);
> 
> But we can't, we get this error:
> 
>   Fatal error: Only variables can be passed by reference
> 
> This doesn't seem important, forcing one to use 
> variables here seems odd, why?  Yes & is in the
> proto but afaict it shouldn't be.
> 
> On a related note, I tried and failed to return
> anything other then 1 while using these optional
> parameters.  I can't even tell if it's reading
> the file.  If someone could explain a little more
> that would be very cool.
> 
> Regards,
> Philip
> 
> 
> 
> -- 
> 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] Weird problem with version 4.2.3!

2002-11-06 Thread Daniele Baroncelli
I have found the archive.

It seems that's the problem!


Cheers

Daniele


"Daniele Baroncelli" <[EMAIL PROTECTED]> wrote in message
news:20021106224708.99053.qmail@;pb1.pair.com...
> Hi Paul,
>
> Thanks for your help!
>
> Can you tell me how to look for the message in the archive, please?
>
>
> Cheers
>
> Daniele
>
>
> "Paul Nicholson" <[EMAIL PROTECTED]> wrote in message
> news:200211062209.gA6M94n10781@;WPD01.network.webpowerdesign.net...
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hey,
> > Your problem has something to do with "--enable-mbstr-enc-trans"you
> need
> > to remove it.
> > Check the archives for more info.
> > HTH!
> > ~Paul
> >
> > On Wednesday 06 November 2002 05:00 pm, Daniele Baroncelli wrote:
> > > Hi guys,
> > >
> > > I have a very weird problem.
> > >
> > > I have installed the PHP version 4.2.3 on the LINUX virtual server of
my
> > > web project. Previously I had the PHP version 4.0.6.
> > >
> > > The error I get is very weird.
> > > When I insert a record with the phpMyAdmin, the first 4 characters of
> each
> > > field don't get saved.
> > > Same thing happened with some data entry interfaces I coded!
> > >
> > >
> > > The only difference I can see in the two installation (provided the
> php.ini
> > > file is in the same location):
> > >
> > > The old version 4.0.6 was installed by the server provider and my
> virtual
> > > server space I can only see the .so file.
> > > The new version 4.2.3 is actually inside my virtual server space.
> > > Hence, the path I provided in the php configuration is different (I
> don't
> > > have idea if this can influence something).
> > >
> > > NEW VERSION (4.2.3) configuration run by me
> > >  './configure' '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> > > '--prefix=/usr/home/rockit/usr/local'
> > > '--with-mysql=/usr/home/rockit/usr/local/mysql' '--with-xml'
> > > '--enable-xslt' '--with-xslt-sablot=/usr/home/rockit/usr/local'
> > > '--with-regex=system' '--with-expat-dir=/usr/home/rockit/usr/local'
> > > '--with-iconv=/usr/home/rockit/usr/local'
'--enable-inline-optimization'
> > > '--disable-debug' '--enable-memory-limit' '--enable-sigchild'
> > > '--without-pear' '--enable-mbstring' '--enable-mbstr-enc-trans'
> > > '--with-gdbm=/usr/local' '--enable-sockets' '--enable-versioning'
> > > '--with-ttf=/usr/local' '--enable-ftp' '--with-gd=/usr/local'
> '--with-zlib'
> > > '--enable-gd-native-ttf'
> > >
> > > OLD VERSION (4.0.6) configuration run by the server provider
> > >  './configure' '--enable-inline-optimization'
> > > '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> > > '--with-config-file-path=/usr/local/lib' '--disable-debug'
> > > '--enable-memory-limit' '--enable-sigchild' '--with-gettext'
> > > '--without-pear' '--with-regex=system' '--enable-mbstring'
> > > '--enable-mbstr-enc-trans' '--with-iconv=/usr/local'
> > > '--with-gdbm=/usr/local' '--with-dbm=/usr/local' '--enable-sockets'
> > > '--enable-versioning' '--with-freetype-dir=/usr/local'
> > > '--with-ttf=/usr/local' '--enable-ftp' '--with-curl=/usr/local/curl'
> > > '--with-openssl=/usr/local/openssl' '--with-gd=/usr/local'
> > > '--with-freetype-dir=/usr/local' '--with-ttf=/usr/local'
> > > '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
> > > '--with-t1lib=/usr/local' '--with-zlib' '--enable-gd-native-ttf'
> > > '--with-imap' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
> > > '--with-dom=/usr/local' '--with-mysql=/usr/local/mysql' '--with-zlib'
> > > '--with-zlib'
> > >
> > >
> > > I must admit that I didn't not include all parameter as the old
> > > installation, as I didn't know most options and thought is not needed.
> In
> > > the new installation I instead provided additional XML parameter
(after
> > > installing the correspond modules, which all seem to work fine).
> > >
> > >
> > > Hints on problem are very well welcome!
> > >
> > >
> > > Daniele
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The webthe way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9yZLlDyXNIUN3+UQRAlxxAJ0ankSCkiAV4YIkJuVXb9wIolMxmgCdEiIo
> > 4yOS7VNz6FbS2wsx5PK+L5s=
> > =bMiB
> > -END PGP SIGNATURE-
>
>



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




Re: [PHP-DEV] Java Extension

2002-11-06 Thread Dan Kalowsky
Hello Roshan,

At the current time there is no real administrator for the ext/java
system.  It's pretty much no longer worked on.  There have been a few
patches to make it work with XYZ, but nothing in terms of stability or
even close to moving it from EXPERIMENTAL.

There is work towards making an ext/rpc which will eventually contain the
java and com code, but as of now is no where near ready for testing.




On Wed, 6 Nov 2002, NAIK,ROSHAN (HP-Cupertino,ex1) wrote:

>
> I was wondering what the current status of Java extension is.
> I know its still marked experimental..
>
> Do the developers think it is reaching stability. It would be great
> for us to know if there is any clear intentions (if any) as of now to revamp
> it or
> change its api ?
>
> There has been some demand for this extension by customers for HPUX.
> And we are wondering if we should consider bundling as part of our free
> HP-Apache
> distribution.
>
> Any hints would be helpful.
>
> --Roshan
>
>
> > -Original Message-
> > From: Dave Viner [mailto:dviner@;yahoo-inc.com]
> > Sent: Wednesday, November 06, 2002 10:15 AM
> > To: [EMAIL PROTECTED]
> > Cc: Php-Dev@lists. php. net
> > Subject: RE: [PHP-DEV] compiling on windows vc++ bison error ?
> >
> >
> > i have added c:\cygwin\bin to the vc++
> > directories>executables.  below is
> > the complete error message when i set ZendTS as the active
> > configuration.
> > It appears that bison simply isn't properly generating the .c
> > and .h files.
> > Both zend_language_parser.{h,c} and zend_ini_parser.c appear
> > to be missing.
> >
> > dave
> >
> >
> > Configuration: ZendTS - Win32
> > Debug_TS
> > Performing Custom Build Step on ".\zend_language_parser.y"
> > Performing Custom Build Step on .\zend_ini_parser.y
> > zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
> > Performing Custom Build Step on ".\zend_language_scanner.l"
> > Performing Custom Build Step on .\zend_ini_scanner.l
> > Compiling...
> > zend.c
> > zend_alloc.c
> > zend_API.c
> > zend_builtin_functions.c
> > zend_compile.c
> > d:\php\php4\zend\zend_compile.c(21) : fatal error C1083:
> > Cannot open include
> > file: 'zend_language_parser.h': No such file or directory
> > zend_constants.c
> > zend_dynamic_array.c
> > zend_execute.c
> > zend_execute_API.c
> > d:\php\php4\zend\zend_execute_api.c(366) : warning C4018: '==' :
> > signed/unsigned mismatch
> > zend_extensions.c
> > zend_hash.c
> > zend_highlight.c
> > d:\php\php4\zend\zend_highlight.c(22) : fatal error C1083: Cannot open
> > include file: 'zend_language_parser.h': No such file or directory
> > zend_indent.c
> > d:\php\php4\zend\zend_indent.c(25) : fatal error C1083:
> > Cannot open include
> > file: 'zend_language_parser.h': No such file or directory
> > zend_ini.c
> > zend_ini_parser.c
> > fatal error C1083: Cannot open source file:
> > 'D:\php\php4\Zend\zend_ini_parser.c': No such file or directory
> > zend_ini_scanner.c
> > zend_ini_scanner.l(33) : fatal error C1083: Cannot open include file:
> > 'zend_ini_parser.h': No such file or directory
> > zend_language_parser.c
> > fatal error C1083: Cannot open source file:
> > 'D:\php\php4\Zend\zend_language_parser.c': No such file or directory
> > zend_language_scanner.c
> > zend_language_scanner.l(54) : fatal error C1083: Cannot open
> > include file:
> > 'zend_language_parser.h': No such file or directory
> > zend_list.c
> > zend_llist.c
> > zend_multibyte.c
> > zend_opcode.c
> > zend_operators.c
> > zend_ptr_stack.c
> > zend_qsort.c
> > zend_sprintf.c
> > zend_stack.c
> > zend_variables.c
> > Error executing cl.exe.
> >
> > ZendTS.lib - 7 error(s), 1 warning(s)
> >
> > -Original Message-
> > From: Maxim Maletsky [mailto:maxim@;php.net]
> > Sent: Wednesday, November 06, 2002 10:17 AM
> > To: Dave Viner
> > Cc: Php-Dev@lists. php. net
> > Subject: Re: [PHP-DEV] compiling on windows vc++ bison error ?
> >
> >
> > you need to make sure VC can find bison.
> >
> > What is the error exactly?
> >
> >
> > --
> > Maxim Maletsky
> > [EMAIL PROTECTED]
> >
> >
> >
> > "Dave Viner" <[EMAIL PROTECTED]> wrote... :
> >
> > > Hi,
> > >   I'm having difficulty compiling the PHP source code on
> > Win2K with VC++
> > 6.0.
> > > I've followed the instructions on the website, but I keep
> > getting errors
> > > compiling the ZendTS project.  It appears that bison is not actually
> > > generating the zend_language_parser.{h,c} at all.  However, from the
> > Cygwin
> > > command line, it appears to work fine:
> > >
> > > $ bison --output=zend_language_parser.c -v -d -p zend
> > zend_language_parser.y
> > >
> > > $ ls -lart | tail -4
> > > drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
> > > -rw-rw-rw-1 Administ None 6090 Nov  6 10:00
> > > zend_ini_parser.output
> > > drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
> > > -rw-rw-rw-1 Administ None   688770 Nov  6 10:02
> > > zend_language_parser.output
> > >
> > > $
> > >
> > > So b

Re: [PHP-DEV] Weird problem with version 4.2.3!

2002-11-06 Thread Daniele Baroncelli
Hi Paul,

Thanks for your help!

Can you tell me how to look for the message in the archive, please?


Cheers

Daniele


"Paul Nicholson" <[EMAIL PROTECTED]> wrote in message
news:200211062209.gA6M94n10781@;WPD01.network.webpowerdesign.net...
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hey,
> Your problem has something to do with "--enable-mbstr-enc-trans"you
need
> to remove it.
> Check the archives for more info.
> HTH!
> ~Paul
>
> On Wednesday 06 November 2002 05:00 pm, Daniele Baroncelli wrote:
> > Hi guys,
> >
> > I have a very weird problem.
> >
> > I have installed the PHP version 4.2.3 on the LINUX virtual server of my
> > web project. Previously I had the PHP version 4.0.6.
> >
> > The error I get is very weird.
> > When I insert a record with the phpMyAdmin, the first 4 characters of
each
> > field don't get saved.
> > Same thing happened with some data entry interfaces I coded!
> >
> >
> > The only difference I can see in the two installation (provided the
php.ini
> > file is in the same location):
> >
> > The old version 4.0.6 was installed by the server provider and my
virtual
> > server space I can only see the .so file.
> > The new version 4.2.3 is actually inside my virtual server space.
> > Hence, the path I provided in the php configuration is different (I
don't
> > have idea if this can influence something).
> >
> > NEW VERSION (4.2.3) configuration run by me
> >  './configure' '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> > '--prefix=/usr/home/rockit/usr/local'
> > '--with-mysql=/usr/home/rockit/usr/local/mysql' '--with-xml'
> > '--enable-xslt' '--with-xslt-sablot=/usr/home/rockit/usr/local'
> > '--with-regex=system' '--with-expat-dir=/usr/home/rockit/usr/local'
> > '--with-iconv=/usr/home/rockit/usr/local' '--enable-inline-optimization'
> > '--disable-debug' '--enable-memory-limit' '--enable-sigchild'
> > '--without-pear' '--enable-mbstring' '--enable-mbstr-enc-trans'
> > '--with-gdbm=/usr/local' '--enable-sockets' '--enable-versioning'
> > '--with-ttf=/usr/local' '--enable-ftp' '--with-gd=/usr/local'
'--with-zlib'
> > '--enable-gd-native-ttf'
> >
> > OLD VERSION (4.0.6) configuration run by the server provider
> >  './configure' '--enable-inline-optimization'
> > '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> > '--with-config-file-path=/usr/local/lib' '--disable-debug'
> > '--enable-memory-limit' '--enable-sigchild' '--with-gettext'
> > '--without-pear' '--with-regex=system' '--enable-mbstring'
> > '--enable-mbstr-enc-trans' '--with-iconv=/usr/local'
> > '--with-gdbm=/usr/local' '--with-dbm=/usr/local' '--enable-sockets'
> > '--enable-versioning' '--with-freetype-dir=/usr/local'
> > '--with-ttf=/usr/local' '--enable-ftp' '--with-curl=/usr/local/curl'
> > '--with-openssl=/usr/local/openssl' '--with-gd=/usr/local'
> > '--with-freetype-dir=/usr/local' '--with-ttf=/usr/local'
> > '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
> > '--with-t1lib=/usr/local' '--with-zlib' '--enable-gd-native-ttf'
> > '--with-imap' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
> > '--with-dom=/usr/local' '--with-mysql=/usr/local/mysql' '--with-zlib'
> > '--with-zlib'
> >
> >
> > I must admit that I didn't not include all parameter as the old
> > installation, as I didn't know most options and thought is not needed.
In
> > the new installation I instead provided additional XML parameter (after
> > installing the correspond modules, which all seem to work fine).
> >
> >
> > Hints on problem are very well welcome!
> >
> >
> > Daniele
>
> - --
> ~Paul Nicholson
> Design Specialist @ WebPower Design
> "The webthe way you want it!"
> [EMAIL PROTECTED]
>
> "It said uses Windows 98 or better, so I loaded Linux!"
> Registered Linux User #183202 using Register Linux System # 81891
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9yZLlDyXNIUN3+UQRAlxxAJ0ankSCkiAV4YIkJuVXb9wIolMxmgCdEiIo
> 4yOS7VNz6FbS2wsx5PK+L5s=
> =bMiB
> -END PGP SIGNATURE-



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




[PHP-DEV] Please help document headers_sent()

2002-11-06 Thread Philip Olson
Hello-

headers_sent() has two new parameters as of PHP 
4.3.0, these are passed in by reference.  I see
no need to have to do:

  $file = 'file.php';
  $line = 4;

  headers_sent($file, $line);

When one could simply do this:

  headers_sent('file.php', 4);

But we can't, we get this error:

  Fatal error: Only variables can be passed by reference

This doesn't seem important, forcing one to use 
variables here seems odd, why?  Yes & is in the
proto but afaict it shouldn't be.

On a related note, I tried and failed to return
anything other then 1 while using these optional
parameters.  I can't even tell if it's reading
the file.  If someone could explain a little more
that would be very cool.

Regards,
Philip



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




Re: [PHP-DEV] Weird problem with version 4.2.3!

2002-11-06 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Your problem has something to do with "--enable-mbstr-enc-trans"you need 
to remove it.
Check the archives for more info.
HTH!
~Paul

On Wednesday 06 November 2002 05:00 pm, Daniele Baroncelli wrote:
> Hi guys,
>
> I have a very weird problem.
>
> I have installed the PHP version 4.2.3 on the LINUX virtual server of my
> web project. Previously I had the PHP version 4.0.6.
>
> The error I get is very weird.
> When I insert a record with the phpMyAdmin, the first 4 characters of each
> field don't get saved.
> Same thing happened with some data entry interfaces I coded!
>
>
> The only difference I can see in the two installation (provided the php.ini
> file is in the same location):
>
> The old version 4.0.6 was installed by the server provider and my virtual
> server space I can only see the .so file.
> The new version 4.2.3 is actually inside my virtual server space.
> Hence, the path I provided in the php configuration is different (I don't
> have idea if this can influence something).
>
> NEW VERSION (4.2.3) configuration run by me
>  './configure' '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> '--prefix=/usr/home/rockit/usr/local'
> '--with-mysql=/usr/home/rockit/usr/local/mysql' '--with-xml'
> '--enable-xslt' '--with-xslt-sablot=/usr/home/rockit/usr/local'
> '--with-regex=system' '--with-expat-dir=/usr/home/rockit/usr/local'
> '--with-iconv=/usr/home/rockit/usr/local' '--enable-inline-optimization'
> '--disable-debug' '--enable-memory-limit' '--enable-sigchild'
> '--without-pear' '--enable-mbstring' '--enable-mbstr-enc-trans'
> '--with-gdbm=/usr/local' '--enable-sockets' '--enable-versioning'
> '--with-ttf=/usr/local' '--enable-ftp' '--with-gd=/usr/local' '--with-zlib'
> '--enable-gd-native-ttf'
>
> OLD VERSION (4.0.6) configuration run by the server provider
>  './configure' '--enable-inline-optimization'
> '--with-apxs=/usr/local/apache/1.3/bin/apxs'
> '--with-config-file-path=/usr/local/lib' '--disable-debug'
> '--enable-memory-limit' '--enable-sigchild' '--with-gettext'
> '--without-pear' '--with-regex=system' '--enable-mbstring'
> '--enable-mbstr-enc-trans' '--with-iconv=/usr/local'
> '--with-gdbm=/usr/local' '--with-dbm=/usr/local' '--enable-sockets'
> '--enable-versioning' '--with-freetype-dir=/usr/local'
> '--with-ttf=/usr/local' '--enable-ftp' '--with-curl=/usr/local/curl'
> '--with-openssl=/usr/local/openssl' '--with-gd=/usr/local'
> '--with-freetype-dir=/usr/local' '--with-ttf=/usr/local'
> '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
> '--with-t1lib=/usr/local' '--with-zlib' '--enable-gd-native-ttf'
> '--with-imap' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
> '--with-dom=/usr/local' '--with-mysql=/usr/local/mysql' '--with-zlib'
> '--with-zlib'
>
>
> I must admit that I didn't not include all parameter as the old
> installation, as I didn't know most options and thought is not needed. In
> the new installation I instead provided additional XML parameter (after
> installing the correspond modules, which all seem to work fine).
>
>
> Hints on problem are very well welcome!
>
>
> Daniele

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yZLlDyXNIUN3+UQRAlxxAJ0ankSCkiAV4YIkJuVXb9wIolMxmgCdEiIo
4yOS7VNz6FbS2wsx5PK+L5s=
=bMiB
-END PGP SIGNATURE-

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




[PHP-DEV] Weird problem with version 4.2.3!

2002-11-06 Thread Daniele Baroncelli
Hi guys,

I have a very weird problem.

I have installed the PHP version 4.2.3 on the LINUX virtual server of my web
project. Previously I had the PHP version 4.0.6.

The error I get is very weird.
When I insert a record with the phpMyAdmin, the first 4 characters of each
field don't get saved.
Same thing happened with some data entry interfaces I coded!


The only difference I can see in the two installation (provided the php.ini
file is in the same location):

The old version 4.0.6 was installed by the server provider and my virtual
server space I can only see the .so file.
The new version 4.2.3 is actually inside my virtual server space.
Hence, the path I provided in the php configuration is different (I don't
have idea if this can influence something).

NEW VERSION (4.2.3) configuration run by me
 './configure' '--with-apxs=/usr/local/apache/1.3/bin/apxs'
'--prefix=/usr/home/rockit/usr/local'
'--with-mysql=/usr/home/rockit/usr/local/mysql' '--with-xml' '--enable-xslt'
'--with-xslt-sablot=/usr/home/rockit/usr/local' '--with-regex=system'
'--with-expat-dir=/usr/home/rockit/usr/local'
'--with-iconv=/usr/home/rockit/usr/local' '--enable-inline-optimization'
'--disable-debug' '--enable-memory-limit' '--enable-sigchild'
'--without-pear' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-gdbm=/usr/local' '--enable-sockets' '--enable-versioning'
'--with-ttf=/usr/local' '--enable-ftp' '--with-gd=/usr/local' '--with-zlib'
'--enable-gd-native-ttf'

OLD VERSION (4.0.6) configuration run by the server provider
 './configure' '--enable-inline-optimization'
'--with-apxs=/usr/local/apache/1.3/bin/apxs'
'--with-config-file-path=/usr/local/lib' '--disable-debug'
'--enable-memory-limit' '--enable-sigchild' '--with-gettext'
'--without-pear' '--with-regex=system' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--with-iconv=/usr/local'
'--with-gdbm=/usr/local' '--with-dbm=/usr/local' '--enable-sockets'
'--enable-versioning' '--with-freetype-dir=/usr/local'
'--with-ttf=/usr/local' '--enable-ftp' '--with-curl=/usr/local/curl'
'--with-openssl=/usr/local/openssl' '--with-gd=/usr/local'
'--with-freetype-dir=/usr/local' '--with-ttf=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-t1lib=/usr/local' '--with-zlib' '--enable-gd-native-ttf'
'--with-imap' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local'
'--with-dom=/usr/local' '--with-mysql=/usr/local/mysql' '--with-zlib'
'--with-zlib'


I must admit that I didn't not include all parameter as the old
installation, as I didn't know most options and thought is not needed. In
the new installation I instead provided additional XML parameter (after
installing the correspond modules, which all seem to work fine).


Hints on problem are very well welcome!


Daniele




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




[PHP-DEV] Re: [PHP-DOC] Re: Manual page suggestions (was: dba_open...)

2002-11-06 Thread Philip Olson

> Some function return NULL some return FALSE and some return
> either FALSE or NULL in case of an error.

And some return -1, some iirc return 0.  I believe this
is because PHP is open source and developers provide
return values based on their personal preferences.  But I'm
not a php-dev guy so am not fully sure on the specifics
or the history associated with this phenomena.

Each function is documented on what it returns.  If it
isn't, we add such documentation.  Most functions return
false on failure, not all.  As long as 0 isn't expected,
using != to compare is often what people do.  People only
use strict !== when they are 100% sure what it'll return.

> Some function use NULL to tell there was a parser error and FALSE for
> other errors. If so one cannot do something like:
> if (xxx() !== false) ...
> or
> if (!is_null(xxx())) ...
> instead you would have to use
> if (($res = xxx() !== false) && !is_null($res)) ...

If that's how the function behaves and is documented then
so be it.  I too find it a little confusing having functions
return -1, 0, false or null but that's the way it is right
now.  Maybe this has been addressed?

> I posted the full thing already here. That also contains an analysis of
> some function documentations:
> http://marc.theaimsgroup.com/?l=php-dev&m=103376370906751&w=2

That looks interesting and until such a rapid change happens, or
a decision is made to use your doc method, we should continue to
document functions in a consistent manner which means not including
the failed return value in the proto.

Regards,
Philip Olson


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




RE: [PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
also, can you let me know what version of bison you are using ?

thanks
dave


-Original Message-
From: Dave Viner [mailto:dviner@;yahoo-inc.com]
Sent: Wednesday, November 06, 2002 10:15 AM
To: [EMAIL PROTECTED]
Cc: Php-Dev@lists. php. net
Subject: RE: [PHP-DEV] compiling on windows vc++ bison error ?


i have added c:\cygwin\bin to the vc++ directories>executables.  below is
the complete error message when i set ZendTS as the active configuration.
It appears that bison simply isn't properly generating the .c and .h files.
Both zend_language_parser.{h,c} and zend_ini_parser.c appear to be missing.

dave


Configuration: ZendTS - Win32
Debug_TS
Performing Custom Build Step on ".\zend_language_parser.y"
Performing Custom Build Step on .\zend_ini_parser.y
zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
Performing Custom Build Step on ".\zend_language_scanner.l"
Performing Custom Build Step on .\zend_ini_scanner.l
Compiling...
zend.c
zend_alloc.c
zend_API.c
zend_builtin_functions.c
zend_compile.c
d:\php\php4\zend\zend_compile.c(21) : fatal error C1083: Cannot open include
file: 'zend_language_parser.h': No such file or directory
zend_constants.c
zend_dynamic_array.c
zend_execute.c
zend_execute_API.c
d:\php\php4\zend\zend_execute_api.c(366) : warning C4018: '==' :
signed/unsigned mismatch
zend_extensions.c
zend_hash.c
zend_highlight.c
d:\php\php4\zend\zend_highlight.c(22) : fatal error C1083: Cannot open
include file: 'zend_language_parser.h': No such file or directory
zend_indent.c
d:\php\php4\zend\zend_indent.c(25) : fatal error C1083: Cannot open include
file: 'zend_language_parser.h': No such file or directory
zend_ini.c
zend_ini_parser.c
fatal error C1083: Cannot open source file:
'D:\php\php4\Zend\zend_ini_parser.c': No such file or directory
zend_ini_scanner.c
zend_ini_scanner.l(33) : fatal error C1083: Cannot open include file:
'zend_ini_parser.h': No such file or directory
zend_language_parser.c
fatal error C1083: Cannot open source file:
'D:\php\php4\Zend\zend_language_parser.c': No such file or directory
zend_language_scanner.c
zend_language_scanner.l(54) : fatal error C1083: Cannot open include file:
'zend_language_parser.h': No such file or directory
zend_list.c
zend_llist.c
zend_multibyte.c
zend_opcode.c
zend_operators.c
zend_ptr_stack.c
zend_qsort.c
zend_sprintf.c
zend_stack.c
zend_variables.c
Error executing cl.exe.

ZendTS.lib - 7 error(s), 1 warning(s)

-Original Message-
From: Maxim Maletsky [mailto:maxim@;php.net]
Sent: Wednesday, November 06, 2002 10:17 AM
To: Dave Viner
Cc: Php-Dev@lists. php. net
Subject: Re: [PHP-DEV] compiling on windows vc++ bison error ?


you need to make sure VC can find bison.

What is the error exactly?


--
Maxim Maletsky
[EMAIL PROTECTED]



"Dave Viner" <[EMAIL PROTECTED]> wrote... :

> Hi,
>   I'm having difficulty compiling the PHP source code on Win2K with VC++
6.0.
> I've followed the instructions on the website, but I keep getting errors
> compiling the ZendTS project.  It appears that bison is not actually
> generating the zend_language_parser.{h,c} at all.  However, from the
Cygwin
> command line, it appears to work fine:
>
> $ bison --output=zend_language_parser.c -v -d -p zend
zend_language_parser.y
>
> $ ls -lart | tail -4
> drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
> -rw-rw-rw-1 Administ None 6090 Nov  6 10:00
> zend_ini_parser.output
> drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
> -rw-rw-rw-1 Administ None   688770 Nov  6 10:02
> zend_language_parser.output
>
> $
>
> So bison command executes without error, but it fails to generate the
> appropriate .c and .h files.  I am using bison v 1.75 (the latest from
> cygwin).
>
> Has anyone seen an error like this?
>
> dave
>
>
> --
> 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



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




[PHP-DEV] Java Extension

2002-11-06 Thread NAIK,ROSHAN (HP-Cupertino,ex1)

I was wondering what the current status of Java extension is.
I know its still marked experimental..

Do the developers think it is reaching stability. It would be great
for us to know if there is any clear intentions (if any) as of now to revamp
it or
change its api ?

There has been some demand for this extension by customers for HPUX.
And we are wondering if we should consider bundling as part of our free
HP-Apache 
distribution.

Any hints would be helpful.

--Roshan


> -Original Message-
> From: Dave Viner [mailto:dviner@;yahoo-inc.com]
> Sent: Wednesday, November 06, 2002 10:15 AM
> To: [EMAIL PROTECTED]
> Cc: Php-Dev@lists. php. net
> Subject: RE: [PHP-DEV] compiling on windows vc++ bison error ?
> 
> 
> i have added c:\cygwin\bin to the vc++ 
> directories>executables.  below is
> the complete error message when i set ZendTS as the active 
> configuration.
> It appears that bison simply isn't properly generating the .c 
> and .h files.
> Both zend_language_parser.{h,c} and zend_ini_parser.c appear 
> to be missing.
> 
> dave
> 
> 
> Configuration: ZendTS - Win32
> Debug_TS
> Performing Custom Build Step on ".\zend_language_parser.y"
> Performing Custom Build Step on .\zend_ini_parser.y
> zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
> Performing Custom Build Step on ".\zend_language_scanner.l"
> Performing Custom Build Step on .\zend_ini_scanner.l
> Compiling...
> zend.c
> zend_alloc.c
> zend_API.c
> zend_builtin_functions.c
> zend_compile.c
> d:\php\php4\zend\zend_compile.c(21) : fatal error C1083: 
> Cannot open include
> file: 'zend_language_parser.h': No such file or directory
> zend_constants.c
> zend_dynamic_array.c
> zend_execute.c
> zend_execute_API.c
> d:\php\php4\zend\zend_execute_api.c(366) : warning C4018: '==' :
> signed/unsigned mismatch
> zend_extensions.c
> zend_hash.c
> zend_highlight.c
> d:\php\php4\zend\zend_highlight.c(22) : fatal error C1083: Cannot open
> include file: 'zend_language_parser.h': No such file or directory
> zend_indent.c
> d:\php\php4\zend\zend_indent.c(25) : fatal error C1083: 
> Cannot open include
> file: 'zend_language_parser.h': No such file or directory
> zend_ini.c
> zend_ini_parser.c
> fatal error C1083: Cannot open source file:
> 'D:\php\php4\Zend\zend_ini_parser.c': No such file or directory
> zend_ini_scanner.c
> zend_ini_scanner.l(33) : fatal error C1083: Cannot open include file:
> 'zend_ini_parser.h': No such file or directory
> zend_language_parser.c
> fatal error C1083: Cannot open source file:
> 'D:\php\php4\Zend\zend_language_parser.c': No such file or directory
> zend_language_scanner.c
> zend_language_scanner.l(54) : fatal error C1083: Cannot open 
> include file:
> 'zend_language_parser.h': No such file or directory
> zend_list.c
> zend_llist.c
> zend_multibyte.c
> zend_opcode.c
> zend_operators.c
> zend_ptr_stack.c
> zend_qsort.c
> zend_sprintf.c
> zend_stack.c
> zend_variables.c
> Error executing cl.exe.
> 
> ZendTS.lib - 7 error(s), 1 warning(s)
> 
> -Original Message-
> From: Maxim Maletsky [mailto:maxim@;php.net]
> Sent: Wednesday, November 06, 2002 10:17 AM
> To: Dave Viner
> Cc: Php-Dev@lists. php. net
> Subject: Re: [PHP-DEV] compiling on windows vc++ bison error ?
> 
> 
> you need to make sure VC can find bison.
> 
> What is the error exactly?
> 
> 
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
> 
> 
> 
> "Dave Viner" <[EMAIL PROTECTED]> wrote... :
> 
> > Hi,
> > I'm having difficulty compiling the PHP source code on 
> Win2K with VC++
> 6.0.
> > I've followed the instructions on the website, but I keep 
> getting errors
> > compiling the ZendTS project.  It appears that bison is not actually
> > generating the zend_language_parser.{h,c} at all.  However, from the
> Cygwin
> > command line, it appears to work fine:
> >
> > $ bison --output=zend_language_parser.c -v -d -p zend
> zend_language_parser.y
> >
> > $ ls -lart | tail -4
> > drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
> > -rw-rw-rw-1 Administ None 6090 Nov  6 10:00
> > zend_ini_parser.output
> > drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
> > -rw-rw-rw-1 Administ None   688770 Nov  6 10:02
> > zend_language_parser.output
> >
> > $
> >
> > So bison command executes without error, but it fails to 
> generate the
> > appropriate .c and .h files.  I am using bison v 1.75 (the 
> latest from
> > cygwin).
> >
> > Has anyone seen an error like this?
> >
> > dave
> >
> >
> > --
> > 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
> 

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




RE: [PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
i have added c:\cygwin\bin to the vc++ directories>executables.  below is
the complete error message when i set ZendTS as the active configuration.
It appears that bison simply isn't properly generating the .c and .h files.
Both zend_language_parser.{h,c} and zend_ini_parser.c appear to be missing.

dave


Configuration: ZendTS - Win32
Debug_TS
Performing Custom Build Step on ".\zend_language_parser.y"
Performing Custom Build Step on .\zend_ini_parser.y
zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
Performing Custom Build Step on ".\zend_language_scanner.l"
Performing Custom Build Step on .\zend_ini_scanner.l
Compiling...
zend.c
zend_alloc.c
zend_API.c
zend_builtin_functions.c
zend_compile.c
d:\php\php4\zend\zend_compile.c(21) : fatal error C1083: Cannot open include
file: 'zend_language_parser.h': No such file or directory
zend_constants.c
zend_dynamic_array.c
zend_execute.c
zend_execute_API.c
d:\php\php4\zend\zend_execute_api.c(366) : warning C4018: '==' :
signed/unsigned mismatch
zend_extensions.c
zend_hash.c
zend_highlight.c
d:\php\php4\zend\zend_highlight.c(22) : fatal error C1083: Cannot open
include file: 'zend_language_parser.h': No such file or directory
zend_indent.c
d:\php\php4\zend\zend_indent.c(25) : fatal error C1083: Cannot open include
file: 'zend_language_parser.h': No such file or directory
zend_ini.c
zend_ini_parser.c
fatal error C1083: Cannot open source file:
'D:\php\php4\Zend\zend_ini_parser.c': No such file or directory
zend_ini_scanner.c
zend_ini_scanner.l(33) : fatal error C1083: Cannot open include file:
'zend_ini_parser.h': No such file or directory
zend_language_parser.c
fatal error C1083: Cannot open source file:
'D:\php\php4\Zend\zend_language_parser.c': No such file or directory
zend_language_scanner.c
zend_language_scanner.l(54) : fatal error C1083: Cannot open include file:
'zend_language_parser.h': No such file or directory
zend_list.c
zend_llist.c
zend_multibyte.c
zend_opcode.c
zend_operators.c
zend_ptr_stack.c
zend_qsort.c
zend_sprintf.c
zend_stack.c
zend_variables.c
Error executing cl.exe.

ZendTS.lib - 7 error(s), 1 warning(s)

-Original Message-
From: Maxim Maletsky [mailto:maxim@;php.net]
Sent: Wednesday, November 06, 2002 10:17 AM
To: Dave Viner
Cc: Php-Dev@lists. php. net
Subject: Re: [PHP-DEV] compiling on windows vc++ bison error ?


you need to make sure VC can find bison.

What is the error exactly?


--
Maxim Maletsky
[EMAIL PROTECTED]



"Dave Viner" <[EMAIL PROTECTED]> wrote... :

> Hi,
>   I'm having difficulty compiling the PHP source code on Win2K with VC++
6.0.
> I've followed the instructions on the website, but I keep getting errors
> compiling the ZendTS project.  It appears that bison is not actually
> generating the zend_language_parser.{h,c} at all.  However, from the
Cygwin
> command line, it appears to work fine:
>
> $ bison --output=zend_language_parser.c -v -d -p zend
zend_language_parser.y
>
> $ ls -lart | tail -4
> drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
> -rw-rw-rw-1 Administ None 6090 Nov  6 10:00
> zend_ini_parser.output
> drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
> -rw-rw-rw-1 Administ None   688770 Nov  6 10:02
> zend_language_parser.output
>
> $
>
> So bison command executes without error, but it fails to generate the
> appropriate .c and .h files.  I am using bison v 1.75 (the latest from
> cygwin).
>
> Has anyone seen an error like this?
>
> dave
>
>
> --
> 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] compiling on windows vc++ bison error ?

2002-11-06 Thread Maxim Maletsky
you need to make sure VC can find bison.

What is the error exactly?


--
Maxim Maletsky
[EMAIL PROTECTED]



"Dave Viner" <[EMAIL PROTECTED]> wrote... :

> Hi,
>   I'm having difficulty compiling the PHP source code on Win2K with VC++ 6.0.
> I've followed the instructions on the website, but I keep getting errors
> compiling the ZendTS project.  It appears that bison is not actually
> generating the zend_language_parser.{h,c} at all.  However, from the Cygwin
> command line, it appears to work fine:
> 
> $ bison --output=zend_language_parser.c -v -d -p zend zend_language_parser.y
> 
> $ ls -lart | tail -4
> drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
> -rw-rw-rw-1 Administ None 6090 Nov  6 10:00
> zend_ini_parser.output
> drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
> -rw-rw-rw-1 Administ None   688770 Nov  6 10:02
> zend_language_parser.output
> 
> $
> 
> So bison command executes without error, but it fails to generate the
> appropriate .c and .h files.  I am using bison v 1.75 (the latest from
> cygwin).
> 
> Has anyone seen an error like this?
> 
> dave
> 
> 
> -- 
> 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




[PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
Hi,
I'm having difficulty compiling the PHP source code on Win2K with VC++ 6.0.
I've followed the instructions on the website, but I keep getting errors
compiling the ZendTS project.  It appears that bison is not actually
generating the zend_language_parser.{h,c} at all.  However, from the Cygwin
command line, it appears to work fine:

$ bison --output=zend_language_parser.c -v -d -p zend zend_language_parser.y

$ ls -lart | tail -4
drwxr-xr-x6 Administ None36864 Nov  6 09:57 .
-rw-rw-rw-1 Administ None 6090 Nov  6 10:00
zend_ini_parser.output
drwxr-xr-x2 Administ None16384 Nov  6 10:00 Debug_TS
-rw-rw-rw-1 Administ None   688770 Nov  6 10:02
zend_language_parser.output

$

So bison command executes without error, but it fails to generate the
appropriate .c and .h files.  I am using bison v 1.75 (the latest from
cygwin).

Has anyone seen an error like this?

dave


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




Re: [PHP-DEV] MySQL UDF that runs PHP

2002-11-06 Thread Adam Voigt
I'm very intrigued, this looks pretty cool. I don't suppose there's
anyway you could link in the connectivity to the MySQL engine so you
didn't have to have the same connection overhead as external mysql
connections from standard PHP pages? Cause that would just be sweet.

Adam Voigt
[EMAIL PROTECTED]

On Tue, 2002-11-05 at 16:37, David Sklar wrote:
> Based on Edin Kadribasic's PHP "embed" SAPI module, I wrote a MySQL UDF that
> interprets PHP. You can get it here:
> 
> --> http://www.sklar.com/myphp-0.1.tar.gz
> 
> I'd be curious for any comments or suggestions folks have.
> 
> Thanks,
> 
> David Sklar
> 
> 
> -- 
> 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] Compile PHP-CODE

2002-11-06 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://pear.php.net/bcompiler ?
~Paul

On Wednesday 06 November 2002 12:30 pm, Maxim Maletsky wrote:
> oh ... I got it now - you want to compile the PHP code, not C code in
> which PHP is written. Answer is: NO, you can't.
>
> You really should have sent this to the general list, not dev - here we
> get confused :)

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The webthe way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yVfzDyXNIUN3+UQRAu5zAJ0c59o3zKDip4/yXIWTWQI7nQLiFgCePGYi
Pc709/u1MRQbT/joWfsyAas=
=0htS
-END PGP SIGNATURE-

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




RE: [PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Peter Petermann
Hey,

> > >Does anybody know about the possibilities of compliling the php
> > > source code
> > Yes, it's true, it is possible to compile PHP source code.
> > My best friend's sisters' boyfriend's brother knew this guy who saw
> > this other guy compile it once at 31 flavors.*
> Hey, I know that it;s not compiled,,
> I just ask about possibilities...
> Becuse this is the only place where i can talk about these 
> kind of problems
Well, maybe you should read your question again.
"The PHP source code" sounds for me like the source of PHP,
And well, as long as you dont compile it, you cant use PHP.

If you are looking for a possibility to compile your Scripts to binarys, 
well depends on what you want: if you want 
stand-alone-binary-scripts-that-dont-need-a-php-interpreter
Well: no, that is not possible right now.
If you want your scripts encoded so noone can read it,
Well you should look for the Zend Encoder or the Ioncube Encoder.

BUT: this is the wrong list for your question. It is about the developement
of PHP,
If my guess about your question (the second one ;) is right - your question
is about
Developement in PHP. For questions like this, i guess, PHP-General List is a
better Place.

Regards,
Peter Petermann


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


Re: [PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Maxim Maletsky
oh ... I got it now - you want to compile the PHP code, not C code in
which PHP is written. Answer is: NO, you can't.

You really should have sent this to the general list, not dev - here we
get confused :)


--
Maxim Maletsky
[EMAIL PROTECTED]



Maxim Maletsky <[EMAIL PROTECTED]> wrote... :

> 
> 
> "Betim Deva" <[EMAIL PROTECTED]> wrote... :
> 
> > Hey, I know that it;s not compiled,,
> 
> You can have windows version already compiled - php.net/downlods
> 
> for compiling on Linux look into the INSTALL file of the PHP
> distribution (which you can still get within the link above)
> 
> 
> > I just ask about possibilities...
> > Becuse this is the only place where i can talk about these kind of problems
> 
> [EMAIL PROTECTED] is rather the right place.
> 
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> 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] Compile PHP-CODE

2002-11-06 Thread Pierre-Alain Joye
On Wed, 6 Nov 2002 16:16:23 +0100
"Betim Deva" <[EMAIL PROTECTED]> wrote:

>Does anybody know about the possibilities of compliling the php
>source code

You cannot.

But you can encode if this is what you need, check zend products or
equivalent.

If the goals are performances, look at ZendCache, phpa,...

pa

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




Re: [PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Maxim Maletsky


"Betim Deva" <[EMAIL PROTECTED]> wrote... :

> Hey, I know that it;s not compiled,,

You can have windows version already compiled - php.net/downlods

for compiling on Linux look into the INSTALL file of the PHP
distribution (which you can still get within the link above)


> I just ask about possibilities...
> Becuse this is the only place where i can talk about these kind of problems

[EMAIL PROTECTED] is rather the right place.

--
Maxim Maletsky
[EMAIL PROTECTED]



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




Re: [PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Betim Deva
Hey, I know that it;s not compiled,,
I just ask about possibilities...
Becuse this is the only place where i can talk about these kind of problems



- Original Message - 
From: "Dan Kalowsky" <[EMAIL PROTECTED]>
To: "Betim Deva" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 5:31 PM
Subject: Re: [PHP-DEV] Compile PHP-CODE


> Yes, it's true, it is possible to compile PHP source code.
> 
> My best friend's sisters' boyfriend's brother knew this guy who saw 
> this other guy compile it once at 31 flavors.*
> 
> On Wednesday, November 6, 2002, at 10:16 AM, Betim Deva wrote:
> 
> >Does anybody know about the possibilities of compliling the php 
> > source code
> >
> >
> 
> * Extra points if you know where that butchered quote comes from! :)
> 
>  >---<
> Dan Kalowsky"A little less conversation,
> http://www.deadmime.org/~danka little more action."
> [EMAIL PROTECTED]- "A Little Less Conversation",
> [EMAIL PROTECTED]Elvis Presley
> 
> 
> -- 
> 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] dir() class suggestion

2002-11-06 Thread Maxim Maletsky

bugs.php.net is kind of a better place...

As of your question:

I disagree there should be a sorting feature. You can use your own
sorting logic while looping the returned array, not telling PHP how to
give you the directory contents.

How would you go with limiting size? You'd need to specify sorting
method, and pass min/max ranges, and then, perhaps, to also ask to order
alphabetically 

I think returning you an array is better for you as well since you'd get
a better result yourself sorting on your own and free up the system.

have you ever tried using `` quotes?

echo `ls -la`;

you get the linux directory output. 

--
Maxim Maletsky
[EMAIL PROTECTED]



"Boris Penck" <[EMAIL PROTECTED]> wrote... :

> Hi there,
> 
> today I was playing around with dir() and my problem is that there is no
> chance to tell dir()
> weather to sort the files and directories. Sure, I'm able to read, dump
> all entries to an array, sort and
> print out the result. In cases with recursive directory trees a very bad
> idea if the tree contains a large
> number of subdirectories.
> 
> Well, my wish is something like that:
> 
> dir(string path [, sort method]) for sorting against name, size, date -
> ok name may be a very good start.
> 
> At the moment $d = dir('./'); [...] $d->read(); will produce a result
> like ls -la -U -- an unsorted way.
> 
> best regards
> boris
> 
> ( i hope i found the right place for these wishes )
> 
> 
> 
> -- 
> 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] Compile PHP-CODE

2002-11-06 Thread Dan Kalowsky
Yes, it's true, it is possible to compile PHP source code.

My best friend's sisters' boyfriend's brother knew this guy who saw 
this other guy compile it once at 31 flavors.*

On Wednesday, November 6, 2002, at 10:16 AM, Betim Deva wrote:

   Does anybody know about the possibilities of compliling the php 
source code



* Extra points if you know where that butchered quote comes from! :)

>---<
Dan Kalowsky"A little less conversation,
http://www.deadmime.org/~danka little more action."
[EMAIL PROTECTED]- "A Little Less Conversation",
[EMAIL PROTECTED]Elvis Presley


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




[PHP-DEV] dir() class suggestion

2002-11-06 Thread Boris Penck
Hi there,

today I was playing around with dir() and my problem is that there is no
chance to tell dir()
weather to sort the files and directories. Sure, I'm able to read, dump
all entries to an array, sort and
print out the result. In cases with recursive directory trees a very bad
idea if the tree contains a large
number of subdirectories.

Well, my wish is something like that:

dir(string path [, sort method]) for sorting against name, size, date -
ok name may be a very good start.

At the moment $d = dir('./'); [...] $d->read(); will produce a result
like ls -la -U -- an unsorted way.

best regards
boris

( i hope i found the right place for these wishes )



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




[PHP-DEV] CVS Account Request: phpclub

2002-11-06 Thread Alexandr Smirnov
Russian doc & other
http://www.phpclub.net/


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




[PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Betim Deva
   Does anybody know about the possibilities of compliling the php source code




RE: [PHP-DEV] Bug in PHP

2002-11-06 Thread Mike Robinson
Markus Fischer writes:

> 
> You can use PHP as CGI on Win32/IIS platform which proves to
> be far more stable or use Apache instead of IIS.
> 
> The combination you're using is known to have serious
> problems and is not recommended.
> 

Is this documented anywhere?

Regards
Mike Robinson



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




Re: [PHP-DEV] Bug in PHP

2002-11-06 Thread Markus Fischer
You can use PHP as CGI on Win32/IIS platform which proves to
be far more stable or use Apache instead of IIS.

The combination you're using is known to have serious
problems and is not recommended.

On Mon, Nov 04, 2002 at 05:36:53PM -0200, Domingos Teruel wrote : 
> Dear Sir,
> 
> I am PhP programmer and have encountered the following error quite often:
> 
> PHP has encountered an Access Violation at
> 77FCBAAC
> 
> What could be causimg this errors? I have just installed the version 4.3 
> pre 1 after encountering the samen problems with the version 4.2.3.
> 
> I have already  reinstalled the PHP with the isapi  DLL , copied the 
> php4ts.DLL to the directory System32 of WIN2K in the server IIS5 , 
> pointed the IIS5 isapi filters to PHPISAP.DLL and utilized as php.ini 
> the file php.ini-dist
> 
> None of these alterations improved these errors.
> Please advise me ASAP of what else I can do to solve this out.
> 
> Thank you very much,
> Best Regards
> 
> -- 
> Domingos Teruel
> Desenvolvimento
> 
> Fik Online Operadora de Sistemas Ltda.
> Av. Ipiranga 1100 Cj 90 Centro
> 01040-904  São Paulo SP   Brasil
> 
> Fone: +55 11 3328-4200
> Fax:  +55 11 3328-4200
> E-mail: [EMAIL PROTECTED] 
> Web:www.efik.com.br 
> ICQ:  93544394 
> 
> 

-- 
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
$ grep docref_root php.ini
docref_root = 
"http://landonize.it/?how=url&theme=classic&filter=RichyH&user=imajes&url=http%3A%2F%2Fphp.net%2F/";

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




[PHP-DEV] Bug in PHP

2002-11-06 Thread Domingos Teruel




Dear Sir,

I am PhP programmer and have encountered the following error quite often:

PHP has encountered an Access Violation at
77FCBAAC

What could be causimg this errors? I have just installed the version 4.3
pre 1 after encountering the samen problems with the version 4.2.3.

I have already  reinstalled the PHP with the isapi  DLL , copied the php4ts.DLL
to the directory System32 of WIN2K in the server IIS5 , pointed the IIS5
isapi filters to PHPISAP.DLL and utilized as php.ini the file php.ini-dist

None of these alterations improved these errors.
Please advise me ASAP of what else I can do to solve this out.

Thank you very much,
Best Regards

-- 
Assinatura Email Efik
 

Domingos Teruel
   Desenvolvimento
  
Fik Online Operadora de Sistemas Ltda.
Av. Ipiranga 1100 Cj 90 Centro
01040-904  São Paulo SP   Brasil
  Fone: +55 11 3328-4200
 Fax:   +55 
11 3328-4200
 E-mail: 
[EMAIL PROTECTED]
 Web:    www.efik.com.br
  ICQ:  93544394 
  

 
 




Re: [PHP-DEV] Undefined index: HTTP_IF_NONE_MATCH

2002-11-06 Thread Laurent FOINEL
php 4.2.2 and apache 1.3.26 on FreeBSD

configure command:
./configure' '--with-apache=../apache_1.3.26/'
'--with-mysql=/usr/local/mysql' '--with-ctype' '--with-zlib' '--with-gmp'
'--with-mhash' '--with-ming=../ming-0.2a' '--with-regex=system'
'--enable-wddx' '--with-xmlrpc' '--with-iconv=/usr/local/lib'
'--disable-debug' '--enable-inline-optimization'

Thanks !


"Maxim Maletsky" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
>
> Is it supported by your configuration?
> What's your system?
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
>
> "Laurent FOINEL" <[EMAIL PROTECTED]> wrote... :
>
> >
> > I would like to access to variable:
> > $HTTP_SERVER_VARS["HTTP_IF_NONE_MATCH"]
> >
> > but I have this error:
> > "Notice: Undefined index: HTTP_IF_NONE_MATCH in file..."
> >
> > why can't i access do this var ?
> >
> > My configuration is php 4.2.2 and apache 1.3.26 on FreeBSD
> >
> >
> >
> > --
> > 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




[PHP-DEV] shtool update to 1.6.2?

2002-11-06 Thread Marcus Boerger
Will we update shtool from 1.5.4 (our current version) to 1.6.2 (actual 
version)?
I just tried it and it seems to work. But i would like to here other 
meanings before
commiting.

marcus

 ChangeLog
 Changes between 1.6.1 and 1.6.2 (12-Jul-2002 to 02-Nov-2002):
   *) Map "shtool install -d  [...]" internally to "shtool mkdir

  -f -p -m 755  [...]" in order to support the BSD-style
  "install -d" variant.
  [Ralf S. Engelschall, Alan Eldridge <[EMAIL PROTECTED]>]
   *) Add -o|--owner and -g|--group options to "shtool mkdir".
  [Ralf S. Engelschall]
   *) Fixed 'shtool scpp -f ...'. The arguments to option -f
  were not evaluated correctly.
  [Ralf S. Engelschall]
   *) Support bold font on 'cygwin' terminals.
  [Marcus Boerger <[EMAIL PROTECTED]>]
   *) Try the terminal 'init' sequence before 'reset' for bold mode
  restoring in order to make sure the terminal is not cleared.
  Additionally, fallback to a consistent no-bold mode.
  [Mirko Liss <[EMAIL PROTECTED]>]
 Changes between 1.6.0 and 1.6.1 (01-Feb-2002 to 12-Jul-2002):
   *) Removed not-existing --min-size option from the usage
  of "shtool rotate". The name is just --size.
  [Thomas Linden <[EMAIL PROTECTED]>]
   *) Port to POSIX 1003.1-2001 (SUSv3) standard:
  sh.echo, sh.version: "head -1" -> "sed -e 'q'"
  sh.path: "sort -u | tail -1" -> "sort -r -u | sed -e q"
  sh.subst: diff -u1 -> diff -U1
  [Paul Eggert <[EMAIL PROTECTED]>]
   *) Fixed various typos in shtool.pod.
  [Ralf S. Engelschall, Liones <[EMAIL PROTECTED]>]
 Changes between 1.5.4 and 1.6.0 (14-Jun-2001 to 01-Feb-2002):
   *) Upgraded to GNU Autoconf 2.52 environment.
  [Ralf S. Engelschall]
   *) Fixed contained RPM specification (shtool.spec)
  [Ralf S. Engelschall]
   *) Added new command `shtool rotate [-v|--verbose] [-t|--trace]
  [-f|--force] [-n|--num-files ] [-s|--min-size ]
  [-c|--copy] [-r|--remove] [-a|--archive-dir ] [-z|--compress
  [:]] [-b|--background] [-d|--delay] [-p|--pad ]
  [-o|--owner ] [-g|--group ] [-m|--mode ]
  [-M|--migrate ] [-P|--prolog ] [-E|--epilog ]
  [ ...]'. This is a sophisticated command for rotating
  logfiles of daemons.
  [Ralf S. Engelschall]
   *) Added GNU long-option support (`--').
  [Ralf S. Engelschall]
   *) Cleaned up temporary file handling in `shtool path'.
  [Ralf S. Engelschall]
   *) Added NEWS file to source tree to comply to GNU standards.
  [Ralf S. Engelschall]
   *) Add new `shtool subst [-v] [-t] [-n] [-s] [-i] [-b]
  [-e] [-f] [] [...]' command. This
  is a useful wrapper around sed(1).
  [Ralf S. Engelschall]


Diff:

cvs -z3 -q diff shtool (in directory S:\php4-HEAD\build\)
Index: shtool
===
RCS file: /repository/php4/build/shtool,v
retrieving revision 1.3
diff -u -r1.3 shtool
--- shtool  7 Mar 2002 14:17:56 -   1.3
+++ shtool  6 Nov 2002 13:57:36 -
@@ -1,13 +1,13 @@
 #!/bin/sh
 ##
 ##  GNU shtool -- The GNU Portable Shell Tool
-##  Copyright (c) 1994-2001 Ralf S. Engelschall <[EMAIL PROTECTED]>
+##  Copyright (c) 1994-2002 Ralf S. Engelschall <[EMAIL PROTECTED]>
 ##
 ##  See http://www.gnu.org/software/shtool/ for more information.
 ##  See ftp://ftp.gnu.org/gnu/shtool/ for latest version.
 ##
-##  Version:  1.5.4 (14-Jun-2001)
-##  Contents: 3/17 available modules
+##  Version:  1.6.2 (02-Nov-2002)
+##  Contents: 3/19 available modules
 ##

 ##
@@ -50,7 +50,9 @@
 ##mkln   Make link with calculation of relative paths
 ##mkshadow   Make a shadow tree through symbolic links
 ##fixpermFix file permissions inside a source tree
+##rotate Logfile rotation
 ##tarballRoll distribution tarballs
+##subst  Apply sed(1) substitution operations
 ##guessosSimple operating system guesser
 ##arxExtended archive command
 ##sloSeparate linker options by library class
@@ -65,8 +67,8 @@
 exit 1
 fi
 if [ ".$1" = ".-h" -o ".$1" = ".--help" ]; then
-echo "This is GNU shtool, version 1.5.4 (14-Jun-2001)"
-echo "Copyright (c) 1994-2001 Ralf S. Engelschall <[EMAIL PROTECTED]>"
+echo "This is GNU shtool, version 1.6.2 (02-Nov-2002)"
+echo "Copyright (c) 1994-2002 Ralf S. Engelschall <[EMAIL PROTECTED]>"
 echo "Report bugs to <[EMAIL PROTECTED]>"
 echo ''
 echo "Usage: shtool [] [ [] 
[]]"
@@ -78,38 +80,63 @@
 echo '  -r, --recreate  recreate this shtool script via shtoolize'
 echo ''
 echo 'Available  [] []:'
-echo '  echo [-n] [-e] [ ...]'
-echo '  install  [-v] [-t] [-c] [-C] [-s] [-m] [-o] 
[-g]'
-echo '   [-e]  [ ...] '
-echo '  mkdir[-t] [-f] [-p] [-m]  [ ...]'
+echo '  echo [-n|--newline] [-e|--expand] [ ...]'
+echo '  install  [-v|--verbose] [-t|--trace] [-d|--mkdir] [-c|--copy]'
+echo '   [-C|--compare-copy] [-s|--strip] [-m|--mode ]'
+echo '  

Re: [PHP-DEV] Undefined index: HTTP_IF_NONE_MATCH

2002-11-06 Thread Maxim Maletsky

Is it supported by your configuration?
What's your system?

--
Maxim Maletsky
[EMAIL PROTECTED]



"Laurent FOINEL" <[EMAIL PROTECTED]> wrote... :

> 
> I would like to access to variable:
> $HTTP_SERVER_VARS["HTTP_IF_NONE_MATCH"]
> 
> but I have this error:
> "Notice: Undefined index: HTTP_IF_NONE_MATCH in file..."
> 
> why can't i access do this var ?
> 
> My configuration is php 4.2.2 and apache 1.3.26 on FreeBSD
> 
> 
> 
> -- 
> 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




[PHP-DEV] Re: Manual page suggestions (was: dba_open...)

2002-11-06 Thread Marcus Boerger
After the message from Philip Olson i was reminded that i had a little
discussion about return values but could not find everything i collected.

Some function return NULL some return FALSE and some return
either FALSE or NULL in case of an error.

I allways used to check for
xxx() !== false
since that is used in the documentation in some examples. See strpos().

Some function use NULL to tell there was a parser error and FALSE for
other errors. If so one cannot do something like:
if (xxx() !== false) ...
or
if (!is_null(xxx())) ...
instead you would have to use
if (($res = xxx() !== false) && !is_null($res)) ...

I posted the full thing already here. That also contains an analysis of
some function documentations:
http://marc.theaimsgroup.com/?l=php-dev&m=103376370906751&w=2

marcus

p.s.: I am crossposting this so that it might get attetion.

At 12:28 06.11.2002, Philip Olson wrote:



On Wed, 6 Nov 2002, Marcus Boerger wrote:
> It return false on failure as documented. I feel we should use this for all
> functions where any failure results in false. This way users easily know
> that they must check for func()!==false

That's something to bring up for discussion but right
now it's not how we document functions.  Only resource
should be listed there.

I like your idea of more structure.  Right now each manual
entry is full of 's, parameter descriptions can
sometimes get lost, and what the function does on failure
is also not structured.  During the phpdoc meeting awhile
back there was discussion of each manual entry having
a CHANGELOG but that's only part of it.

Here's a rough example (it's late, forgive me):

function in_array:

 --
 Parameter | Description   | Notes
 --
 needle| What is being searched for| Became mixed in
   |   | PHP 4.2.0
 haystack  | What we're searching in   |
 strict| If set to true, the type will | Defaults to false
   | also be compared. |
 ==
 On failure: returns false
 --

Seeing that below the proto might be useful and easy to read.
Anyway, something to think about :)

Regards,
Philip Olson



Re: [PHP-DEV] PHP CLI environment variables

2002-11-06 Thread Pierre-Alain Joye
On Wed, 6 Nov 2002 14:11:03 +0100
Kjartan Mannes <[EMAIL PROTECTED]> wrote:


> Doesn't this make things overly complex? Any good reason why the
> missing values in variables_order don't just get automatically
> appended to the end?

It is just faster to check if the var exists and returns it instead of
always uses getenv(), and, in most cases, $_ENV['foo'] is available.

I just search in the archives the thread about that
(http://marc.theaimsgroup.com/?l=pear-dev&m=103029875701504&w=2).
php.ini-recommanded removes the E from the variables_order. I did not
check the current recommanded ini.

pa

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




[PHP-DEV] Undefined index: HTTP_IF_NONE_MATCH

2002-11-06 Thread Laurent FOINEL

I would like to access to variable:
$HTTP_SERVER_VARS["HTTP_IF_NONE_MATCH"]

but I have this error:
"Notice: Undefined index: HTTP_IF_NONE_MATCH in file..."

why can't i access do this var ?

My configuration is php 4.2.2 and apache 1.3.26 on FreeBSD



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




Re: [PHP-DEV] empty variables_order, was PHP CLI environment variables

2002-11-06 Thread Marcus Boerger
Interesting, i have $_ENV when variables_order is empty in ini using cli. But i
still do get memory leaks. However i do get the expected result when i use
-d option for the call.

I also tested all the possible version to get this failed.

[marcus@zaphod php4-HEAD]$ php -d "variables_order=\"\"" -r 'var_dump($_ENV);'
array(0) {
}
[marcus@zaphod php4-HEAD]$ php -d "variables_order=\"\"" -r 'var_dump(void);'
Command line code(1) : Notice - Use of undefined constant void - assumed 'void'
string(4) "void"
[marcus@zaphod php4-HEAD]$ php -d "variables_order=\"\"" -r 'var_dump(null);'
NULL
[marcus@zaphod php4-HEAD]$ php -d "variables_order=\"\"" -r 'var_dump($x);'
Command line code(1) : Notice - Undefined variable:  x
NULL
[marcus@zaphod php4-HEAD]$ php -d "variables_order=\"\"" -r 'var_dump();'
Command line code(1) : Warning - Wrong parameter count for var_dump()
[marcus@zaphod php4-HEAD]$ php -d "variables_order=" -r 'var_dump($_ENV);'
array(39) {
  ["PWD"]=>
 ()
}
/usr/src/php4-HEAD/main/main.c(1434) :  Freeing 0x4093CB34 (16 bytes), script=-
Last leak repeated 1 time
/usr/src/php4-HEAD/Zend/zend_hash.c(260) :  Freeing 0x40939C7C (40 bytes), 
script=-
Last leak repeated 45 times
/usr/src/php4-HEAD/Zend/zend_hash.c(404) :  Freeing 0x40939AC8 (35 bytes), 
script=-
/usr/src/php4-HEAD/main/main.c(1397) :  Freeing 0x40939A8C (2 bytes), script=-
/usr/src/php4-HEAD/main/main.c(1394) :  Freeing 0x40939A48 (16 bytes), script=-
/usr/src/php4-HEAD/Zend/zend_API.c(575) :  Freeing 0x409399F4 (32 bytes), 
script=-
/usr/src/php4-HEAD/Zend/zend_hash.c(175) : Actual location (location was 
relayed)
/usr/src/php4-HEAD/main/main.c(1387) :  Freeing 0x40939990 (44 bytes), script=-
/usr/src/php4-HEAD/Zend/zend_API.c(573) : Actual location (location was 
relayed)
/usr/src/php4-HEAD/main/main.c(1386) :  Freeing 0x4093994C (16 bytes), script=-
/usr/src/php4-HEAD/main/php_variables.c(175) :  Freeing 0x4093989C (16 
bytes), script=-
Last leak repeated 43 times
/usr/src/php4-HEAD/ext/standard/string.c(2492) :  Freeing 0x40939860 (1 
bytes), script=-
Last leak repeated 43 times
/usr/src/php4-HEAD/Zend/zend_hash.c(438) :  Freeing 0x40938E88 (256 bytes), 
script=-
/usr/src/php4-HEAD/Zend/zend_hash.c(175) : Actual location (location was 
relayed)
/usr/src/php4-HEAD/main/main.c(1214) :  Freeing 0x40936D0C (44 bytes), script=-
/usr/src/php4-HEAD/Zend/zend_API.c(573) : Actual location (location was 
relayed)
/usr/src/php4-HEAD/main/main.c(1213) :  Freeing 0x40936CC8 (16 bytes), script=-



At 13:58 06.11.2002, Melvyn Sopacua wrote:
At 13:52 6-11-2002, Marcus Boerger wrote:


When ini setting variables_order is empty there are memory leaks in
cgi as well as cli version. See below:

marcus

[marcus@zaphod marcus]$ echo ""


==> $_ENV isn't set in /bin/sh

So memleaks on var_dump(void)


Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua




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




Re: [PHP-DEV] PHP CLI environment variables

2002-11-06 Thread Kjartan Mannes
Wednesday, November 6, 2002, 1:54:21 PM, Pierre-Alain Joye wrote:
> As far as I remember, this a knonw problem due to the variables order or
> something like that. We ve got it in PEAR a few weeks ago, solved by
> using a simple: 

> $foo = isset($_ENV['foo'])?$_ENV['foo']:getenv('foo');

> See php4/pear/System.php function tmpdir() for others examples.

Doesn't this make things overly complex? Any good reason why the missing
values in variables_order don't just get automatically appended to the
end?

--
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "WARNING: Keyboard Not Attached. Press F10 to Continue."


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




Re: [PHP-DEV] empty variables_order, was PHP CLI environment variables

2002-11-06 Thread Melvyn Sopacua
At 13:52 6-11-2002, Marcus Boerger wrote:


When ini setting variables_order is empty there are memory leaks in
cgi as well as cli version. See below:

marcus

[marcus@zaphod marcus]$ echo ""


==> $_ENV isn't set in /bin/sh

So memleaks on var_dump(void)


Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua


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




Re: [PHP-DEV] PHP CLI environment variables

2002-11-06 Thread Kjartan Mannes
Wednesday, November 6, 2002, 1:46:25 PM, Marcus Boerger wrote:
> Does ini setting variables_order include E?

Does now and it works as expected. Thanks.

> At 13:30 06.11.2002, Kjartan Mannes wrote:
>>I just tried using php-cli from the latest cvs and am a little confused
>>by the placement of shell environment variables. $_ENV is empty, but the
>>values are stored in $HTTP_SERVER_VARS and $_SERVER.
>>
>>Is this the proper behavior?
>>
>>--
>>Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
>>:: "Women are made to be loved, not understood." - Oscar Wilde
>>
>>
>>--
>>PHP Development Mailing List 
>>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "Silence is one great art of conversation."


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




Re: [PHP-DEV] PHP CLI environment variables

2002-11-06 Thread Pierre-Alain Joye
On Wed, 6 Nov 2002 13:30:03 +0100
Kjartan Mannes <[EMAIL PROTECTED]> wrote:

> I just tried using php-cli from the latest cvs and am a little
> confused by the placement of shell environment variables. $_ENV is
> empty, but the values are stored in $HTTP_SERVER_VARS and $_SERVER.
> 
> Is this the proper behavior?

As far as I remember, this a knonw problem due to the variables order or
something like that. We ve got it in PEAR a few weeks ago, solved by
using a simple: 

$foo = isset($_ENV['foo'])?$_ENV['foo']:getenv('foo');

See php4/pear/System.php function tmpdir() for others examples.

hth

pa

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




[PHP-DEV] empty variables_order, was PHP CLI environment variables

2002-11-06 Thread Marcus Boerger
When ini setting variables_order is empty there are memory leaks in
cgi as well as cli version. See below:

marcus

[marcus@zaphod marcus]$ echo "" | 
/usr/src/php4-ZE1/sapi/cgi/php-cgi
/home/marcus/-(1) : Warning - Wrong parameter count for var_dump()
Status: 200
Content-type: text/html
X-Powered-By: PHP/4.3.0-dev

/usr/src/php4-ZE1/Zend/zend_hash.c(262) :  Freeing 0x084409C0 (40 bytes), 
script=-
Last leak repeated 40 times
/usr/src/php4-ZE1/main/main.c(1434) :  Freeing 0x08440928 (12 bytes), script=-
/usr/src/php4-ZE1/Zend/zend_hash.c(178) :  Freeing 0x084408D8 (32 bytes), 
script=-
/usr/src/php4-ZE1/main/main.c(1387) :  Freeing 0x08440878 (44 bytes), script=-
/usr/src/php4-ZE1/Zend/zend_API.c(565) : Actual location (location was relayed)
/usr/src/php4-ZE1/main/main.c(1386) :  Freeing 0x08440838 (12 bytes), script=-
/usr/src/php4-ZE1/main/php_variables.c(175) :  Freeing 0x08440798 (12 
bytes), script=-
Last leak repeated 38 times
/usr/src/php4-ZE1/ext/standard/string.c(2485) :  Freeing 0x08440408 (1 
bytes), script=-
Last leak repeated 38 times
/usr/src/php4-ZE1/Zend/zend_hash.c(440) :  Freeing 0x08440278 (256 bytes), 
script=-
/usr/src/php4-ZE1/main/main.c(1214) :  Freeing 0x0843E3B8 (44 bytes), script=-
/usr/src/php4-ZE1/Zend/zend_API.c(565) : Actual location (location was relayed)
/usr/src/php4-ZE1/main/main.c(1213) :  Freeing 0x0843E378 (12 bytes), script=-

At 13:30 06.11.2002, Kjartan Mannes wrote:
I just tried using php-cli from the latest cvs and am a little confused
by the placement of shell environment variables. $_ENV is empty, but the
values are stored in $HTTP_SERVER_VARS and $_SERVER.

Is this the proper behavior?

--
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "Women are made to be loved, not understood." - Oscar Wilde


--
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] PHP CLI environment variables

2002-11-06 Thread Marcus Boerger
Does ini setting variables_order include E?

At 13:30 06.11.2002, Kjartan Mannes wrote:

I just tried using php-cli from the latest cvs and am a little confused
by the placement of shell environment variables. $_ENV is empty, but the
values are stored in $HTTP_SERVER_VARS and $_SERVER.

Is this the proper behavior?

--
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "Women are made to be loved, not understood." - Oscar Wilde


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




[PHP-DEV] PHP CLI environment variables

2002-11-06 Thread Kjartan Mannes
I just tried using php-cli from the latest cvs and am a little confused
by the placement of shell environment variables. $_ENV is empty, but the
values are stored in $HTTP_SERVER_VARS and $_SERVER.

Is this the proper behavior?

-- 
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "Women are made to be loved, not understood." - Oscar Wilde


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




Re: [PHP-DEV] [PATCH] A suggested fix for bug #19943 (Re: [PHP-DEV] bug #19943)

2002-11-06 Thread Maxim Maletsky
I *very slightly* tested it and it worked for me. Not sure of the
old code though.

--
Maxim Maletsky
[EMAIL PROTECTED]




"Ilia A." <[EMAIL PROTECTED]> wrote... :

> On November 5, 2002 09:44 pm, Moriyoshi Koizumi wrote:
> > Ilia, thank you for double-checking.
> >
> > Since I have no access to Zend module, I'm waiting for that to be
> > committed by someone for now... Does it need more review?
> 
> It would probably be a good idea if more developers review this patch before 
> it goes in. If there won't be any objections to the patch, I will commit it 
> on your behalf.
> 
> Ilia
> 
> 
> > Moriyoshi
> >
> > "Ilia A." <[EMAIL PROTECTED]> wrote:
> > > The new appears to work correctly and previously mentioned problem no
> > > longer occures. I've also ran the test suit after applying the patch and
> > > none of the tests have been adversly affected, so it does not appear to
> > > break any old functionality.
> > >
> > > Ilia
> > >
> > > On November 5, 2002 09:17 pm, Moriyoshi Koizumi wrote:
> > > > Perhaps my patch was not sufficient... A revised patch is attached.
> > > > Please try this one, and if you like the patch, then commit it with
> > > > extreme care
> > > >
> > > > :)
> > > >
> > > > Moriyoshi
> > > >
> > > > > On November 5, 2002 05:48 pm, Moriyoshi Koizumi wrote:
> > > > > > The attached patch may be a fix for that bug.
> > > > > > Hope it works.
> > > > > >
> > > > > > Moriyoshi
> > > > > >
> > > > > > Moriyoshi Koizumi <[EMAIL PROTECTED]> wrote:
> > > > > > > I looked into it, and I've found you really got a point.
> > > > > > >
> > > > > > > ---
> > > > > > >  > > > > > > $ragged = array();
> > > > > > > $ragged[0] = "a";
> > > > > > > $ragged[0][0] = array("1");
> > > > > > > var_dump($ragged);
> > > > > > > ?>
> > > > > > > ---
> > > > > > >
> > > > > > > The first script causes no leaks, while the second does:
> > > > > > > ---
> > > > > > >  > > > > > > $ragged = array();
> > > > > > > $ragged[0] = "a";
> > > > > > > $ragged[0][0] = (string)array("1");
> > > > > > > var_dump($ragged);
> > > > > > > ?>
> > > > > > > ---
> > > > > > >
> > > > > > > Thanks for your insight.
> > > > > > >
> > > > > > >
> > > > > > > Moriyoshi
> > > > > > >
> > > > > > > "Ilia A." <[EMAIL PROTECTED]> wrote:
> > > > > > > > I agree with you that this bug may not be critical, I am not
> > > > > > > > certain why it was marked as such, however I do believe this is
> > > > > > > > a bug that should be fixed. If my understand of the situation
> > > > > > > > is correct, the memory leak is the result of original
> > > > > > > > $ragged[$count] = "$count"; expression. At this point ZE
> > > > > > > > creates a ZVAL that contains a 2 byte string value, number +
> > > > > > > > \0.
> > > > > > > > When $ragged[$count]['idx'] = 'ragged '.$count; is executed,
> > > > > > > > the original zval containing a string is converted to an array.
> > > > > > > > During this conversion the string value is not freed and the
> > > > > > > > result is a memory leak.
> > > > > > > >
> > > > > > > > Ilia
> > > > > > > >
> > > > > > > > On November 5, 2002 01:45 pm, Moriyoshi Koizumi wrote:
> > > > > > > > > This appears not a bug, but an expected behaviour for me.
> > > > > > > > > Let's change it from "Critial" to "Won't Fix" or so on.
> > > > > > > > >
> > > > > > > > > -
> > > > > > > > >--  > > > > > > > > $ragged = array();
> > > > > > > > > for ($count = 0; $count < 10; $count++) {
> > > > > > > > > $ragged[$count] = "$count";
> > > > > > > > > $ragged[$count]['idx'] = "$count";
> > > > > > > > > }
> > > > > > > > > for ($count = 0; $count < 10; $count++) {
> > > > > > > > > printf("single %d: %s\n", $count, $ragged[$count]);
> > > > > > > > > printf("ragged %d: %s\n", $count,
> > > > > > > > > $ragged[$count]['idx']); }
> > > > > > > > > ?>
> > > > > > > > > -
> > > > > > > > >--
> > > > > > > > >
> > > > > > > > > The above snippet is actually a variant of the following
> > > > > > > > > code:
> > > > > > > > > -
> > > > > > > > >--  > > > > > > > > $ragged = array();
> > > > > > > > > for ($count = 0; $count < 10; $count++) {
> > > > > > > > > $ragged[$count] = (string)$count;
> > > > > > > > > $ragged[$count]{(int)'idx'} = (string)$count;
> > > > > > > > > }
> > > > > > > > > for ($count = 0; $count < 10; $count++) {
> > > > > > > > > printf("single %d: %s\n", $count, $ragged[$count]);
> > > > > > > > > printf("ragged %d: %s\n", $count,
> > > > > > > > > $ragged[$count]{(int)'idx'}); }
> > > > > > > > > ?>
> > > > > > > > > -
> > > > > > > > >-- Then, "Cannot use a scalar value as an array" warnings are
> > > > > > > > > due to applications of braces for non-str

[PHP-DEV] dba and db extensions

2002-11-06 Thread Marcus Boerger
Hi Markus,

The main difference left between dba and db is that dba does not do any
locking. We could easily add this by copying the necessary parts from the
db extension. However we would need to change the resource type to also
keep the lock information. Otherwise a crashed php or one that does not
store the dba_open result would leave the lockfile locked.

However i tested this with the flatfile support and it did not work this way. I
had to keep the lock file open until the dba_close() call. But when keeping
the file open it worked as expected and even multiple reades, read during
write and killing of the writer process worked as expected.

marcus


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




Re: [PHP-DEV] CyberMut and SPPLUS

2002-11-06 Thread Markus Fischer
On Wed, Nov 06, 2002 at 04:04:48AM +0100, [EMAIL PROTECTED] wrote : 
> I really dont see why CyberMut should have one and not its
> concurrent.

There's nothing like commercial competition. This is an OS
project. Due it's limited audience it fits perfectly into
PECL and it's integration should be discussion on
[EMAIL PROTECTED]

-- 
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
$ grep docref_root php.ini
docref_root = 
"http://landonize.it/?how=url&theme=classic&filter=RichyH&user=imajes&url=http%3A%2F%2Fphp.net%2F/";

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




Re: [PHP-DEV] CyberMut and SPPLUS

2002-11-06 Thread DJ Anubis
Le Mercredi 6 Novembre 2002 04:04, [EMAIL PROTECTED] a écrit :
> Hello,

Hi,

> I see that CyberMut a paiement system from one of our french bank has
> got its own extension. I'm working for SPPLUS one of an another bank in
> France. I was wondering if we could also add an extension for it... I just
> finished it and it works really fine with PHP-4.2.3 and PHP-4.3.0pre2 after
> many tests. I really dont see why CyberMut should have one and not its
> concurrent.

It's really a great idea ;-) Maybe in PECL as only French sites would use it.

DJ Anubis


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