[PHP-DEV] Flex check in configure

2003-03-11 Thread Dave Hill


Hi again,
   I am looking at the flex check in configure.in again. If flex is not 
present, or is not version 2.5.4 then you may get your environment 
dumped to stdout while running configure. This is due to the set command 
being run with no arguments.

Although non-fatal - it certainly is ugly.

Part of the problem with flex versions is that they are not consistant :-p

I took a crack at a fix, but am uncomfortable making the change as I 
don't really have the history on this one. If some of you out there 
would be so kind as to point out any flaws in my reasoning, I would 
apreciate it. (For example, there is a grep for the line containing 
'version' that I don't seem to need with the 3 versions of flex I checked).

If one of you config wizards wants to make the change - be my guest.

Dave

here is what the current test looks like:

set `echo "" | $LEX -V -v --version 2>/dev/null | grep 'version' | cut 
-d ' ' -f
3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'`
if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then
AC_MSG_WARN(You will need flex 2.5.4 or later if you want to 
regenerate
Zend/PHP lexical parsers.)
fi

I am proposing:

flexvers=`echo "" | $LEX -V -v --version 2>/dev/null | sed -e 's/^.* //' 
-e 's/\
./ /g'`
if test ! -z "$flexvers"; then
   set $flexvers
   if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then
   AC_MSG_WARN(You will need flex 2.5.4 or later if you want to 
regenerate
Zend/PHP lexical parsers.)
   fi
fi



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


Re: [PHP-DEV] Further outstanding 64-bit issues with PHP_4_3

2003-03-10 Thread Dave Hill
James Devenish wrote:

Remaining zend_parse_parameters problems:

   php4/ext/ftp/php_ftp.c
   php4/ext/sockets/sockets.c
You were right - I missed some changes, although part of it was due to 
the code drift between the head and the 4_3 branch. Submitted to both 
php4 and php_4_3

General LP64 incompatabilities left over from my November patches:

   php4/ext/pgsql/pgsql.c
   php4/ext/standard/url_scanner.c
   php4/ext/standard/url_scanner_ex.c
 

Understood and in php5, waiting for Jani's go ahead for php 4_3

   php4/main/network.c  
   php4/main/streams.c
   (Need to check: is _php_stream_cast safe? If not, then
   main/streams/cast.c in HEAD is probably not)
   php4/main/streams/plain_wrapper.c
   php4/main/streams/xp_socket.c
While I *think* these are the correct changes I am puzzled by some 
aspects of the zend internals (am still too new to it) and need to look 
at these some more. They don't apply to the php5 stream as far as i can 
tell.

And of course the OnUpdateLong stuff, but I guess that's in process.

I changed the ints where needed but left the procedure OnUpdateInt, the 
name change is in php5.  I *think* this is complete in the php4 streams. 
Jani did the OnUpdateLong in php5, I fixed up the ints where they needed 
to be longs.

dave

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


[PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread Dave Hill
Hi all,
   I am having fun with [EMAIL PROTECTED]@#$ autoconf. In the past I always used 
the configure in the RC tarball without (much) problem. As I am trying 
to be a good little commiter, I am trying to build my potential changes 
out of cvs and am starting with buildconf.

I have installed:
   gawk-3.1.1
   m4-1.4o
   bison-1.875
   flex-2.5.27
   autoconf-2.13
   automake-1.5
   libtool-1.4.3
I get warnings/errors during buildconf, and then syntax errors in the 
./configure after.

Any suggestions ?

# ./buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4.3 (ok)
rebuilding configure
configure.in:564: AC_TRY_COMPILE was called before AC_AIX
configure.in:564: AC_TRY_RUN was called before AC_AIX
configure.in:564: AC_TRY_COMPILE was called before AC_AIX
configure.in:564: AC_TRY_RUN was called before AC_AIX
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_ACVERSION
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
***BUG in Autoconf--please report*** AC_TRY_DLOPEN_SELF
rebuilding acconfig.h
rebuilding main/php_config.h.in
configure.in:564: AC_TRY_COMPILE was called before AC_AIX
configure.in:564: AC_TRY_RUN was called before AC_AIX
configure.in:564: AC_TRY_COMPILE was called before AC_AIX
configure.in:564: AC_TRY_RUN was called before AC_AIX


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


[PHP-DEV] Resources and zend_register_list_destructors_ex

2003-03-05 Thread Dave Viner
Hi,
I'm having some trouble understanding persistent versus non-persistent
resources (in ZE1).  Does the Zend engine call _any_ non-persistent callback
dtor function for a resource at the end of a request?

For example:
If I register a resource type at MINIT time like so:

le_mod = zend_register_list_destructors_ex
(destroy_mod, NULL, MOD_TYPE_NAME, module_number);

then my resource will be destroyed at the end of each request.  However, if
I register a resource type at MINIT time like so:

le_mod = zend_register_list_destructors_ex
(NULL, destroy_mod, MOD_TYPE_NAME, module_number);

then my resource will be destroyed at the end of the _process_.
If I register my resource type like this:

le_mod = zend_register_list_destructors_ex
(destroy_mod, destroy_mod, MOD_TYPE_NAME, module_number);

Is that the equivalent of registering a non-persistent type?

thanks
dave


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



RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
with that config.m4, running:
% phpize && ./configure --enable-biac=shared && make

should yield this:
/bin/bash /libtool --mode=compile g++

is that the case or not?

dave

-Original Message-
From: Michel M. dos Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 1:04 PM
To: Dave Viner; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: modules in c++



Yes.

My config.m4:


PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac
support])

if test "$PHP_BIAC" != "no" ; then
 PHP_ADD_LIBRARY(stdc++)
 PHP_EXTENSION(biac,$ext_shared)
 PHP_REQUIRE_CXX()
fi

Michel M. dos Santos



On Wednesday 05 March 2003 18:01, Dave Viner wrote:
> do you have the PHP_REQUIRE_CXX() in your config.m4?
>
> dave
>
>
> -Original Message-
> From: Michel M. dos Santos [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 12:43 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] Re: modules in c++
>
>
>
>
>   J,
>
>   First, thanks by your article. My original e first problem is :
>
>   PHP Warning:  Unable to load dynamic library
> '/usr/lib/php4/20010901/biac.so' - /usr/lib/php4/20010901/biac.so:
> undefined symbol: endl__FR7ostream in Unknown on line 0
>
>   The use of cout (in this case) result it. I try with std::cout or using
> namespace std but not resolve. Linking with g++ the error dont occur.
>
>   What is wrong ?
>
>   Thanks a lot,
>
> Michel M. dos Santos
>
> On Wednesday 05 March 2003 17:23, J Smith wrote:
> > That should still work fine, though, shouldn't it? I mean, the .so spit
>
> out
>
> > should be working properly. I just tested this with a C++ extension and
> > while gcc was used by libtool for the linking, the extension works fine.
> >
> > If you really want the C++ compiler to do the linking, you can open up
> > libtool file that's generated and edit the line that reads "CC=gcc" to
> > say "CC=g++". I'm not sure if there's a better way to do this. At least,
> > I haven't found one yet. If you find something that works a bit better,
> > let me know and I'll update the article.
> >
> > J
> >
> > Michel M. Dos Santos wrote:
> > > Hi,
> > >
> > > I've been trying use C++ within a PHP extension with help by document
> > > in http://www.tutorbuddy.com/software/phpcpp/phpcpp/.
> > > The instructions works fine but I have problems with linking objects.
>
> The
>
> > > script libtool links objects with gcc and not with g++ and  the moment
>
> of
>
> > > creation of the dinamic library .so gcc is used and not g++.
> > >
> > > See:
> > >
> > > /bin/sh /root/biac_php/teste/libtool --mode=link gcc  -I.
> > >  ^^^
> > > -I/root/biac_php/teste/ -I/root/biac_php/teste/main
> > > -I/root/biac_php/teste -I/usr/include/php4 -I/usr/include/php4/main
> >
>
> -I/usr/include/php4/Zend -I/usr/include/php4/TSRM  -DHAVE_CONFIG_H -g -O2
> >
> > >   -o teste.la
> > > -avoid-version
> > > -module -rpath /root/biac_php/teste/modules   teste.lo
> > >
> > > gcc -shared  teste.lo   -Wl,-soname -Wl,teste.so -o .libs/teste.so
> > > ^^^
> > >
> > > Thanks,
> > >
> > > Michel M. dos Santos

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



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



RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
do you have the PHP_REQUIRE_CXX() in your config.m4?

dave


-Original Message-
From: Michel M. dos Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: modules in c++




J,

First, thanks by your article. My original e first problem is :

PHP Warning:  Unable to load dynamic library
'/usr/lib/php4/20010901/biac.so' - /usr/lib/php4/20010901/biac.so: undefined
symbol: endl__FR7ostream in Unknown on line 0

The use of cout (in this case) result it. I try with std::cout or using
namespace std but not resolve. Linking with g++ the error dont occur.

What is wrong ?

Thanks a lot,

Michel M. dos Santos



On Wednesday 05 March 2003 17:23, J Smith wrote:
> That should still work fine, though, shouldn't it? I mean, the .so spit
out
> should be working properly. I just tested this with a C++ extension and
> while gcc was used by libtool for the linking, the extension works fine.
>
> If you really want the C++ compiler to do the linking, you can open up
> libtool file that's generated and edit the line that reads "CC=gcc" to say
> "CC=g++". I'm not sure if there's a better way to do this. At least, I
> haven't found one yet. If you find something that works a bit better, let
> me know and I'll update the article.
>
> J
>
> Michel M. Dos Santos wrote:
> > Hi,
> >
> > I've been trying use C++ within a PHP extension with help by document in
> > http://www.tutorbuddy.com/software/phpcpp/phpcpp/.
> > The instructions works fine but I have problems with linking objects.
The
> > script libtool links objects with gcc and not with g++ and  the moment
of
> > creation of the dinamic library .so gcc is used and not g++.
> >
> > See:
> >
> > /bin/sh /root/biac_php/teste/libtool --mode=link gcc  -I.
> >  ^^^
> > -I/root/biac_php/teste/ -I/root/biac_php/teste/main
> > -I/root/biac_php/teste -I/usr/include/php4 -I/usr/include/php4/main
>
> -I/usr/include/php4/Zend -I/usr/include/php4/TSRM  -DHAVE_CONFIG_H -g -O2
> >   -o teste.la
> > -avoid-version
> > -module -rpath /root/biac_php/teste/modules   teste.lo
> >
> > gcc -shared  teste.lo   -Wl,-soname -Wl,teste.so -o .libs/teste.so
> > ^^^
> >
> > Thanks,
> >
> > Michel M. dos Santos

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



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



[PHP-DEV] [PATCH] - 64 bit issue with zend_parse_parameters calls

2003-03-01 Thread Dave Hill
Hi all, I am back again

Diff against php4-STABLE-200302241430
   (without the last patch I suggested)
Applies to 4.5.x and 5.x as well.
Affects any 64 bit OS.
I ran into another problem after I turned optimization back on. Usually
these are hell to find, but Julien Soula (who I met through the
bug database) had encountered this already.
This time I have a 64 bit issue with zend_parse_parameters().
Luckily the problem is not the implementation, rather the usage.
"s" -> needs a char *, int *
"l" -> needs a long *
Passing the wrong type into this function will have  unexpected
results... :-) In my case I was getting string lengths with random
values in the upper 32 bits making for strings a bit longer than
in reality.
I did a code inspection (helped by cscope) of the 480 hits,
checking what the types were passed for s & l entries. I did this
regardless of if I actually use the code - it was just easier to
look at them all, but this does mean that I will not be compile
testing all of them I have 26 changed files. I hope the
diff will work against 4.5.x and later because that was a lot of
files to inspect :-p
Where a type like size_t or an enum was used, I converted this to
a long. I did this because the function is defined as taking a
long, and in some cases (like enum) you may actually be getting
an int. Even in a case like size_t where you are probablly safe,
I have always found it to be safe then sorry.
Interestingly enough I did find one coding error, in
ext/w32api/w32api.c there are two calls with "s|l" and only
two arguments passed into the function, so heaven help anyone
who tries to pass that optional long :-) I guess it is lucky
that I am using Apache/Unix :-)
Per README.SUBMITTING_PATCH I am trying to copy all
of the extension owners.
Files affected:
   ./ext/domxml/php_domxml.c
   ./ext/fdf/fdf.c
   ./ext/ftp/php_ftp.c
   ./ext/ldap/ldap.c
   ./ext/mcrypt/mcrypt.c
   ./ext/mhash/mhash.c
   ./ext/pgsql/pgsql.c
   ./ext/posix/posix.c
   ./ext/dio/dio.c
   ./ext/sockets/sockets.c
   ./ext/standard/exec.c
   ./ext/standard/file.c
   ./ext/standard/fsock.c
   ./ext/standard/head.c
   ./ext/standard/html.c
   ./ext/standard/metaphone.c
   ./ext/standard/string.c
   ./ext/sysvsem/sysvsem.c
   ./ext/zlib/zlib.c
   ./ext/bz2/bz2.c
   ./ext/openssl/openssl.c
   ./ext/rpc/com/com.c
   ./ext/iconv/iconv.c
   ./ext/mbstring/mbstring.c
   ./ext/mbstring/php_mbregex.c
   ./ext/zip/zip.c
   ./main/output.c
--- php4-STABLE-200302241430/./ext/domxml/php_domxml.c  2003-01-10 13:11:03.0 
-0500
+++ php4-STABLE-200302241430.mod2/./ext/domxml/php_domxml.c 2003-03-01 
14:24:23.0 -0500
@@ -1967,7 +1967,8 @@
zval *rv = NULL;
zval *id;
xmlNode *n, *node;
-   int ret, recursive = 0;;
+   int ret; 
+   long recursive = 0;
 
DOMXML_GET_THIS_OBJ(n, id, le_domxmlnodep);
 
@@ -3558,7 +3559,8 @@
zval *arg1, *id, *rv = NULL;
xmlNodePtr node, srcnode;
xmlDocPtr docp;
-   int ret, recursive = 0;
+   int ret; 
+   long recursive = 0;
 
DOMXML_GET_THIS_OBJ(docp, id, le_domxmldocp);
 
@@ -3764,7 +3766,8 @@
int ret; 
char *buffer;
int buffer_len;
-   int mode = 0, prevSubstValue;
+   long mode = 0;
+   int prevSubstValue;
int oldvalue =  xmlDoValidityCheckingDefaultValue;
int oldvalue_keepblanks;
int prevLoadExtDtdValue = xmlLoadExtDtdDefaultValue;
@@ -3850,7 +3853,8 @@
xmlDoc *docp = NULL;
int ret, file_len;
char *file;
-   int mode = 0, prevSubstValue;
+   long mode = 0;
+   int prevSubstValue;
int oldvalue =  xmlDoValidityCheckingDefaultValue;
int oldvalue_keepblanks;
zval *errors = NULL;
@@ -5211,7 +5215,8 @@
xmlDocPtr xmldocp;
char *filename;
int filename_len;
-   int ret, compression = 0;
+   int ret;
+   long compression = 0;
 
DOMXML_GET_THIS(idxsl);
 
--- php4-STABLE-200302241430/./ext/fdf/fdf.c2002-12-31 12:15:19.0 -0500
+++ php4-STABLE-200302241430.mod2/./ext/fdf/fdf.c   2003-03-01 14:24:23.0 
-0500
@@ -554,7 +554,8 @@
 PHP_FUNCTION(fdf_get_ap) {
zval *r_fdf;
char *fieldname, *filename;
-   int fieldname_len, filename_len, face;
+   int fieldname_len, filename_len;
+   long face;
FDFDoc fdf;
FDFErc err;
FDFAppFace facenr;
@@ -941,7 +942,8 @@
 PHP_FUNCTION(fdf_get_flags) {
zval *r_fdf;
char *fieldname;
-   int fieldname_len, whichflags;
+   int fieldname_len;
+   long whichflags;
FDFDoc fdf;
FDFErc err;
ASUns32 flags;
@@ -997,7 +999,8 @@
 PHP_FUNCTION(fdf_get_opt) {
zval *r_fdf;
char *fieldname;
-   int fieldname_len, element = -1;
+   int fieldname_len;
+   long element = -1;
FDFDoc fdf;
FDFErc err;
 
--- php4-STABLE-200302241430/./ext/ftp/php_ftp.c2003-01-06 23:09:26.

[PHP-DEV] using VC++ to compile PHP extensions

2003-02-27 Thread Dave Viner
Hi,
I've just completed some local php extensions using VC++.  Here are some
notes that might help others when creating php extensions using VC++.

By default, Visual C++ will add classes with a .cpp extension.  To make this
work properly, you must either wrap the C specific sections, or force C
linkage.  The sections that must be wrapped are:
extern "C" {
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
}
and
extern "C" {
#ifdef COMPILE_DL_MYMODULE
ZEND_GET_MODULE(MyModule)
#endif
}
To force C-linkage, you can change the extension to .c, or add /Tc to your
settings (Project > Setting > C/C++ >General - then add /Tc to the "Project
Options" at the bottom).


Second, you should add this to the very top of your cpp file:
#ifdef WIN32
#include 
#endif
Otherwise, the math header will be included inside the extern "C" section,
and will cause an error.  (STL template definitions can't be included under
the "C" linkage.)


Third, be sure to declare all function prototypes first.  If you don't use a
php_MyModule.h file, you _must_ declare all function prototypes before the
first zend function struct.  So, put them after your header includes, and
before the section that looks like:

function_entry MyModule_functions[] = {
PHP_FE(confirm_MyModule_compiled,   NULL)   /* For testing, remove 
later. */
{NULL, NULL, NULL}  /* Must be the last line in Cache_functions[] */
};

These were just a few small notes that really helped me in using Visual C++
to build some PHP extensions.  Also, the article
http://www.devnewz.com/2002/0909.html was very helpful to start from.

dave


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



[PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-27 Thread Dave Hill
Proposed Patch to address 64 bit issues in PHP v4.3.1

Diff -u against php4-STABLE-200302241430
Also needed in 4.5.x and 5.x
Addresses bugs 20994, 21002, 21822, 20268
Platforms affected, Tru64, Solaris 9, HP-UX, NetBSD/Alpha and
any other 64 bit platform I forgot to mention
A little education first

on some platforms, sizeof(int) != sizeof(long)
This is particularly true on 64 bit platforms.
Mixed int* and long* in these cases can be deadly, and
can cause hard to find problems. This is because if
the machine writes to a long* that is really pointing at
an int, then "extra" data gets written past the end of the
int corrupting whatever is after that int.
Also on 64 bit platforms, only a long is going to be big enough
to hold a pointer, so assigning a pointer value to an int, and then
assigning it back will result in truncation of data.
Lastly, sizeof(size_t) == sizeof(long) which means if you plan to mix
things, don't mix size_t and int.
The particular problem that sparked this patch is a particular problem
with OnUpdateInt called from zlib, as this function assumes a &long is 
passed in,
despite the name. In the source code - this function was passed a long
in about 70% of the cases, an int in rest. What was passed was not
always consitant in a particular source module.

I chose to address this problem by creating OnUpdateLong (in addition to
to existing OnUpdateInt) and sweep though the code changing the call
where needed to match the stucture item. An equally valid fix would be
to change all of those longs to ints.
After performing that sweep, I found there was a small number of other
errors of the int/long type that my compiler found that I corrected and
are included here. There might be more mix and match problems, I only
addressed the ones in the modules I have enabled.
Files affected:
Zend/zend_ini.c
Zend/zend_ini.h
ext/fbsql/php_fbsql.c
ext/hyperwave/hw.c
ext/ingres_ii/ii.c
ext/interbase/interbase.c
ext/ldap/ldap.c
ext/mbstring/mbstring.c
ext/mssql/php_mssql.c
ext/mysql/php_mysql.c
ext/odbc/php_odbc.c
ext/pgsql/pgsql.c
ext/session/session.c
ext/standard/assert.c
ext/standard/file.c
ext/standard/info.c
ext/standard/url_scanner_ex.c
ext/sybase_ct/php_sybase_ct.c
main/main.c
sapi/apache/php_apache.c


--- php4-STABLE-200302241430/Zend/zend_ini.c2002-12-31 12:15:18.0 -0500
+++ php4-STABLE-200302241430.mod/Zend/zend_ini.c2003-02-27 14:25:11.0 
-0500
@@ -427,9 +427,35 @@
return SUCCESS;
 }
 
-
+/*
+ * Note: on 64 bit platforms, sizeof(long) != sizeof(int) and
+ * long* and int* cannot be used interchangably without disaster !
+ * OnUpdateInt or OnUpdateLong must match the resource type !
+ */
 ZEND_API ZEND_INI_MH(OnUpdateInt)
 {
+   int *p;
+#ifndef ZTS
+   char *base = (char *) mh_arg2;
+#else
+   char *base;
+
+   base = (char *) ts_resource(*((int *) mh_arg2));
+#endif
+
+   p = (int *) (base+(size_t) mh_arg1);
+
+   *p = zend_atoi(new_value, new_value_length);
+   return SUCCESS;
+}
+
+/*
+ * Note: on 64 bit platforms, sizeof(long) != sizeof(int) and
+ * long* and int* cannot be used interchangably without disaster !
+ * OnUpdateInt or OnUpdateLong must match the resource type !
+ */
+ZEND_API ZEND_INI_MH(OnUpdateLong)
+{
long *p;
 #ifndef ZTS
char *base = (char *) mh_arg2;
@@ -445,7 +471,6 @@
return SUCCESS;
 }
 
-
 ZEND_API ZEND_INI_MH(OnUpdateReal)
 {
double *p;
--- php4-STABLE-200302241430/Zend/zend_ini.h2002-12-31 12:15:18.0 -0500
+++ php4-STABLE-200302241430.mod/Zend/zend_ini.h2003-02-27 14:25:11.0 
-0500
@@ -171,6 +171,7 @@
 /* Standard message handlers */
 ZEND_API ZEND_INI_MH(OnUpdateBool);
 ZEND_API ZEND_INI_MH(OnUpdateInt);
+ZEND_API ZEND_INI_MH(OnUpdateLong);
 ZEND_API ZEND_INI_MH(OnUpdateReal);
 ZEND_API ZEND_INI_MH(OnUpdateString);
 ZEND_API ZEND_INI_MH(OnUpdateStringUnempty);
--- php4-STABLE-200302241430/ext/fbsql/php_fbsql.c  2003-02-12 16:13:08.0 
-0500
+++ php4-STABLE-200302241430.mod/ext/fbsql/php_fbsql.c  2003-02-27 14:25:11.0 
-0500
@@ -358,14 +358,14 @@
 /* {{{ PHP_INI
  */
 PHP_INI_BEGIN()
-   STD_PHP_INI_BOOLEAN  ("fbsql.allow_persistent", "1",   
 PHP_INI_SYSTEM, OnUpdateInt,allowPersistent,  zend_fbsql_globals, 
fbsql_globals)
-   STD_PHP_INI_BOOLEAN  ("fbsql.generate_warnings","0",   
 PHP_INI_SYSTEM, OnUpdateInt,generateWarnings, zend_fbsql_globals, 
fbsql_globals)
-   STD_PHP_INI_BOOLEAN  ("fbsql.autocommit",  
 "1",PHP_INI_SYSTEM, OnUpdateInt,autoCommit,   
zend_fbsql_globals, fbsql_globals)
-   STD_PHP_INI_ENTRY_EX ("fbsql.max_persistent",   "-1",  
 PHP_INI_SYSTEM, OnUpdateInt,maxPersistent,zend_fbsql_globals, 
fbsql_globals, display_link_numbers)
-   STD_PHP_INI_ENTRY_EX ("fbsql.max_links",   
 "

RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
i believe that win32 actually does support semaphores.  see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas
e/using_synchronization.asp

for details on synchronization issues inside win32 (including mutex which is
what i think you're looking for).

or if you don't want a lot of #ifdef WIN32 in your code, you could look at
using Apache Portable Runtime (http://apr.apache.org) to enable mutex
(http://apr.apache.org/docs/apr/group__APR__ThreadMutex.html)



dave


-Original Message-
From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: [PHP] Threading


Hi!

>"George Schlossnagle" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
>On Thursday, February 27, 2003, at 01:50  PM, Braulio JosX Solano Rojas
>wrote:
>
> Are there semaphores in PHP?
>
>Yes.  I'd recommend a reading of the fine manual.

I did of course.

> Of course if you're actually writing an extension it doesn't matter
> much if the semaphores are implemented in PHP or not, since you'll
> probably just want to use the sysv ipc support of the os yourself,
> without taking it through php userland functions.

I already know about this functionality, but as you know this is only for
Unix.  And yes it matters if the semaphores are implemented in PHP since I
need portability between different OSes. (I like Inter-Process Comunication,
I am sorry not to have it on win32).

I am working in an extension that provides functionality to read CDS/ISIS
databases on PHP.  Those databases are files (there is not a server, but a
server is planned by the OpenIsis project [1]), so when there is concurrency
we should provide consistent data.  There is a paper on different solutions
on how to solve this on PHP [2].  I was thinking of assume the worst case:
PHP as a CGI.  But, I am really interested in multi-threading inside PHP.

CDS/ISIS is wide used in latin-america by librarians. If I could have a
multi-platform solution, that would be great.


Regards,

Braulio

[1] http://sourceforge.net/projects/isis
[2] http://openisis.org/openisis/doc/Concurrency



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



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



RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
would semaphores provide the "mutual exclusion zone" you need?

dave

-Original Message-
From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 8:01 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: [PHP] Threading


Hi!

"Rasmus Lerdorf" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Tue, 18 Feb 2003, Greg Donald wrote:
> > On Tue, 18 Feb 2003, Bruce Miller wrote:
> >
> > >Will PHP allow multiple-thread execution?
> >
> > PHP4 does not have thread support.
>
> Well, except for pear/PECL/threads, of course.

Is this going to be standard in the future in PHP.

I need a mutual exclusion zone in the extension I am writing.  Is this
possible other way?

Best regards,

Braulio



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



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



[PHP-DEV] PHP extension with C++

2003-02-19 Thread Dave Viner
Hi,
I'm trying to compile a PHP extension that uses C+ on windows, and I keep
getting this error message:

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(373) : error
C2491: 'endl' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(379) : error
C2491: 'endl' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(389) : error
C2491: 'ends' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(394) : error
C2491: 'ends' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(403) : error
C2491: 'flush' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(408) : error
C2491: 'flush' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(541) : error
C2491: 'ws' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(561) : error
C2491: 'ws' : definition of dllimport function not allowed

Has anyone seen this before, or know how to fix it?

thanks
dave


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




[PHP-DEV] PHP extensions and C++

2003-02-18 Thread Dave Viner
Hi,
I'm trying to write a simple PHP extension that will wrap a C++ class.  I
have a test C++ program which exercises the class and works properly.  I am
trying to make the PHP extension code work, but I keep running into this
error in VC++:

DataStore.lib(FileSystemDataStore.obj) : error LNK2005: "void __cdecl
operator delete(void *,void *)" (??3@YAXPAX0@Z) already defined in
DataStore.obj

This occurs only if I instantiate an object of my class (named
FileSystemDataStore).
#if 1
FileSystemDataStore *fsds = new FileSystemDataStore(fs_args);
#endif
Including this code causes the linkage error, and #if 0 this block will
compile and link fine.  I suspect the php glue code since my C++ test
program compiles and links fine against the same .lib.

Has anyone seen this error or have a suggestion for how to fix it?

Thanks
dave

P.S - I'm not sure if this is the correct list to post this question on, so
please let me know if I should repost it elsewhere.


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




[PHP-DEV] adding class members in C

2003-02-12 Thread Dave Viner
Hi,
I'm trying to write a class as a PHP C extension.  I want to add a member
variable to class declaration time.  I believe this is possible by adding to
the zend_class_entry's default_properties HashTable.  My attempts so far
have resulted in apache core dumps.  My code for PHP_MINIT_FUNCTION look
like:


   zend_class_entry MyClass_class_entry;
   char *cv2;

   INIT_CLASS_ENTRY(MyClass_class_entry, "MyClass",
MyClass_class_funcs);
   MyClass_class_entry_ptr =
zend_register_internal_class(&MyClass_class_entry);

   fprintf(stderr,"Registered class with name
'%s'\n",MyClass_class_entry_ptr->name);
   zend_hash_update(&MyClass_class_entry_ptr->default_properties,
"memvar", 7,
"member value", 13,
(void **) &cv2);

   fprintf(stderr,"made MyClass::memvar point to '%s'\n", cv2);

However, I get coredumps on apache startup.

What is the correct way to register member variables at class declaration
time?

thanks
dave


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




Re: [PHP-DEV] PHP4 + PHP5

2003-01-14 Thread Dave Mertens
On Tue, Jan 14, 2003 at 02:48:04AM +0100, Pierre-Alain Joye wrote:
> On Mon, 13 Jan 2003 20:46:45 -0500
> "Mike Robinson" <[EMAIL PROTECTED]> wrote:
> 
> > Hiya,
> > 
> > I'm wondering if it will be possible to build and use both PHP4
> > and PHP5 as apache modules on the same webserver, similar to the
> > way we could use both PHP3 and PHP4.
> 
> I hope so. libphp5 will be the module names, afaik. That will avoid
> conflict names. is it ?
Well, i guess if the name will be libphp5 (just as it is now libphp4), apache 
shouldn't have any problems with
But the big question is. Will .php be parsed with php5 or php4. 

With the upgrade from php3 to php4 we've just set the script handler per (virtual) 
host.
Default was php3 and the upgraded sites were than using php4.

Another option is that you introduce an extention like php5, but removing them later 
would be a hell of a job.
I still remember that i had to rename all the files in several projects. Well, 
scripting makes the difference!
If i find the (bash) script (uses sed, awk, grep and cut) i will post it to the list.

For those windows users: Just download the gentoo (http://www.gentoo.org) live cd 
(16MB) and boot the CD
You'll find a very complete installation cd. Just setup a network connection, start 
the sshd deamon
and copy the files from your workstation to the gentoo system. Run the script and copy 
back the results.
(Oh, you don't need to install the distro itself)

Note that are more distro that are offering live cd's just a get the 'feeling' of 
linux, without installing the distro.
Much more persuasive than those 120 day limit cd's from Microsoft ;-)

-- 
With best regards,

Dave Mertens - Senior Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media
Schiekade 101
3033 BG  Rotterdam, Netherlands
T +31-10-2436060
F +31-10-2436066 
http://www.ism.nl

Quality Solutions - Reliable Partner

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




Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)

2003-01-09 Thread Dave Mertens
On Wed, Jan 08, 2003 at 03:55:51AM +, Nikolai Vladychevski wrote:
> I want to share the code (php-extension) I have included into php-4.2.2 to 
> support CDK widgets 
> (http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gz&type=listing) to enable 
> PHP to use text based "GUI" in terminal environment. 
> 
> CDK supports:
> -Alphalist (list with alphanumeric search)
> -Calendar dialog box
> -Dialog
> -Entry field with type masking
> -Scale field
> -2 dimension graphics (text mode)
> -Histogram display
> -Item list field
> -Label
> -Marque (text box in movement)
> -Matrix field
> -Menu
> -Scroll
> -Selection field
> -Slider field
> -Radio button
> -Template field 
> 
+10 ;-)

This extension would allow me to drop my own text-base objects using the php ncursus 
extension. But has has some bugs which are hard to fix.
So yes, please commit. I guess you should put it into PECL..


-- 
With best regards,

Dave Mertens - Senior Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media
Schiekade 101
3033 BG  Rotterdam, Netherlands
T +31-10-2436060
F +31-10-2436066 
http://www.ism.nl

Quality Solutions - Reliable Partner

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




RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
thanks... downloading the 3.3.11 version pretty much worked for me.  i
needed to change the lib name from libdb31s.lib to libdb33.lib (for using
the .dll instead of statically linking it).

dave


-Original Message-
From: Steph [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:02 PM
To: Dave Viner; [EMAIL PROTECTED]
Cc: Php-Dev@lists. php. net
Subject: Re: [PHP-DEV] building ext/dba on win32


http://www.sleepycat.com/update/index.html
3.3.11 works fine for me, and is also the version Edin was using to
build php_dba.dll last I know of..

- Original Message -
From: "Dave Viner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Php-Dev@lists. php. net" <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 8:06 PM
Subject: RE: [PHP-DEV] building ext/dba on win32


> well.. from the win32build.zip file, I find in db.h this line:
>
> #define DB_VERSION_STRING "Sleepycat Software: DB 2.4.14: (6/2/98)"
>
> I suspect that this is the problem.  I downloaded the latest berkeley
db
> from sleepycat, but I still get an error.  It is now version 4, so
this
> might be the problem... I don't know what has changed from 3->4.  But
the
> error I now get is:
>
> D:\php\php4\ext\dba\dba_db3.c(90) : error C2198: 'function through
pointer'
> : too few actual parameters
>
> which is from this line:
>
> if ((err=dbp->open(dbp, info->path, NULL, type, gmode, filemode))
== 0)
> {
>
> This api does appear to change from version 3 to 4 as the docs
> (http://www.sleepycat.com/docs/api_c/db_open.html) now list 7
arguments
> instead of 6.
>
>
> is the recommended approach for me to download version 3.x and compile
that
> for use with PHP?  If so, where can I download the older version (I
can't
> find it on sleepycat).
>
> thanks for your help.
>
> dave
>
>
> -Original Message-
> From: Marcus Borger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 11:55 AM
> To: Dave Viner
> Cc: Php-Dev@lists. php. net
> Subject: Re: [PHP-DEV] building ext/dba on win32
>
>
> At 20:11 07.01.2003, Dave Viner wrote:
> >Hi,
> > I'm having trouble building the dba extension on win32.  I
get
> these
> >errors:
> >
> >D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is
not a
> >member of '__db'
> > D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
> '__db'
> >D:\php\php4\ext\dba\dba_db3.c(90) : error C2039: 'open' : is not a
member
> of
> >'__db'
> > D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
> '__db'
>
> according to sleepycat this should be available in all db 3 versions.
>
> >from looking at cvs annotate, the lines causing these errors were
added on
> >30 Dec 02 by helly.
> >
> >I looked at the latest win32build zip file on php.net, and I have the
> latest
> >information.
> >Has anyone else seen this error?  Or know how I can fix this?
>
> I checked the current snaps build and it outputs the following:
> [c:\programme\php4\cli]php -v
> PHP 4.4.0-dev (cli) (built: Jan  7 2003 20:19:15)
> Copyright (c) 1997-2003 The PHP Group
> Zend Engine v1.4.0, Copyright (c) 1998-2003 Zend Technologies
>
> [c:\programme\php4\cli]php -r "print_r(dba_handlers(1));"
> Array
> (
>  [cdb] => 0.75, $Revision: 1.6 $
>  [cdb_make] => 0.75, $Revision: 1.5 $
>  [db3] => Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
>  [flatfile] => 1.0, $Revision: 1.8 $
> )
>
> Interesting here is the version: DB 3.3.11.
> What version of DB 3 do you try to link to?
>
> regards
> marcus
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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



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




[PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
Hi,
I'm having trouble building the dba extension on win32.  I get these
errors:

D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a
member of '__db'
D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db'
D:\php\php4\ext\dba\dba_db3.c(90) : error C2039: 'open' : is not a member of
'__db'
D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db'

from looking at cvs annotate, the lines causing these errors were added on
30 Dec 02 by helly.

I looked at the latest win32build zip file on php.net, and I have the latest
information.
Has anyone else seen this error?  Or know how I can fix this?

thanks
dave


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




RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
well.. from the win32build.zip file, I find in db.h this line:

#define DB_VERSION_STRING   "Sleepycat Software: DB 2.4.14: (6/2/98)"

I suspect that this is the problem.  I downloaded the latest berkeley db
from sleepycat, but I still get an error.  It is now version 4, so this
might be the problem... I don't know what has changed from 3->4.  But the
error I now get is:

D:\php\php4\ext\dba\dba_db3.c(90) : error C2198: 'function through pointer'
: too few actual parameters

which is from this line:

if ((err=dbp->open(dbp, info->path, NULL, type, gmode, filemode)) == 0)
{

This api does appear to change from version 3 to 4 as the docs
(http://www.sleepycat.com/docs/api_c/db_open.html) now list 7 arguments
instead of 6.


is the recommended approach for me to download version 3.x and compile that
for use with PHP?  If so, where can I download the older version (I can't
find it on sleepycat).

thanks for your help.

dave


-Original Message-
From: Marcus Borger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 11:55 AM
To: Dave Viner
Cc: Php-Dev@lists. php. net
Subject: Re: [PHP-DEV] building ext/dba on win32


At 20:11 07.01.2003, Dave Viner wrote:
>Hi,
> I'm having trouble building the dba extension on win32.  I get
these
>errors:
>
>D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a
>member of '__db'
> D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
'__db'
>D:\php\php4\ext\dba\dba_db3.c(90) : error C2039: 'open' : is not a member
of
>'__db'
> D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of
'__db'

according to sleepycat this should be available in all db 3 versions.

>from looking at cvs annotate, the lines causing these errors were added on
>30 Dec 02 by helly.
>
>I looked at the latest win32build zip file on php.net, and I have the
latest
>information.
>Has anyone else seen this error?  Or know how I can fix this?

I checked the current snaps build and it outputs the following:
[c:\programme\php4\cli]php -v
PHP 4.4.0-dev (cli) (built: Jan  7 2003 20:19:15)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2003 Zend Technologies

[c:\programme\php4\cli]php -r "print_r(dba_handlers(1));"
Array
(
 [cdb] => 0.75, $Revision: 1.6 $
 [cdb_make] => 0.75, $Revision: 1.5 $
 [db3] => Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
 [flatfile] => 1.0, $Revision: 1.8 $
)

Interesting here is the version: DB 3.3.11.
What version of DB 3 do you try to link to?

regards
marcus



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




RE: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Dave Viner
this sounds to me like a good idea.  at the very least, i don't see why we
wouldn't change the zlibstat.lib to be the zlib.lib that is built from the
zlib CVS module.

dave


-Original Message-
From: Michael Sisolak [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 6:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?


> > As I was looking into my build of Win32 failing becuase it tried to
> > link to a non-existant zlib.lib (the win32build.zip version is
called
> > zlibstat.lib), it occured to me that everything does build fine on
the
> > snapshot machine.
>
>  Check out the zlib CVS module and place it in the same directory the
>  php4 module was checked out to. Build both Debug and Release
versions
>  of zlib and you should be set up.

Yeah, Zeev pointed that out to me.  My question is really about all the
other libraries that are needed to get the Windows version to compile.
Things like the OpenSSL and GD image libaries.  I like to recompile the
PHP I run to be release_inline and to turn off some of the standard
libraries that I never use.  If we provided the library/header set that
the snaps machine uses to build PHP with, then I could make a build
that exactly matches the official Win32 build except for what I wanted
to be different.

Basically what I'm talking about is updating win32build.zip so that it
has all the current libraries that are really used to do a PHP build on
Win32.  Is there a practical or licensing reason why that couldn't be
done?  Would it be a lot more work than just packaging up a few
directories on the snaps machine?

Michael Sisolak
[EMAIL PROTECTED]


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



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




[PHP-DEV] downgrade undefined function from fatal error

2002-12-13 Thread Dave [Hawk-Systems]
reviewed and did a couple of searches on this prior to signing up to this
particular list...

Is this a reasonable consideration for changes to PHP's handling of undefined
functions?

Currently, calling a previously undefined function generates an E_ERROR, and
halts the script as a cirtical failure meaning we can't handle the error as we
do others (this is clearly documented).

What I am not clear on is why an undefined function should necessarily be a
fatal error with no change to code the script to handle the error.  For example



This would seem much more intuitive, and allow collection of massive amounts of
sharable and accessible functions to be contained in shared directories, and not
have to worry about identifying them all at the head of all pages, or including
functionsthat would not be required.

Currently as a workaround we are using the following logic;



But this results in code that isn't quite as intuitive.

Thoughts? Comments? "You are nuts"?

Dave



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




RE: [PHP-DEV] php4apache on win32 regex problem?

2002-11-13 Thread Dave Viner
thanks... here's a patch to php4apache.dsp that allows users to compile when
they use the standard install of apache (C:\Program files\Apache
group\Apache).

dave

=  BEGIN PATCH ==
Index: sapi/apache/php4apache.dsp
===
RCS file: /repository/php4/sapi/apache/php4apache.dsp,v
retrieving revision 1.13
diff -u -b -B -u -r1.13 php4apache.dsp
--- sapi/apache/php4apache.dsp  6 Apr 2002 15:36:55 -   1.13
+++ sapi/apache/php4apache.dsp  14 Nov 2002 01:23:03 -
@@ -44,7 +44,7 @@
 # PROP Ignore_Export_Lib 0  # PROP Target_Dir ""  # ADD BASE CPP /nologo
/MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL"
/D "APACHEPHP4_EXPORTS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I
"...\..\include" /I "..\..\win32" /I "..\..\Zend" /I "..\.." /I
"..\..\..\bindlib_w32" /I "..\..\..\php_build\apache\src\include" /I
"..\..\main" /I "..\..\TSRM" /D ZEND_DEBUG=0 /D "NDEBUG" /D "ZTS" /D
"ZEND_WIN32" /D "PHP_WIN32" /D "_WINDOWS" /D "_USRDLL" /D
"APACHEPHP4_EXPORTS" /D "WIN32" /D "_MBCS" /D "APACHE_READDIR_H" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "...\..\include" /I "..\..\win32" /I
"..\..\Zend" /I "..\.." /I "..\..\..\bindlib_w32" /I
"..\..\..\php_build\apache\src\include" /I "C:\Program Files\Apache
Group\Apache\include" /I "..\..\main" /I "..\..\TSRM" /I "..\..\regex" /D
ZEND_DEBUG=0 /D "NDEBUG" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D
"_WINDOWS" /D "_USRDLL" /D "APACHEPHP4_EXPORTS" /D "WIN32" /D "_MBCS" /D
"APACHE_READDIR_H" /YX /FD /c  # ADD BASE MTL /nologo /D "NDEBUG"
/mktyplib203 /win32  # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32  #
ADD BASE RSC /l 0x409 /d "NDEBUG" @@ -54,7 +54,7 @@
 # ADD BSC32 /nologo  LINK32=link.exe  # ADD BASE LINK32 kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll
/machine:I386 -# ADD LINK32 php4ts.lib ApacheCore.lib kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo
/base:"0x6000" /version:4.0 /dll /machine:I386
/libpath:"..\..\..\php_build\apache\src\corer" /libpath:"..\..\Release_TS"
/libpath:"..\..\TSRM\Release_TS" /libpath:"..\..\Zend\Release_TS" +# ADD
LINK32 php4ts.lib ApacheCore.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib /nologo /base:"0x6000" /version:4.0
/dll /machine:I386 /libpath:"..\..\..\php_build\apache\src\corer"
/libpath:"C:\Program Files\Apache Group\Apache\libexec"
/libpath:"..\..\Release_TS" /libpath:"..\..\TSRM\Release_TS"
/libpath:"..\..\Zend\Release_TS"!ELSEIF  "$(CFG)" == "php4apache - Win32
Debug_TS"   @@ -70,7 +70,7 @@
 # PROP Ignore_Export_Lib 0  # PROP Target_Dir ""  # ADD BASE CPP /nologo
/MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL"
/D "APACHEPHP4_EXPORTS" /YX /FD /c -# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI
/Od /I "...\..\include" /I "..\..\win32" /I "..\..\Zend" /I "..\.." /I
"..\..\..\bindlib_w32" /I "..\..\..\php_build\apache\src\include" /I
"..\..\main" /I "..\..\TSRM" /D "_DEBUG" /D ZEND_DEBUG=1 /D "ZTS" /D
"ZEND_WIN32" /D "PHP_WIN32" /D "_WINDOWS" /D "_USRDLL" /D
"APACHEPHP4_EXPORTS" /D "WIN32" /D "_MBCS" /D "APACHE_READDIR_H" /FR /YX /FD
/c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "...\..\include" /I
"..\..\win32" /I "..\..\Zend" /I "..\.." /I "..\..\..\bindlib_w32" /I
"..\..\..\php_build\apache\src\include" /I "C:\Program Files\Apache
Group\Apache\include" /I "..\..\main" /I "..\..\TSRM" /I "..\..\regex" /D
"_DEBUG" /D ZEND_DEBUG=1 /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D
"_WINDOWS" /D "_USRDLL" /D "APACHEPHP4_EXPORTS" /D "WIN32" /D "_MBCS" /D
"APACHE_READDIR_H" /FR /YX /FD /c  # ADD BASE MTL /nologo /D "NDEBUG"
/mktyplib203 /win32  #

RE: [PHP-DEV] php4apache on win32 regex problem?

2002-11-13 Thread Dave Viner
after struggling some more, i've discovered that for some reason, in my
php4apache compilation, the value of REGEX is set to 0.  Therefore vc++ is
trying to do:

#if REGEX
.. snip ..
#elif REGEX == 0
#include 
#ifndef _REGEX_H_
#define _REGEX_H_ 1
#endif
#endif

i have updated my php cvs tree.  i realize that the standard snap build
doesn't have this problem, but i can't see why I have this problem.  Can
anyone offer advice on this?  Or is there a win32 buildmeister that I could
talk to off the list for help ?

dave

-Original Message-
From: Dave Viner [mailto:dviner@;yahoo-inc.com]
Sent: Tuesday, November 12, 2002 2:35 PM
To: Php-Dev@lists. php. net
Subject: [PHP-DEV] php4apache on win32 regex problem?


has anyone seen this error on win32 php4apache?

Configuration: php4apache - Win32
Release_TS
Compiling...
mod_php4.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
php_apache.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
sapi_apache.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
Error executing cl.exe.

is there some cygwin package that I need to install in order to obtain the
regex.h header file ?

thanks
dave


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



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




[PHP-DEV] php4apache on win32 regex problem?

2002-11-12 Thread Dave Viner
has anyone seen this error on win32 php4apache?

Configuration: php4apache - Win32
Release_TS
Compiling...
mod_php4.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
php_apache.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
sapi_apache.c
..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file:
'regex.h': No such file or directory
Error executing cl.exe.

is there some cygwin package that I need to install in order to obtain the
regex.h header file ?

thanks
dave


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




RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
well, i downgraded bison to 1.35, and it works fine.  no warnings, no
errors.  not sure what's going on with that, but at least i can build again.
if a bison or win32 expert wants more info, i'm happy to work towards some
resolution.

dave


-Original Message-----
From: Dave Viner [mailto:dviner@;yahoo-inc.com]
Sent: Monday, November 11, 2002 5:16 PM
To: Edin Kadribasic
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] bison error [was: PHP 4.3.0]


i assume this means that the problem i'm having is not reproducible.  if so,
do you have any thoughts on what i can do to fix my build ?

thanks
dave viner


-Original Message-
From: Edin Kadribasic [mailto:edink@;proventum.net]
Sent: Monday, November 11, 2002 5:04 PM
To: Dave Viner
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0]


On Tuesday 12 November 2002 01:25, Dave Viner wrote:
> i got the 1.75 from cygwin, so you should be able to find it.

Yup. Windows snapshot and release build machine has an updated version of
cygwin installed. That version contains bison 1.75.

Edin


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



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



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




RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
i assume this means that the problem i'm having is not reproducible.  if so,
do you have any thoughts on what i can do to fix my build ?

thanks
dave viner


-Original Message-
From: Edin Kadribasic [mailto:edink@;proventum.net]
Sent: Monday, November 11, 2002 5:04 PM
To: Dave Viner
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0]


On Tuesday 12 November 2002 01:25, Dave Viner wrote:
> i got the 1.75 from cygwin, so you should be able to find it.

Yup. Windows snapshot and release build machine has an updated version of
cygwin installed. That version contains bison 1.75.

Edin


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



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




RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
is anyone out there building php source from cvs using win32 ?  if so, what
version of bison are you using ? and can you try using 1.75 ?

dave

-Original Message-
From: Rasmus Lerdorf [mailto:rasmus@;php.net]
Sent: Monday, November 11, 2002 11:28 AM
To: Dave Viner
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] bison error [was: PHP 4.3.0]


Linux

On Mon, 11 Nov 2002, Dave Viner wrote:

> is that on win32?  or linux ?
>
> -Original Message-
> From: Rasmus Lerdorf [mailto:rasmus@;php.net]
> Sent: Friday, November 08, 2002 5:01 PM
> To: Dave Viner
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0]
>
>
> I'm not seeing any problems with bison-1.75 here.
>
> On Fri, 8 Nov 2002, Dave Viner wrote:
>
> > here's the message i posted to [EMAIL PROTECTED] for more help in the
> bison
> > problem.
> >
> > http://www.geocrawler.com/lists/3/GNU/350/0/10107563/
> >
> > I'm not good enough with bison to understand why it produces no error
> > message and yet does not produce a .c file.
> >
> > even reducing the bison command to its simplest form:
> > Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> > $ bison zend_language_parser.y
> >
> > Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> > $ ls -l zend_language_parser*
> > -rwxr-xr-x1 Administ None33095 Nov  6 09:56
> > zend_language_parser.y
> >
> > Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> > $ bison zend_ini_parser.y
> > zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
> >
> > Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> > $ ls -l zend_ini_parser*
> > -rwxr-xr-x1 Administ None 6336 Nov  6 09:56
zend_ini_parser.y
> >
> > Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> > $
> >
> > Still fails.  The zend_ini_parser produces a warning or error at least.
> > zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
> > But I'm not good enough with bison to know how to fix it !
> >
> > dave
> >
> >
> > -Original Message-
> > From: Andi Gutmans [mailto:andi@;zend.com]
> > Sent: Friday, November 08, 2002 2:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DEV] PHP 4.3.0
> >
> >
> > Hey,
> >
> > What's the schedule for 4.3? It seems to be lingering. That said I'd
like
> > to resolve the bison issue before we release it (i.e. make sure that ZE1
> > isn't bitten by versions > 1.28).
> >
> > Andi
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
is that on win32?  or linux ?

-Original Message-
From: Rasmus Lerdorf [mailto:rasmus@;php.net]
Sent: Friday, November 08, 2002 5:01 PM
To: Dave Viner
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0]


I'm not seeing any problems with bison-1.75 here.

On Fri, 8 Nov 2002, Dave Viner wrote:

> here's the message i posted to [EMAIL PROTECTED] for more help in the
bison
> problem.
>
> http://www.geocrawler.com/lists/3/GNU/350/0/10107563/
>
> I'm not good enough with bison to understand why it produces no error
> message and yet does not produce a .c file.
>
> even reducing the bison command to its simplest form:
> Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> $ bison zend_language_parser.y
>
> Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> $ ls -l zend_language_parser*
> -rwxr-xr-x1 Administ None33095 Nov  6 09:56
> zend_language_parser.y
>
> Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> $ bison zend_ini_parser.y
> zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
>
> Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> $ ls -l zend_ini_parser*
> -rwxr-xr-x1 Administ None 6336 Nov  6 09:56 zend_ini_parser.y
>
> Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
> $
>
> Still fails.  The zend_ini_parser produces a warning or error at least.
> zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
> But I'm not good enough with bison to know how to fix it !
>
> dave
>
>
> -Original Message-
> From: Andi Gutmans [mailto:andi@;zend.com]
> Sent: Friday, November 08, 2002 2:34 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] PHP 4.3.0
>
>
> Hey,
>
> What's the schedule for 4.3? It seems to be lingering. That said I'd like
> to resolve the bison issue before we release it (i.e. make sure that ZE1
> isn't bitten by versions > 1.28).
>
> Andi
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




[PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-08 Thread Dave Viner
here's the message i posted to [EMAIL PROTECTED] for more help in the bison
problem.

http://www.geocrawler.com/lists/3/GNU/350/0/10107563/

I'm not good enough with bison to understand why it produces no error
message and yet does not produce a .c file.

even reducing the bison command to its simplest form:
Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
$ bison zend_language_parser.y

Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
$ ls -l zend_language_parser*
-rwxr-xr-x1 Administ None33095 Nov  6 09:56
zend_language_parser.y

Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
$ bison zend_ini_parser.y
zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'

Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
$ ls -l zend_ini_parser*
-rwxr-xr-x1 Administ None 6336 Nov  6 09:56 zend_ini_parser.y

Administrator@DVINER-LAP /cygdrive/d/php/php4/Zend
$

Still fails.  The zend_ini_parser produces a warning or error at least.
zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'
But I'm not good enough with bison to know how to fix it !

dave


-Original Message-
From: Andi Gutmans [mailto:andi@;zend.com]
Sent: Friday, November 08, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] PHP 4.3.0


Hey,

What's the schedule for 4.3? It seems to be lingering. That said I'd like
to resolve the bison issue before we release it (i.e. make sure that ZE1
isn't bitten by versions > 1.28).

Andi


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



-- 
PHP Development Mailing List <http://www.php.net/>
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 <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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



-- 
PHP Development Mailing List <http://www.php.net/>
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 <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP Development Mailing List <http://www.php.net/>
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 <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] automatic credit card processing

2002-07-21 Thread Dave Mertens

On Sun, Jul 21, 2002 at 08:03:38PM +0200, Dominic wrote:
> Hi all
> I try to automatically process cc payment. I use online clearing via a 
> third party
> --> so what I have to do:
> 1. SSL-TCP/IP connection to this third party-server
> 2. perform basic http authentication
> 3. send authorization request parameters to the software (via POST or GET)
> 4. receive + parse authorization response
> 
> 1-3 is not a real problem, but how can I receive the response, before it 
> is printed out to the browser/screen? I know I should get the response 
> string into a variable so the whole procedure is "silent", but how?

Because i don't know how and with what your accessing the payment server..

A nice workaround is to use output buffering. This workaround doesn't work
if your using output buffering globaly (buffering the whole page). 

Just do the following:
ob_start();
execute some output producing functions (e.g., echo "Hello world";)

$output = ob_get_content();
ob_end_clean();

Now you can simply parse the output collected in $output.

Ohh, PHP-DEV isn't meant for PHP USAGE problems. It's a mailing list for PHP
ENGINE related programming (Mostly C thus). Please send your questions next
tim eto the php-general list.

PHP-DEV: Maybe we should hide the PHP-DEV mailinglist address at the list
page or change it name ;-)


-- 
With best regards,

Dave Mertens, Senior Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




[PHP-DEV] event calendar script

2002-07-02 Thread Dave - Technical Support

Hi there, this is my first time posting, so I'm sorry if I'm not following
the rules properly. =) I've set up the event calendar script that
http://www.php.net uses on their front page. The only problem I'm having is
getting the information from the mysql database to the backend.csv file that
it uses. Everything is working properly included the submitting of the
events, and the data is being imported correctly. Has only used this script
before, or maybe has some ideas on what I need to check? Thanks in advance.

Dave


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




[PHP-DEV] searching across all open sessions

2002-06-26 Thread Dave

Is there any way (built in function or otherwise) to search for a value
across all open sessions?  Here's the problem:  A user logs in, a new
session is created and their user_id is saved as a session variable.  10
minutes later the same user logs in through a new second browser window, and
another new session is created.  If the user is using both browser windows,
they may experience unexpected behavior since there may be session values
from session1 that are not set or are different in the new session.

What I would like to do is search across all open sessions for the user_id
of anyone logging in and if their user_id is found then just assign this new
browser their original sesssion id.  Much thanks.

Dave Krewet





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




[PHP-DEV] Re: [PHP-EVANGELISM] ANN: QA & Evangelism Call to Arms @ LinuxTag

2002-06-05 Thread Dave Mertens

On Tue, Jun 04, 2002 at 01:41:44PM +0100, James Cox wrote:
> For all of you who are interested in the way evangelism (marketing) and QA
> are going, or should be going, i'm going to be holding 2 meetings to lay
> stake and discuss the future and direction of the following PHP sub
> projects:
> 
>  php-evangelism and php-qa.
> 
> The purpose of these meetings is for people to present their ideas about
> each, and then discussion resulting in a "Roadmap" (if necessary) stating
> our objectives, and starting on making it happen :)
> 
> See you there!
Unfortunality, i can't make it to the linuxtag this year ;-((

I hope it to make next year. I'm talking with some people of the HCC (Dutch
computer magazine) if it's possible to hold a siminar over PHP. The HCC days
are normaly late november.

I will let you know how it goes.

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




Re: Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Dave Mertens

On Thu, May 23, 2002 at 09:56:22AM -, Vinod  Panicker wrote:
> But what i want is the socket which is used by Apache to send data 
> to the client, which is on a keep-alive connection, so that some 
> other program, or a php script can send data asynchronously to the 
> client.  mind you, the client is a custom developed COM component, 
> not a browser.
First, When a request is processed the processing-part of apache (or other
webservers) are shutdown. Apache can only keep a connection open when a
script doesn't reach the end.

The client (can be  telnet, a custom app or even a browser) request a
resource from the server. The server response on this to send data to the
client. When the data is send, the request is done and the webserver goes
back into listening mode, but the connection isn't closed..

A web-server can never start a asynchroon connection with the client. HTTP
is never meant for 2-way communication. It's a simple request-response system.

I believe that since php 4.2 php has a true socket interface. And properbly
you can use the bind/accept procedures to create a php server. With pcntl
you can fork the process. Because you now have full control over the socket, you can 
also send
asynchroon data over the socket. In fact you have written you're own
server..

I only don't know if php-sockets can handle multiple connections. If not,
use can always create an socket-array, and assign the socket-resource to a
free socket in the socket-array. But this is more the Visual Basic way..

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




[PHP-DEV] [PATCH] Sybase error handling

2002-05-22 Thread Dave Brotherstone

Attached is a patch for error handling with Sybase/MSSQL databases.

Basically it picks up the message and the error number from the
dberrhandler() call.  This means that MSSQL/Sybase RAISERROR calls can be
caught properly in the PHP script.

Any chance of someone committing it in?

Dave.


Index: ext/sybase/php_sybase_db.c
===
RCS file: /repository/php4/ext/sybase/php_sybase_db.c,v
retrieving revision 1.37
diff -u -r1.37 php_sybase_db.c
--- ext/sybase/php_sybase_db.c  12 Mar 2002 20:18:00 -  1.37
+++ ext/sybase/php_sybase_db.c  22 May 2002 13:37:43 -
@@ -88,6 +88,8 @@
PHP_FE(sybase_query,NULL)
PHP_FE(sybase_free_result,  NULL)
PHP_FE(sybase_get_last_message, NULL)
+   PHP_FE(sybase_get_last_error,   NULL)
+   PHP_FE(sybase_get_last_error_no,NULL)
PHP_FE(sybase_num_rows, NULL)
PHP_FE(sybase_num_fields,   NULL)
PHP_FE(sybase_fetch_row,NULL)
@@ -107,6 +109,8 @@
PHP_FALIAS(mssql_query, sybase_query,   NULL)
PHP_FALIAS(mssql_free_result,   sybase_free_result, NULL)
PHP_FALIAS(mssql_get_last_message,  sybase_get_last_message,NULL)
+   PHP_FALIAS(mssql_get_last_error,sybase_get_last_error,  NULL)
+   PHP_FALIAS(mssql_get_last_error_no, sybase_get_last_error_no,   NULL)
PHP_FALIAS(mssql_num_rows,  sybase_num_rows,NULL)
PHP_FALIAS(mssql_num_fields,sybase_num_fields,  NULL)
PHP_FALIAS(mssql_fetch_row, sybase_fetch_row,   NULL)
@@ -146,6 +150,9 @@
if (severity >= php_sybase_module.min_error_severity) {
php_error(E_WARNING,"Sybase error:  %s (severity 
%d)",dberrstr,severity);
}
+   STR_FREE(php_sybase_module.error_message);
+   php_sybase_module.error_message = estrdup(dberrstr);
+   php_sybase_module.error_no = dberr;
return INT_CANCEL;  
 }
 
@@ -279,8 +286,10 @@
 {
php_sybase_module.default_link=-1;
php_sybase_module.num_links = php_sybase_module.num_persistent;
-   php_sybase_module.appname = estrndup("PHP 4.0",7);
+   php_sybase_module.appname = estrndup("PHP 4.2",7);
php_sybase_module.server_message = empty_string;
+   php_sybase_module.error_message = empty_string;
+   php_sybase_module.error_no = 0;
php_sybase_module.min_error_severity = 
php_sybase_module.cfg_min_error_severity;
php_sybase_module.min_message_severity = 
php_sybase_module.cfg_min_message_severity;
return SUCCESS;
@@ -296,6 +305,7 @@
 {
efree(php_sybase_module.appname);
STR_FREE(php_sybase_module.server_message);
+   STR_FREE(php_sybase_module.error_message);
return SUCCESS;
 }
 
@@ -940,6 +950,26 @@
RETURN_STRING(php_sybase_module.server_message,1);
 }
 /* }}} */
+
+
+/* {{{ proto string sybase_get_last_error(void)
+   Returns the last error message from server */
+PHP_FUNCTION(sybase_get_last_error)
+{
+   RETURN_STRING(php_sybase_module.error_message,1);
+}
+/* }}} */
+
+
+/* {{{ proto string sybase_get_last_error_no(void)
+   Returns the last error number from server */
+PHP_FUNCTION(sybase_get_last_error_no)
+{
+   Z_LVAL_P(return_value) = php_sybase_module.error_no;
+   Z_TYPE_P(return_value) = IS_LONG;
+}
+/* }}} */
+
 
 /* {{{ proto int sybase_num_rows(int result)
Get number of rows in result */
Index: ext/sybase/php_sybase_db.h
===
RCS file: /repository/php4/ext/sybase/php_sybase_db.h,v
retrieving revision 1.8
diff -u -r1.8 php_sybase_db.h
--- ext/sybase/php_sybase_db.h  28 Feb 2002 08:26:50 -  1.8
+++ ext/sybase/php_sybase_db.h  22 May 2002 13:37:45 -
@@ -38,6 +38,8 @@
 PHP_FUNCTION(sybase_query);
 PHP_FUNCTION(sybase_free_result);
 PHP_FUNCTION(sybase_get_last_message);
+PHP_FUNCTION(sybase_get_last_error);
+PHP_FUNCTION(sybase_get_last_error_no);
 PHP_FUNCTION(sybase_num_rows);
 PHP_FUNCTION(sybase_num_fields);
 PHP_FUNCTION(sybase_fetch_row);
@@ -70,6 +72,8 @@
long allow_persistent;
char *appname;
char *server_message;
+   char *error_message;
+   int error_no;
int le_link,le_plink,le_result;
long min_error_severity,min_message_severity;
long cfg_min_error_severity,cfg_min_message_severity;



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


Re: [PHP-DEV] Full-duplex communication

2002-05-22 Thread Dave Mertens

On Wed, May 22, 2002 at 10:16:23AM -, Vinod  Panicker wrote:
> The client calls a script on the server - script_a.php using a 
> keep-alive connection.  The script gets the socket from the web 
> server (this is the unknown), and stores it in a database.  Script 
> finishes execution, client reads response, but apache doesnt close 
> the connection since its keep-alive.
> 
> Client wants to call another script on the server, just writes to 
> the same socket.  Script returns response.
> 
> Server wants to send data asynchronously to the client, so a PHP 
> script (invoked from another server) gets the socket of the client 
>  from the database and writes to it.  Client reads from the 
> socket.
> 
> So this is basically a full-duplex connection over HTTP :)
Not quite!

Keep-alive tries to keep a socket connection with the server, but this connection
can only be used to request several resources from the servers (like the
images inside a page). This because setting up a new tcp-connection takes a lot
of time, keep-alive just reuse this connection for another request. The server itself 
cannot
*start* sending data over the http connection, it can only reply on a client request.

What you can do however, is to create a script with an endless loop, inside
this loop the scripts looks if there's new data in a database and if there's
data, it's sent to the client.. You can ofcourse also do other things inside
the loop. 

But you won't need a keep-alive connection for this. Ohh, don't use any out
buffering, otherwise the browser will timeout after 30 seconds..  ;-)

However the server can't switch pages. What you can do, is inside the loop
to access a different page with the fopen function.

Hope this will answer your question,

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




[PHP-DEV] Crasher in 4.2.1 - debugging advice needed

2002-05-21 Thread Dave Brotherstone

Hi,
  I've got a particular script that seg-faults when certain parts of it run
(tested with 4.1.0 and 4.2.1, both CGI and Apache module).

I've done a back trace, included below.

Linux 2.4.18 (Redhat 7.0).

I'm not sure what to do next, as if it is something not free'ing properly,
or free'ing twice (as hinted in the bt), then are there any ways I can tell
where?

Many thanks for any pointers,

Dave.

#0  0x40139566 in chunk_free (ar_ptr=0x401dbce0, p=0x81a5360) at
malloc.c:3131
#1  0x40139334 in __libc_free (mem=0x81a5368) at malloc.c:3043
#2  0x80e7d67 in shutdown_memory_manager (silent=0, clean_cache=0)
at zend_alloc.c:485
#3  0x8062049 in php_request_shutdown (dummy=0x0) at main.c:742
#4  0x80608ff in main (argc=1, argv=0xbb34) at cgi_main.c:776
#5  0x400d9b65 in __libc_start_main (main=0x8060610 , argc=1,
ubp_av=0xbb34, init=0x805f000 <_init>, fini=0x8117fbc <_fini>,
rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbb2c)
at ../sysdeps/generic/libc-start.c:111


Line 485 of zend_alloc.c is the zend_message_dispatcher line

 if (!silent) {
 zend_message_dispatcher(ZMSG_MEMORY_LEAK_DETECTED, t);
 }


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




Re: [PHP-DEV] bugs: try newer version (?)

2002-04-28 Thread Dave Mertens

On Sun, Apr 28, 2002 at 03:51:03PM +0100, James Cox wrote:
> > Is there some policy about when it's ok to pick "try newer
> > version (bogus)" from the quick fix bug menu? Is there
> > anyway to automate that, so when people report bugs in
> > 4.0.6 they can immediately get a response telling them to
> > upgrade and see if the problem has been fixed? There are
> > still 484 open bugs for versions 4.0.x.
> 
> Given that we now recommend >= 4.1.2 for security, i think we can safely
> mark all before it as try newer version. I wonder, however, if there are
> still people out there using 4.0.6 because of their custom extensions?

Most companies only upgrade their software if there is a bug that is influence
the website their programming/hosting. Otherwise they don't upgrade that
fast.

"If it aint broken, don't fix it" is really used in production environments.
We even have webservers that run php3, just because php4 isn't needed..

Most php servers at my work are running php 4.0.6. We only patched the
upload-patch to the php-tree and re-installed php-4.0.6. 

So yes, their are still people that are running not the latest php version..

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




[PHP-DEV] creating files on a remote host

2002-04-23 Thread Dave

Is there a way to create a file to a remote host.

IE: I have a php script on www.somedomain.com for example - and I want to
fill out a form on this php script and make it create a file called
"index.html" on say www.someotherdomain.com for example.

I have admin and root access to BOTH domains.

Is there a way I can popen or fopen a file using ftp username and password?

The end result - I want to create index pages on the fly by filling out a
form - which will in return create the page for my other web sites.

So far, I have successfully created the index page.  But to get it to the
other site I am manually downloading the index page to my local computer,
and uploading it to its new site - Not the most effective way to do things.

Any ideas???
Thanks in advance
Dave




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




Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-22 Thread Dave Mertens

On Tue, Apr 23, 2002 at 12:44:17AM -0500, Brian Foddy wrote:
> On Mon, 22 Apr 2002 18:56:28 -0700 (PDT), Rasmus Lerdorf wrote:
> 
> >> As for Apache being at fault too, they very well could be.  But the
> >> fact remains that PHP runs INSIDE Apache, and Apache starts fine without
> >> PHP, hence PHP must be at fault.  Simply stating the obvious facts from
> >> the public point of view.
> >
> >Well, with that sort of logic we are completely screwed and might as well
> >just give up.
> >
> >Public perception ranks very low on the priority list.  99.8% of users
> >couldn't care less about Apache2 at this point.  PHP 4.2 has been slow
> >enough in coming.  Holding it up longer for the .2% of users it might
> >affect makes no sense.  Those users can experiment with the snapshot
> >releases.
> >
> >-Rasmus
> 
> 
> Ultimately, I'm just trying to look out for other PHP users,
> not me.  People who
> don't follow these mailing lists.  They see on the net that a new
> improved Apache is released.  They check the PHP web site/freshmeat
> and see a new version that claims support for Apache, experimental
> tho it may be.
So, i guess that you we're also amongst those people who used Linux kernel
2.4.0?? Apache 2.0.35 is the first 'official' release of Apache 2.
I advise you to wait at least for Apache version 2.0.40.. In August PHP
4.3.0 comes out (according to the planning) and will have better support for
Apache. But working with the CGI version of PHP works fine with Apache 2.
Only the module version offen crashes.

> So they download both and start building.  What do they get?
> Core dump.  Usually before people will start opening trouble 
> records or searching bug databases people will spend several
> hours re-rebuilding, double checking proceedures, etc, etc, etc.
> They've done everything correct.  Its supposed to work, says right
> on the web page.  Why does this core dump?
I hope that people who're running Apache and programming PHP, know what
they're doing.. 

> They finally open a bug report only to have it immediately reply
> with...  "Yes, we know.  What we really meant by 'Experimental'
> was it will core dump".  That doesn't sound very good.
Like i said, only the DSO version of PHP crashed with me. On IIS it's
stable, on Apache 1.3.xx it's stable (You do know that apache is supporting
more than 30 webservers right?!)

If you want to use Apache 2 and PHP, than compile PHP as CGI-module and it
will go fine..

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




[PHP-DEV] php extentions as module

2002-04-19 Thread Dave Mertens

Hi,

I was wondering. PHP is within our company compiled as a apache module (libphp4.so).
But i want to do some experiments with domxml. Therefor is it possible to create an 
extention as a module and load it with dl()?

We're running Linux (Debian).

Thanks,

Dave Mertens

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




Re: [PHP-DEV] Quicktime movie

2002-04-19 Thread Dave Mertens

On Fri, Apr 19, 2002 at 03:16:46PM +0300, Rosen Marinov wrote:
> Thanks,
> but my problem is thath when Quicktime plugin start loading movie, it don't
> show nothing ( except Quicktime logo ). I've seen from another site, thath,
> Quicktime plugin shows controller and part of movie were downloaded.
> Is possible this to be a settings, when create movie - i.e. streaming ?

Like i said before, this is not the correct list for QuickTime problems. This is a PHP 
list. Try Google to find more resources for QuickTime.
Maybe you can even try the Adobe website..

Good luck,

Dave Mertens

BTW: Don't forget that PHP isn't playing your quicktime movie, the browser is!

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




Re: [PHP-DEV] Quicktime movie

2002-04-19 Thread Dave Mertens

On Fri, Apr 19, 2002 at 03:05:39AM +0300, Rosen Marinov wrote:
> Can someone tell me how to put on WEB page QuickTime movie ?
> I tried with some code, but nothing happens... !

First, PHP can do a lot, but i don't think PHP can create QuickTime movies. 
This is more a HTML question than an PHP question.

But here is your answer:
There are three tags (as far i know) to embed QuickTime (But also avi, mpeg, etc) 
movies into a webpage. They're browser depended.

Microsoft :


Netscape:


If you want to use both:






Note that the visitor of your site need a quicktime plugin. You can also just put the 
movie url in a  tag. Or show it to your users in a popup (ofcourse only 
when a user wants this, most people don't like popup's).

But again, this is not the right place to ask questions about video embedding in a 
webpage.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-18 Thread Dave Mertens

> > > > > I for one have been using Java and .Net for all my applications
> now.
> > > >
> > > > Which is it, "java most of the time", or "java and .net
> > > > for all my applications now".
> > > >
> > > > Big difference.
> > > Is there alot of this sort of bickering on this mailing list, or is this
> > > out of the norm?
> >
> > He, you barch in, telling the PEAR community the PEAR sucks big time, and
> > you find it peculiar that some people are a bit picky about you??
> Look, with that attitude, no wonder why it doesn't any better.
He, what would you to if i told you that the project you've worked on for more than a 
year totaly sucks?!

Every day there are commit thats make pear better and better. But don't forget this is 
a company project where there is a management that is telling what there have to be 
done.
I know that sometimes it a problem. But people that ONLY saying pear sucks aren't 
helping.

Write some patches, and if you think PEAR DB is to heavy. Write a light version of it. 
Nobody is keeping you from make pear better. And if you have ideas how things might be 
better, write them with a friendly tone.
Because barching in isn't helping anyone.

So stop insulting people and do something about the points that you're trying to make. 
We want no words, we want deeds!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-17 Thread Dave Mertens

On Wed, Apr 17, 2002 at 07:19:52PM +0200, Marcus B?rger wrote:
> And who wants to use MS in critical environments or with critical Data? 
> Remember
> MS fail to secure their own DNS servers or who knows what MS is capable to view
> on your server? Before XP they did not implement a full tcp/ip stack and 
> noone knows
> what they are doing on the net (besides themselfs - i hope). And what about 
> the
> resources of Windows - you must have lots of money to be fast with MS Systems.
Aahh, the money. OK, what costs a server?? Let's say a server costs 7500. 2 X 2 
loadbalanced servers (1 website, 1 database).
That's about $30.000. My boss is asking about $100 per developer a hour! 
A project team within our company counts 4 developers, 1 development manager and 1 
contact for the customer.
30.000/6 = $5.000. So if every person on the projecs makes 50 hours the 4 servers are 
paid! That's 5 and a half day programming.

Most projects take months before the total projects is deployed with all the stages.
Really, the resources needed Windows don't cost that much for companies, not in 
comparisment with development costs.

Any idea what a requirement study (needed for every project), a functional and a 
technical design costs? And than people even haven't started programming!

Both Windows as Linux has some disadvantages. I won't deny that. Do you every read 
security-focus?? Linux has just as much security bugs as windows has!
I work with both platforms, both have their charms. 

And in critical enviroments even linux isn't used. They have their own unix os. I even 
doubt that a space shuttle is running PHP.. (They also don't run Windows ASP either).


> As said before by Kristian Koehntopp there is a large amount of LAMP 
> installations.
> Because many people do not use XML/SOAP why should they? Not everyone has
> to sell something on his site(AND some XML parts are in development 
> even tody).
So, more than 90% is running MSIE. Does that mean i don't have to care about Netscape?
LAMP installation are populair with ISP and hosting providers. Because LAMP doesn't 
costs much.

Just in my case - We only have MS database servers at our company. Why, because 
Learning all the ins and outs of postgresql or MySQL takes a lot of time.
PHP has very good support for MS SQL Server. But MS SQL Server is cheaper than Oracle.
So, we have only 2 database administrators in stead of 4 (postgresql, mysql, oracle 
and MS SQL).

> When time comes and thinks like SRM become public maybe PHP gets the 
> capabilities
> to run a web-application on multiple machines - then we will have the need 
> for full SOAP
> integration. Before that time we would only provide MS/Java folks with 
> rapid prototyping
> utilities...
We now already running PHP webapplications on multiple machines. All application data 
is placed on a nfs partition which is used by all the machines.
SOAP between you're own layers is a bit overkill.

Don't get me wrong. I like PHP. But please don't say that ASP is bad.
Because if it were so bad, why does it popularity grows. With good administrators 
windows is also stable.
And if you're not installing the distribution updates, a linux system is just a much 
as exploitable as a Windows machine.

The longest uptime allowed within our company is set to 180 days. After that the 
hardware must be inspected. And because we're running clusters nobody cares.
With that inspection servers get also a full upgrade. Also all coolers are replaced. 

But these kind of discussions are useless. Most of those threads were started in the 
early 90's. 
And beside of that, it costs your energy if you reply on this one ;-) Use your energy 
wise, make PHP better!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-17 Thread Dave Mertens

On Wed, Apr 17, 2002 at 04:22:00PM -, Dan Hardiker wrote:
> > Ken Egervari writes:
> > > > I for one have been using Java and .Net for all my applications now.
> >
> > Which is it, "java most of the time", or "java and .net
> > for all my applications now".
> >
> > Big difference.
> Is there alot of this sort of bickering on this mailing list, or is this
> out of the norm?

He, you barch in, telling the PEAR community the PEAR sucks big time, and you find it 
peculiar that some people are a bit picky about you??

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:08:38PM -0400, Ken Egervari wrote:
> The issue with the phpclasses repository is that none of the classes really
> 'work together' much like the Java and .NET classes.  As you have known,
> extremephp.org was a project I started awhile back to do such a framework
> (well, actually a lot of subframeworks meshed into one).  Nonetheless, this
> hasn't happened with PHP.  Also, the people who submit to phpclasses.org
> don't have to be super architects.  This is good and bad.  The bad thing is,
> many of the classes there aren't as good as they could be because 1 mind was
> behind the wheel and lots of times the classes even brake standard OO design
> heuristics.  When someone with a lot of design experience looks at the
> classes, they say, "hmm.. i wonder if all the work done on PHP is this
> questionable.".  You can't wind everyone, but not too much work has been
> done to make solid OO frameworks and tools.  I tried.. but the project is
> too damn big.
I don't think that their's something wrong behind PHP. I never saw such a clean and 
easy engine as PHP in fact.
With the projects i see today at the company i work, it's not about webpages anymore.
Customers want these days webapplications, connected with mostly several back-ends.

Most companies converted their back-ends from EDI, CSV and other formats to XML. And 
most of it can be requested with SOAP.
A big role in this is Microsoft. Microsoft is really pushing XML and SOAP. Which is 
for everybody a good thing.

The only thing that i need is a good XML parser in PHP. And after MS, came Sun with 
Java2 webservices. So why wouldn't PHP follow.
XML is a big part of the future, and PHP misses a good XML Parser.

Futher, the .NET classes are also 'collections' of classes. Each collection has it own 
related classes.
And where .NET has base classes like data, net, xml, text, etc, PHP has NET_, XML_, 
PEAR DB, etc.

Are pear is still growing. And pear is more variated than the .NET base classes.

> I don't think it has too much to do with bad Fame.  For instance, several
> large companies still use php, including the work I did on altavista and
> Rackspace and audiogalaxy use PHP as well.
I'm not saying PHP has a bad fame. I only saying that most customers even don't know 
the name PHP. But with all the MS bugs, everybody knows the Microsoft tools..
So even the bugs is helping Microsoft.


> Sure, more well known sites that
> use PHP would increase its popularity, but what I really think is that PHP
> needs a real platform that makes it even faster to develop websites and
> client-side tools - or it's going to fall behind.  It's really as simple as
> that.
Websites are already fast to write in PHP. Web applications are harder to write in PHP.
In ASP i do a lot with the application session. It holds important application data. 
In PHP i simulate this with an serialized array that is read from file every request.

And maybe i'm not the right person to say what's good and not. I work a lot with both 
ASP and PHP. And i only tell what i'm seeing.

That's all
And for now, good night everybody!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 11:27:36AM -0400, Robert Cummings wrote:
> I keep hearing a lot of "my company this in microsoft" and "my company that"
> and "blah blah blah". I'm sorry, but if the fullfillment of all your dreams
> are in your company then you live a sad, sad life. The future is what you make
> of it, and each and every person has the power to contribute to change what
> may be.

He, i'm doing great projects for my company. And i don't mind programming into a other 
language than PHP.
I only always try to get PHP into the picture. Just because i like PHP. It can do so 
much, but i also see that it's getting behind.

And if Zend is writing the ZE2 engine that thay say in their PDF i think that PHP 
still has a future.
But into that same future belongs a good XML parser.

And i heared that there are currently 2(!) SOAP projects within PHP. So i think that 
part is covered.


That's all. I only have a problem that i can't express myself that well.. ;-(

Dave Mertens



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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 05:09:57PM +0100, James Cox wrote:
> I hear you on the call to make PHP more recognisable. That's why we have the
> php-evangelism project, where we are putting together documents and facts as
> to why choose PHP over other languages. Really advocating PHP. I invite
> you - and anyone else interested - to join.
I must say this is the first time i heared about that project.. And how can i join the 
program?!


> Secondly, as to why PHP sucks because it doesn't have a soap extension (bla
> bla bla). It doesn't suck. The beauty of PHP is that it carries from C
> something really special. A lighweight basic environment for getting things
> done. You don't need ext/soap or ext/java -- you can do a whole load of
> these things without needing to have to leave PHP userspace, as Shane has
> demonstrated with his excellent PEAR SOAP classes.
> 
> That's the beauty of PHP -- you can do everything within the language. We're
> even getting to the stage in which you can use PHP to write things that you
> would traditionally use perl, or c (eg, irc bots, email handlers, even
> ide's - with php-gtk) to handle.
That all great. Almost every company (even google) has a SOAP interface. SOAP relies 
for a big part on XML.
We (ISM, the company i work for) write e-commerce, b2c, b2b, extranet and portal 
systems.
We have to connect several interface to the website. And SOAP makes that much easier.

And i know that PHP can also writes console apps with forking, getopt, etc. 
What i really miss in PHP is a good XML parser. And because i've been working with the 
MS parser for 2 years now, i'm not completely nutral. But i must say that working with 
the MS parser is realy fun.

And this like variable variables are quite unique. Also what i've read about the ZE2 
engine (destructors, private vars) really interests me.
I only hope that their will be also an property mechanism. But with the private i can 
force the use of $object->setX and $object->getX.
Also static variables are a must. Overloading is a keyword these days with .NET

And because isn't the booman as i'm descriping him, he's writing out a company contest.
We (Linux/kde/php) get a Sharp Zaures and the ASP (Win CE + .NET) get a HP Jornada.

Both teams have to write an extranet for the handhelds. But i think kde will be 
replaced by gnome, there's isn't PHP-QT yet..
Both extranets needs to be extendable to fit later requirements. For now kept secret.

And the most important rule. Each team must make an API for import/export the data 
hold by the applications. Direct DB access is forbidden.
The winning product will be used in a warehouse enviroment.

My change to proof that PHP is still these days a good tool. Oh both teams exists of 4 
developers to keep it fair.

> It has been mentioned before -- "what is there left to do to PHP?" -- and I
> believe that we could just fix up all the bugs left, and then work on
> writing add-ons in pecl or pear. Really, lets stop turning this language
> into bloat-ware with all the latest plugins and gadgets (that make other
> languages hell to learn), and stick with our original principles : and easy
> language to learn and extend.

But there's a feature that could solve the bloat-ware, namely DL. Don't put everything 
static in PHP, but more in a module way.
Like all the dll's that are supplied with the ISAPI binaries.

And ISM (the company i work for) already wrote an application/session/page RPC server 
to maintain states. The only problem is that my boss doesn't let me commit the RPC 
server ;-(

But i will stop writing negative about PHP.. But i still believe that PHP needs to 
keep up with other languages.

Dave Mertens


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 11:20:26PM +0800, Alan Knowles wrote:
> I know this is going nowhere :) but anyway - its late here and I've got 
> a few secs to kill
> 
> Ask your boss, how often has he done a project using microsoft tools, 
> and its been seriously delayed because they found a serious bug in the 
> microsoft tools, that had to be worked around.- if he answers never i 
> would be amazed !
I nevery experienced any bugs related to ASP. Most bugs are related to security issues.

> Delayed = late delivery = unsatified customer = bad reputation = no more 
> contracts!
We (ISM) are running the one of the most visited webshops in the world 
(shop.kazaa.com, a third party shop of the Free Record Shop company).
It's running on 3 webservers and 1 database server. And it's all programmed on the 
standard ASP package.

And the CMS system we now have is eating my PHP ground away.. As you might know, 
soccer is very big in Europe. We're also running with the same ASP-code the 
'voetbal.nl' site.

And to be fair, most big sites are running asp these days.

> The difference with PHP (and perl,pike,python, ruby..etc), is that 
> when there is a problem, your project is not delayed, you have full 
> access to the source, you can find the problem, fix it and carry on with 
> minimal delays.. - no workaround. - no code thats going to break on the 
> next MS update!
And you think fixing the PHP don't take time.. I don't have the time to fix the 
problem. So even than i have to wait till it's fixed.


> This is the core to the reason behind why all of these languages are 
> better than c#/java - you are empowered to solve your own problems, 
> rather than relying on 3 levels of technical support and promises that 
> it will be fixed and wont break your code.
And that's also the weakness behind those tools. A PHP (scripting) developer mostly 
can't fix the C code of PHP.
So he's also depended on other people.

And these days microsoft is taking bugs very seriously. Ok, Microsoft is now creating 
a lot of patches. And they do it fast.
When i bug is reported and they can reproduce them it mostly is fixed within a month.

> the logic is in the philosophy not the marketing = no seminar is ever 
> going to solve this problem :)
I'm only trying to say (here we go again..) that it's hard to defend PHP in a 
microsoft company.

But it's not impossible. The fact that i can commit to PEAR says enough.
I hardly program in my free time. That time i'm usinf for my social life.

And here it's almost 18:00 (CEST) so i'm going to play some soccer.

Happy programming!!
Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 10:54:33AM -0400, Ken Egervari wrote:
> a) no enough are learning php which in itself, says PHP is not doing a good
> enough job promoting the language
And that's the problem. PHP isn't promoted anymore. Not in the way .NET and Java are.
2 years ago i convinced my boss to use PHP, but these says MS and Java can do the same 
stuff as PHP.

So how do i have to justify the use of PHP if .NET is doing the same. But at my 
company there are in total 6 PHP developers, 12 java and 39 ASP developers.

All the programmers are MCSD certified. Even the PHP developers! Oh the PHP developers 
have also a brainbench certificate. The Java guys are also Java certifified

So everyone (in the company) knows the MS tools. But only 6 PHP.  And with these facts 
my boss choses for ASP/.NET

> b) there actually needs to be more support for PHP software in comparison to
> .net and java applications.
First, the PHP documentation is great. But that's all.
Did you even seen what MSDN and TechNet are providing. honderds of cd's with 
documentation, articles, code samples, columns and the latest version of the most 
important MS products.

And because i like PHP i'm still promoting it within my company. But no-one is helping 
me!!
The lastest thing my boss read about PHP was the MIME bug.
 
And about the trainings. You're crazy thinking knowing the language is enough. If 
you're buy 3 books about PHP. They will all learn you to program in PHP.
But all three in a different way. And the more ways you know to solve a problem, the 
better.

And those training provides you with that knowlegde.
And as long microsoft is giving away those free training (not briefings) i'm very 
willing to take them.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:57:26AM -0700, brad lafountain wrote:
> > --- Dave Mertens <[EMAIL PROTECTED]> wrote:
> > But the fact the PHP don't have a proper XML parser, only a scripting SOAP
> > parser 
> 
>  Well i currently am working on a soap c extension for php (ext/soap). Its
> pretty fast. And with other technologies like ext/session and ext/msession I
> have created a way to create a cluster of soap object with each soap request
> not needing to got the same machine. My extension is in a 'alpha' stage right
> now. I am working on a website and docuementation right now. After that im
> going to clean up the code and release an alpha release. I'll definly email
> this list when i get something i want to release.

I didn't know there was an native SOAP parses in PHP. I hope it will become production 
soon, so i can start using it.

But than on the other hand XML is still very poor in PHP. And the relation between 
SOAP and XML is very tight.

But i'm not trying to trap someone into the floor, i'm only saying what i'm facing as 
a PHP developer in a company that is a Microsoft partner.
See it as a coca-cola agent who likes Pepsi. It's hard to sell Coca-cola when you like 
Pepsi.

But i'm a Pepsi agent that is trying to sell Pepsi to the Coca-cola factory!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 05:40:19PM +0300, Andi Gutmans wrote:
> At 07:27 16/04/2002 -0700, brad lafountain wrote:
> > > And next week i have a special C# traning for PHP developers. Offered 
> > free by
> > > Microsoft.
> >
> >  alls i have to say is WOW. This is one pathetic attempt by Microsoft.
> 
> I wouldn't call it pathetic because these things work.
And of these things work. We have 2 fulltime PHP developers and 4 part-time PHP 
developers which includes me. And with part-time i mean, those developers also write 
ASP, C# and Java code.

And ofcouse i'm going to such trainings. Maybe i even learn something.
And oh, i'm also a MSDE programmer. That's was a requirement of my boss.

My job title says that i'm a Technical project manager. But i'm lucky i'm still 
program. Other tpm's are only busy managing their projects. 
But i'm a bit special. I know PHP! And that makes that i'm still program.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
> > And next week i have a special C# traning for PHP developers. Offered free by
> > Microsoft.
> 
>  alls i have to say is WOW. This is one pathetic attempt by Microsoft. 
Yeah, but are there any professional tranings for PHP? Do you hear of PHP? 
That's the problem i'm facing. I think PHP is great, i really am.

But the fact the PHP don't have a proper XML parser, only a scripting SOAP parser 
makes it for my boss easy to choose for ASP/Java in stead of PHP. And what can i do 
about it, absolutely nothing!
I don't have the knowledge to make PHP itself better. That why i submit as much as i 
can (and allowed) to PEAR.

Hoping that it will end as a set of foundation classes.

But now, all new projects are done with ASP. And why? Because Microsoft has a damn 
good marketing machine.
They even have now commercials for .NET! 

And about the training. Microsoft knows that PHP is getting behind and they are saying 
that .NET can do almost everything what PHP can and more.
I can only say that i hope ZE2 will change this. But i have a hard time on my work 
defending PHP.

Yeah. When a company becomes a Microsoft Partner you get a lot of MS licenses for 
free! Buy MSDN Universal and you get more programs for Free.
And the company i work for is a gold partner. We have 100 free licenses for XP! Why 
use linux??

2 years ago PHP was leading egde. I hope that the ZE2 engine makes it a leading 
language again.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Mon, Apr 15, 2002 at 03:40:15PM +0300, Andrey Hristov wrote:
> >
> > I really have to fight within the company i work to keep PHP. Do you know what PHP 
>really needs? Good native XML and SOAP
> support..
> > Without that it's very hard to convince my boss that PHP is the right tool for the 
>job.
> >
> > I develop for a living. And i'm not only programming in PHP. I do also Java, VB, 
>C# and a little C. And i have to say that even
> with the high license costs of Microsoft, they are providing a solid developer base 
>with good support from MSDN and Technet. You
> can't around it and that is why my boss want to use .NET. Ever saw an ad for PHP?? 
>You don't read of PHP.
> 
> The XML-RPC extension supports SOAP at some point and it is transparent to the user. 
>No matter if it is XMLRPC request or SOAP
> request one thing is done. Of course it is not final and relies on the xmlrpc-epi 
>library, thus the extension is just a wrapper.
> Probably some efforts can be made in the development of xmlrpc-epi. I am sorry that 
>I am not too proficient in C otherwise I would
> help.
> But reading an article on /. and one on ZDnet about web services disturbed me 
>because IBM and MS may patent some of the roots of web
> services. As You may know MS was one of the companies which helped the evolvement of 
>XMLRPC and its extension SOAP.

I know that there are RPC and SOAP classes. But that is not the point that i wanted to 
make.
What i'm trying to say is that companies never hear about PHP. OK, they hear about the 
MIME bug and did you know what my boss said??
You see, PHP is just as bad as ASP, so why use PHP and not ASP?

But only having the classes and documentation for it isn't enough these days. PHP is 
getting behind on .NET and Java(2). But i love PHP. I see it as C for the web.
I use a C writing style, weird anough java extending, and i compile it (Zend encoder).
And PHP is more multi platform than Java (ok, php won't run on your microwave).

It's a hard world for a PHP developer in an Microsoft company/world. I only think that 
SOAP support should be native and must have a much better XML support (Ever looked at 
the MSXML parser). Than it might be able to compete with .NET and Java.
And next week i have a special C# traning for PHP developers. Offered free by 
Microsoft.

And because these type of actions of Microsoft i'm lossing grip on my boss to use PHP. 
So please, keep PHP the best!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-13 Thread Dave Mertens

On Sat, Apr 13, 2002 at 11:57:13AM -0400, medvitz wrote:
> The concern I have is that they sell perfoamance enhancing products.  
> Because they are selling these, I worry that performance in the base Zend 
> engine will not be / is not a primary concern.  I think that performance 
> should be a top priority for the 'base' engine.  People outside of Zend are 
> contributing a good amount of time to creating extensions, writing PEAR 
> modules, and promoting PHP, and , in my opinion , these efforts are being 
> used by Zend who are holding back on performance.  
> 
> Yes... the optimizer is free.  But it doesn't always have to be.
> 
> I like PHP, I use PHP, I use PHP for clients work, so yes I make money 
> off of PHP.  I expect that the Zend psople can as well, without holding 
> back on the community that helped them get where they are today.
Even PHP3 has a Zend engine (0.5). Most developers these days started with Version 3.
PHP2/FI wasn't mature enough for companies.

For companies where i work for it's very important that there's a company behind PHP 
like Zend. Zend is now writing ZE2. They continueing the work they all doing for years 
now.
Further the API  of the Zend Engine is open. So everybody could write a 
program/library like Zend Accelerator.

The only problem is that the products of Zend have a very low price in comparisment to 
other development platforms. Writing them yourself would costs you more.

I even think that without Zend there wasn't PHP anymore because they're not only 
writing the heart of PHP, they also sets the goals for PHP. At that part is very 
important of companies.

And they're not forcing you to buy their products. But most companies do, because it 
improves the engine.
And maybe if Zend is making enough money with PHP that can actually really promote PHP 
as a mature language like Microsoft and Sun are doing.

But i don't want to critismize you. I understand you completely. Because for my own 
site i can't eforth the Zend encoder and Accelerator. And than i wish that those 
products where for free. But noting is this world comes for free. Not even open-source 
products. Oh yes, the products are free. As far as i know there arent programs for PHP 
like there are for ASP/JAVA. 
Brainbench was offering some certificates for PHP4 developers. 

What i'm trying so say is simple. PHP needs a 'commercial' boost and Zend is providing 
it. Because like is said in other threads, PHP is now mainlt a tool for dynamic 
webpages. But these days customers want web applications like CMS systems and 
integrated back-ends with other companies and not only a homepage with some dynamic 
features like a guest book.
All major benefits that PHP had on Microsoft ASP is now gone with .NET C# and VB are 
providing the same functionality as PHP is.

I really have to fight within the company i work to keep PHP. Do you know what PHP 
really needs? Good native XML and SOAP support.. 
Without that it's very hard to convince my boss that PHP is the right tool for the job.

I develop for a living. And i'm not only programming in PHP. I do also Java, VB, C# 
and a little C. And i have to say that even with the high license costs of Microsoft, 
they are providing a solid developer base with good support from MSDN and Technet. You 
can't around it and that is why my boss want to use .NET. Ever saw an ad for PHP?? You 
don't read of PHP.
If you're not following the PHP mailingslists you know shit..


> I've got some biases here.  I was a subscriber, for a time to the 
> developer's pachage that they had towards the beginning.  For $600 a year I 
> got the Encoder, the debug server and 2 client licenses.  They had a pay by 
> month option and I selected this, as my company wasn't going to reimburse 
> me for this expense.  When my bank got bought and I had to get use a new 
> card to keep up on the payments no one could do it.  I emailed the people 
> who handled the credit card transactiosn, and I emailed Zend.  I got no 
> responsse what-so-ever, but a lot of emails telling me they couldn't bill 
> my card (all of which I replied to asking how to change my card info).  I'm 
> glad you have had good expeirience with them, 'cause I haven't.  And the 
> package that made the mose sense to me, they no longer offer.  
I don't do payments for my company. I'm not allowed to do that ;-(

But i have a boss that really have an open mind. He tries several things. And because 
i said that i wanted the Zend accelerator because it's speed up the web application he 
bought it immediatly.
But we build PHP sites without the Zend tools.

The Zend tools are only installed on the production server. That way we're forced to 
write
efficiant code. And because our developing enviroment is quick (

Re: [PHP-DEV] Let's fork GD!

2002-04-13 Thread Dave Mertens

On Sat, Apr 13, 2002 at 12:46:56PM +0200, Daniel Lorch wrote:
> >> why not replace GD by imagemagick which is better anyway?
> 
> > Have you looked under the skirts of ImageMagick?  It is one of the
> > poorest-written libraries I have seen.
> 
> Have you ever tried to do something productive with GD? It is one of
> the poorest tools I have ever seen.
> 
> Seriously: imagemagick can do *ALOT* more than GD.

If you think that imagemagick is great, so don't you write an extention for it 
yourself.
Other developers can deside on buildtime which image library they use.

But to be onest with you, i don't have any problems with PHP/GD. Only building GD with 
PHP is sometimes a nightmare, but therefor we have systems management  ;-)

Dave Mertens


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




Re: [PHP-DEV] Re: The PHP Platform

2002-04-13 Thread Dave Mertens

On Sat, Apr 13, 2002 at 12:40:49AM -, Jim Winstead wrote:
> yes! the new build system that sascha introduced wasn't a move forward.
> stig (and the large cast of others) working on building the pear 
> infrastructure aren't moving forward. rasmus is standing firm as he
> looks at integrating the gd library more tightly into php. andi (and
> others) are blocking progress with all that work on the new zend engine.
> i wish derick and jani would stop building things like the build tracker
> at qa.php.net to make the qa process go smoother. i wish yasuo would
> stop working on the postgresql and session extensions and just give it a
> rest. that crazy andrei, creating things like the aggregate and overload
> extensions -- he needs to stop holding us back! don't get me started
> about wez and all that damn streams stuff! (do i need to continue?)
+1000!!!

Dave Mertens

(You should become a book writer Jim ;-) )

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




Re: [PHP-DEV] The PHP Platform

2002-04-13 Thread Dave Mertens

On Fri, Apr 12, 2002 at 07:32:47PM -0400, medvitz wrote:
> The issue I have with PHP is that the people in charge have reasons for not 
> implementing performance enhancements in the base code.  They charge a fair 
> amount for add-ons that increases performance drastically.  I could 
> actually argue that extensibility and performance on the back end aren't 
> what they should be for this reason.
> 
> Not that I want to make enemies here, but I think this is a realistic 
> criticism.  Not to mention that the Qt license that is used prevents anyone 
> from making extensions and selling them w/o an additional license from the 
> Zend people.  So they are able to make money off of the hard work of all of 
> the module contributors, which I think really blows.

So if i understand what your saying you don't like that fact the Zend had write an 
(very) 
good engine for PHP4 and now is making some money with it??

Don't forget Zend is a commercial company that is doing a lot for the open source 
community.
Without them you didn't had PHP4! 

Without all the Zend optimalisations (but with the free Zend Optimzer (You've 
installed it, right?!)) PHP4 has a good performance.
With the money they make with their products like Zend Encoder, Zend Cache, etc they 
can continue developing on the Zend Engine.

They don't force you to but their products. They only say that they can really speed 
up your code.
Companies where i work (a official gold microsoft partner  ;-(  ) has also bought the 
Zend products.

My boss thinks the Zend products are very cheap in comparisment with Microsoft 
products.

Microsoft is doing the same thing. They provide you with a 'free' IIS webserver, but 
they
have also products that enhance IIS like Commerce Server, Content Server, etc.

The fact that a commercial company like Zend is working on PHP is for a large number 
of companies very important.
Most open-source projects don't have a proper helpdesk. Zend is providing a very good 
helpdesk. 

But all this have two sides. While we (PHP developers) build upon PHP4, and make money 
with the applications we write with it. And Zend is making money with other Zend 
products and they make sure PHP is good enough for companies.

So don't trap Zend into the ground. Because of them you can program OOP in PHP!

That all from me..

Dave Mertens

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




[PHP-DEV] Changing password cvs account

2002-04-04 Thread Dave Mertens

Hi,

how can i change the password of my cvs account. I lost my password, but because i'm 
still logged in the cvs tree, i can still develop code.
Who do i have to contact for my CVS account. Asking for a new CVS account seems not 
the way to go..

Thanks,

Dave Mertens (zyprexia)

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




[PHP-DEV] 8 byte variable

2002-04-03 Thread Dave Mertens

Hi,

Are there variable types in php that are 8 bytes long?? 
I need to do some calculations with numbers that are 10 to 12 digits long?

In Visual Basic is abused a currency type (which can store numbers till 15 digits).
Is the double variable type in PHP 4 or 8 bytes long and can i use unsigned doubles??

Thanks,

Dave Mertens

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




Re: [PHP-DEV] codenames (Was:Preview version of Zend Engine 2 powered PHP)

2002-03-31 Thread Dave Mertens

> > > > Codenames are cool, but using our own names is no-so-cool.  We should
> > > > pick a theme though, but please not Australian wildlife (we're already
> > > > using that for the alltheweb.com frontend ;-).
> > 
> > -1 on code names at all.
> > 
> > What came first woody or potatoe?  You can't tell from the name.  There
> > is no doubt 4.2.0 is newer than 4.1.6.  Why introduce unneeded
> > ambiguity for those who don't follow PHP closely.
> 
> Oh come on... some people just don't have any sense of humur at all. Of 
> couurse we wouldn't remove the version numbers altogether.

I agree with that! Codenames are also more handy for programmers that for end users. 
And codenames are also easier in general conversations. 
It's easier to refer to codenames that to version numbers in real life. Why did you 
think that Microsoft called Windows 'XP' and not Windows 6.0?? Why do we use domain 
names and not IP's. Simple.. Names are much easier to remember than numbers.
But on the otherhand, codenames are mostly only used by commercial companies. There 
are only a few *nix projects that have codenames.

But he, that only my view on the world  ;-)

Dave

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




Re: [PHP-DEV] codenames

2002-03-31 Thread Dave Mertens

On Sun, Mar 31, 2002 at 03:32:13PM +0200, Daniel Lorch wrote:
> how about codenames 'chicken' and 'egg' ?
> nobody will ever know what came first :)

That one is very simpel.

God put the chicken on earth, juts like he put Adam and Eve on earth.
And don't forget the arc of noach.. He took of each animal 2 and because an egg is not 
an animal, he only take some eggs for lunch  ;-)

Dave

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




Re: [PHP-DEV] codenames (Was:Preview version of Zend Engine 2 powered PHP)

2002-03-31 Thread Dave Mertens

> >   PHP 4.1.0 was released on Derick's birthday, so it should've been
> >   ''Codename Derick'', ... :-)
>
> Codenames are cool, but using our own names is no-so-cool.  We should
> pick a theme though, but please not Australian wildlife (we're already
> using that for the alltheweb.com frontend ;-).
> 
> What about the cities and towns developers live in?

Why not beernames? And for each major version we can take another country that 
produces beer. For the 4.x series we could take for example German beernames and for 
the 5.x series Belgium names.
I didn't mention Dutch beers because that would seem a bit lik ego tripping  ;-)

Dave

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




Re: [PHP-DEV] CVS Account Request: wentzel

2002-03-19 Thread Dave Mertens

On Tue, Mar 19, 2002 at 01:18:26PM -, Thomas Wentzel wrote:
> Tanslating the documentation into danish

Revoking my last remark (in Dutch) about translations.. 
Really, it's a hot item ;-)

Dave Mertens

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




Re: [PHP-DEV] CVS Account Request: manuzhai

2002-03-19 Thread Dave Mertens

On Tue, Mar 19, 2002 at 02:14:09PM +0100, [EMAIL PROTECTED] wrote:
> > Translating manual to Dutch
> Whoa!
> Eindelijk weer een geinteresseerde :)

Is het zo erg dan?? Valt toch best mee. Persoonlijk houd ik commentaar zo-ie-zo al 
engels. 
En verder betwijfel ik eigenlijk het nu van een vertaling. Lijkt mij alleen maar 
verwarrender. 
Maar degene die de manual vertalen naar het Nederlands krijgen van mij wel lof!

Dave Mertens

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




[PHP-DEV] Part run script shutdown

2002-03-16 Thread Dave Brotherstone

Hi,
   I'm trying to find out whether PHP_RSHUTDOWN_FUNCTION is called when a
browser session is killed mid-script.  If not, is there any way an extension
can detect the output socket is closed?

I've found a potential gotcha in the Sybase module, to do with locking, and
the locks never being released if the script doesn't finish.  I'm still
digging about with it, so I'm not 100% sure what's going on yet


Thanks,
Dave.


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




RE: [PHP-DEV] need help!

2002-03-10 Thread Dave Brotherstone

You're asking on the wrong list.  It's php-general you need to subscribe to.
This list is for development *OF* PHP, not IN PHP.


> -Original Message-
> From: its me [mailto:[EMAIL PROTECTED]]
> Sent: 10 March 2002 06:01
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] need help!
>
>
> i have in java script an array:
>
> var computerArray =  new Array("('Select sub-category','',true,true)",
> "('Hardware')",
> "('Monitors')",
> "('Printers')",
> "('Other')");
>
> but i want to create the items:
>
> "('Hardware')",
> "('Monitors')",
> "('Printers')",
> "('Other')
>
> dynamicaly from database
>
> and this array must stay in javascript i can't create it with
> only  php because its elements are a drop down menu which change
> with the change of another drop down menu..so it must remain in
> javascript...
>
> the whole script is:
>
> 
> 
> 
> 
> 
>
> 
> 
>  onChange="populateCategory(document.globe,document.globe.category.
> options[document.globe.category.selectedIndex].value)">
> Select Category
> Cars
> Computer
> 
> 
> <
> 
> 
> 
>
> 
>
>
>
>
>
> Rehab M.Shouman
>
> 
> 
>
>
> -
> Express yourself with a super cool email address from BigMailBox.com.
> Hundreds of choices. It's free!
> http://www.bigmailbox.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] Not getting output I expect on all pages

2002-03-07 Thread Dave Mertens

> I get the code at the end of this message whenever I
> load a page that redirects to another page (i.e. I use
> the 'header("Location: page.php")' command). What's
> going on? It doesn't do this when the page doesn't
> redirect, only when it does redirect. Any thoughts?
> This is PHP4, if that helps, but it does the same with
> 3 (tried both versions).

Be sure you call the header function before you write any data to the client.. After 
you wrote data (html) to the client you'll get an php error which is saying dat their 
was already output on line xx.

If you can't hold back to the data till the end of the page, consider using the output 
buffering (ob_start()). This prevents that data is written to the client until you 
call the flush function (ob_flush) or if you call the ob_get_contents functions which 
will return the page output as a string.

For more information about output buffering see 
http://www.php.net/manual/en/ref.outcontrol.php

Success,

Dave Mertens

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




[PHP-DEV] delete checked files

2002-02-25 Thread Dave Cranwell

Why not start an html form element before u start outputting the s and
s of ur table.
Finish it at the end of ur while loop, oh...and include a submit button.

The submit calls either a new script or the same script itself, only using
url query strings to specify a different part of the code.

Each  should be NAMED with the filename of each file
it is representing. Or possibly with a small identifier to differentiate
between the file reference and the input name, say "c_" at the front. And
perhaps you ought to remove the file-extention.

So if your directory contained "mydoc.doc", the checkbox would be named
"c_mydoc"

Then u use a while loop exactly the same as in the code u pasted to the
list, but instead of using the filename as a string that you then echo to
the screen, you simply strip off the file extension and add "c_" at the
beginning. You will now be referring to each of the chechbox form elements.

Simply while-loop your way through the form elements (each identified by the
file in the directory so you will know when/if an element exists because you
will still be looping through the opendir() command, or not), asking it if
it is checked or not  and delete it

if ($c_mydoc){
unlink ($regular_filename_WITH_extension_and_WITHOUT_c_)
}

--
Dave Cranwell
Torchbox Ltd
[EMAIL PROTECTED]
tel: (+44) 1608 811 870
mob: (+44) 7760 438 708
http://www.torchbox.com



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




[PHP-DEV] Bug #14222 Updated: PHP Crashes with weird output often

2002-02-08 Thread dave

 ID:   14222
 Updated by:   [EMAIL PROTECTED]
-Reported By:  [EMAIL PROTECTED]
+Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Apache related
 Operating System: Windows XP Pro
 PHP Version:  4.1.1
 New Comment:

run apache in single process mode eg:

apache -X

It's probably a bug in the duplicatesocket


Previous Comments:


[2002-02-07 14:11:49] [EMAIL PROTECTED]

Hi I have the same problem I use Win XP and I'm sure that's this is
reason - few days ago I have Win Me same configuration Apache/PHP/MySQL
- on XP I have:
pages are loaded properly from localhost - from internet address: ie
loads, nn doesn't (it stops but it do  not show any message - just 10%
of 10kB in status bar - and so for 30 min).
I have rather small page - an online store - without graphics nearly
but it communicate with MySQL - so I build a select and when it returns
too many rows (or i want more products on page) - the page do not load
(even in IE) and I get: Server unreachable.
Where can I get alarmed when the bug would fix? Where can I read more
about it?



[2002-01-21 17:38:40] [EMAIL PROTECTED]

update to newest version ?
do you mean one in the cvs repository ? i tried everything: apache
1.3x, apache 2.0 beta and php version 4.05, 4.06, 3.x and 4.11 (the
latest official) --- and - i must run php as an apache-module because i
use gd-lib. besides - gd lib does not work correctly (gives jpegs with
only 16 colors) after version 4.05 of php. is this because now there is
an extra feature in gd-lib where you must provide bit-depth ? 

my resume: apache without php works fine, php in cgi-mode works fine --
so there must be an os-related bug in the interface wich allows using
the php-dll as an apache - module. maybe an buffer-problem?

i tried the following: i took a normal html-page, tried this with
apache --> works fine. then simply renamed it to *.php - strange
code-output - the normal html but fragmented with weird-passages, they
change after every reload.



[2002-01-19 21:52:17] [EMAIL PROTECTED]

Please update PHP version :)



[2002-01-19 14:37:34] [EMAIL PROTECTED]

I ALSO HAVE THIS PROBLEM !! I tried several combinations of apache (
1.3x, 2.0beta) and php (4.06, 4.11) and i get too this weird output.
and the output is irregular if i reload.
i have windows xp german too. this is defenitly a problem caused by
windows xp, scince my old configuration under winnt worked fine , but
after updating to xp some files fail. it looks like it depends on the
php file size, not on the code in the php file. example:
www.videofiles.de/andre/dmmain.php - try with netscape, as iexplorer
not even loads the page.
hope this problem gets fixed soon, as i cannot go back to nt neither
win2000

greetz from germany!!
(wish i could use linux...)



[2002-01-11 08:30:52] [EMAIL PROTECTED]

I've a similar probleme with Apache 3.2.22, PHP 4.1.0 and mysql. I
obtain a page correctly generated when i call it from localhost but it
seem that don't work on the net (Cannot display... or the source of
page is not correct some data from mysql database are mixed with the
source, and sometime there's a another HTTP-header in the middle of the
page.

I don't understand why because, if i call the page by the internet
address from the server it's work at 100%. I try the same page from a
another computer on the LAN, and it's seem work at 60%, sometime i met
the same mistakes that there was via internet.

So if you can help me !

Thx !



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14222

-- 
Edit this bug report at http://bugs.php.net/?id=14222&edit=1


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




[PHP-DEV] Bug #15348: strtok multiple string handling

2002-02-03 Thread dave

From: [EMAIL PROTECTED]
Operating system: mandrake 8.0
PHP version:  4.0CVS-2002-02-03
PHP Bug Type: Feature/Change Request
Bug description:  strtok multiple string handling

just a quick example of one think I'd like to do, I 
figured out why it was failing, it was just toking the 
last string twice instead of each string once.  I suspect 
it would require an extra parameter, but I'd like the 
feature anyways

Thanks

$field_display_tok = strtok ( "$field_display", ',' );
  $field_val_tok = strtok ( "$field_val", ',' );
 
  // still need to set type properly
  while ( $field_display_tok && $field_val_tok )
  {
//printf ( "field_edval:  $field_edval, fieldval_tok:  
$fieldval_tok\n");
if ( $field_edval == $field_val_tok )
  printf ( "" . $field_display_tok . 
"\n" );
else
  printf ( "" . $field_display_tok . "\n" );
 
$field_display_tok = strtok(",");
$field_val_tok = strtok(",");
 printf ( "field_edval:  $field_edval, fieldval_tok:  
$field_val_tok\n");
  }
-- 
Edit bug report at: http://bugs.php.net/?id=15348&edit=1
Fixed in CVS: http://bugs.php.net/fix.php?id=15348&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15348&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15348&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15348&r=oldversion
Not for support: http://bugs.php.net/fix.php?id=15348&r=support
Not wrong behavior: http://bugs.php.net/fix.php?id=15348&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15348&r=notenoughinfo


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




[PHP-DEV] Bug #15347: strtok multiple string handling

2002-02-03 Thread dave

From: [EMAIL PROTECTED]
Operating system: mandrake 8.0
PHP version:  4.0CVS-2002-02-03
PHP Bug Type: Feature/Change Request
Bug description:  strtok multiple string handling

just a quick example of one think I'd like to do, I 
figured out why it was failing, it was just toking the 
last string twice instead of each string once.  I suspect 
it would require an extra parameter, but I'd like the 
feature anyways

Thanks

$field_display_tok = strtok ( "$field_display", ',' );
  $field_val_tok = strtok ( "$field_val", ',' );
 
  // still need to set type properly
  while ( $field_display_tok && $field_val_tok )
  {
//printf ( "field_edval:  $field_edval, fieldval_tok:  
$fieldval_tok\n");
if ( $field_edval == $field_val_tok )
  printf ( "" . $field_display_tok . 
"\n" );
else
  printf ( "" . $field_display_tok . "\n" );
 
$field_display_tok = strtok(",");
$field_val_tok = strtok(",");
 printf ( "field_edval:  $field_edval, fieldval_tok:  
$field_val_tok\n");
  }
-- 
Edit bug report at: http://bugs.php.net/?id=15347&edit=1
Fixed in CVS: http://bugs.php.net/fix.php?id=15347&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15347&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15347&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15347&r=oldversion
Not for support: http://bugs.php.net/fix.php?id=15347&r=support
Not wrong behavior: http://bugs.php.net/fix.php?id=15347&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15347&r=notenoughinfo


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




[PHP-DEV] Bug #14749: array_reduce() causes segmentation faults

2001-12-28 Thread dave

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.1.1
PHP Bug Type: Reproducible crash
Bug description:  array_reduce() causes segmentation faults

This drove me crazy. array_reduce() causes segmentation faults when used in
a complex, recursive manner. I'm pretty sure it's array_reduce() and not
create_function() that's the culprit here. I'm sorry I can't provide a
simpler example, but I've been unable to reprodce the crash otherwise. I'll
try to describe what I'm doing to the best of my abilities.

debug.php is an include that I use for dumping out nicely-formatted data
structures - it works like print_r() but cleaner. It's written using
functional techniques, so I'm using create_function() as a lambda and
array_reduce() as a reduction.

tree.xml is an XML file that I'm parsing into a data structure using
wddx_deserialize(). I thought that it was my deserialization that was the
problem when I was using XML-RPC, and switched to WDDX in hopes that that
would solve the crash problem. It didn't. It took a lot of monkeying around
before I figured out where the real problem was.

I don't know how to use GDB, and I don't really have any more time to
dedicate to this, so no backtrace. Sorry. I've experienced this problem
with PHP 4.1.0, 4.1.1, and 4.2.0-dev under RedHat 7.1 and Apache 1.3.22.

Here are my source files:

crash.php (this is the one to run)





debug.php:

 $val) $result[] = array($key, $val);
return $result;
}

function debug_node($key, $val) {
return "-+ $key "
 . "(" . gettype($val) .
")\n";
}

function debug_leaf($key, $val) {
return "-> $key = $val "
 . "(" . gettype($val) .
")\n";
}

function debug_reduce($prep, $accum, $key_val) {
list($key, $val) = $key_val;
return "$accum$prep" . (is_array($val) ? debug_node($key,  $val)
   . debug_tree("$prep |", $val)
   : debug_leaf($key, 
$val));
}

function debug_tree($prep, $array) {
return array_reduce(array_items($array),
create_function('$a, $x',
"return debug_reduce('$prep', \$a, \$x);"),
'');
}

function debug_array($array) {
return "\n"
 . debug_tree('|', $array) . '';
}

function debug_string($string) {
return "\n"
 . nl2br($string) . "\n";
}

function debug($msg) {
?>






tree.xml:

About UsWho We Areabout/who2342
What We Doodooabout/what69aboutProductsproducts8699Servicesservices<
/array>Contact
Uscontact1

That's it. Good luck.

Peace,
Dave
-- 
Edit bug report at: http://bugs.php.net/?id=14749&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-27 Thread Dave Brotherstone

Forgive me, but what does BC stand for?

I'd be happy to have a go at creating the new function though...

Dave

> -Original Message-
> From: Markus Fischer [mailto:[EMAIL PROTECTED]]
> Sent: 27 December 2001 05:15
> To: Sean R. Bright
> Cc: 'Dominik Roettsches'; [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak
> algorithm
> 
> 
> On Wed, Dec 26, 2001 at 11:32:22PM -0500, Sean R. Bright wrote : 
> > I need to find a plaintext version of Knuth's paper, then maybe I could
> > help.  I don't want to look at fmt's code.
> 
> You should. It's pretty straightforward to bind.
> 
> -- 
> Please always Cc to me when replying to me on the lists.
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Sybase / MSsql module additions

2001-12-13 Thread Dave Brotherstone


I've added two functions - sybase_get_last_error and
sybase_get_last_error_no (alias functions for mssql_ are included), so
that the user can do error handling with the errors raised from sybase or
mssql.

I've included a unified diff for these changes.  Tested on Apache and MS
SQL.  They are only minor changes, so shouldn't affect anything else.

Do I have to do anything else with the source to submit it?

If anyone wants the changes applying to the mssql extension, then let me
know - they'll be the same changes.

Corrections / comments welcome.

Thanks a lot,

Dave.



--- ext/sybase/php_sybase_db.c  Thu Dec 13 08:50:45 2001
+++ ext/sybase/php_sybase_db.c  Thu Dec 13 10:43:50 2001
@@ -88,6 +88,8 @@
PHP_FE(sybase_query,NULL)
PHP_FE(sybase_free_result,  NULL)
PHP_FE(sybase_get_last_message, NULL)
+   PHP_FE(sybase_get_last_error,   NULL)
+   PHP_FE(sybase_get_last_error_no,NULL)
PHP_FE(sybase_num_rows, NULL)
PHP_FE(sybase_num_fields,   NULL)
PHP_FE(sybase_fetch_row,NULL)
@@ -107,6 +109,8 @@
PHP_FALIAS(mssql_query, sybase_query,   NULL)
PHP_FALIAS(mssql_free_result,   sybase_free_result, NULL)
PHP_FALIAS(mssql_get_last_message,  sybase_get_last_message,NULL)
+   PHP_FALIAS(mssql_get_last_error,sybase_get_last_error,  NULL)
+   PHP_FALIAS(mssql_get_last_error_no, sybase_get_last_error_no,   NULL)
PHP_FALIAS(mssql_num_rows,  sybase_num_rows,NULL)
PHP_FALIAS(mssql_num_fields,sybase_num_fields,  NULL)
PHP_FALIAS(mssql_fetch_row, sybase_fetch_row,   NULL)
@@ -146,6 +150,9 @@
if (severity >= php_sybase_module.min_error_severity) {
php_error(E_WARNING,"Sybase error:  %s (severity 
%d)",dberrstr,severity);
}
+   STR_FREE(php_sybase_module.error_message);
+   php_sybase_module.error_message = estrdup(dberrstr);
+   php_sybase_module.error_no = dberr;
return INT_CANCEL;  
 }
 
@@ -281,6 +288,8 @@
php_sybase_module.num_links = php_sybase_module.num_persistent;
php_sybase_module.appname = estrndup("PHP 4.0",7);
php_sybase_module.server_message = empty_string;
+   php_sybase_module.error_message = empty_string;
+   php_sybase_module.error_no = 0;
php_sybase_module.min_error_severity = 
php_sybase_module.cfg_min_error_severity;
php_sybase_module.min_message_severity = 
php_sybase_module.cfg_min_message_severity;
return SUCCESS;
@@ -912,6 +921,24 @@
 PHP_FUNCTION(sybase_get_last_message)
 {
RETURN_STRING(php_sybase_module.server_message,1);
+}
+/* }}} */
+
+/* {{{ proto string sybase_get_last_error(void)
+   Returns the last error from server (not affected by min_error_severity) */
+PHP_FUNCTION(sybase_get_last_error)
+{
+   RETURN_STRING(php_sybase_module.error_message,1);
+}
+/* }}} */
+
+/* {{{ proto int sybase_get_last_error_no(void)
+   Returns the last error number from server 
+   (not affected by min_error_severity) */
+PHP_FUNCTION(sybase_get_last_error_no)
+{
+   Z_LVAL_P(return_value) = php_sybase_module.error_no;
+   Z_TYPE_P(return_value) = IS_LONG;
 }
 /* }}} */
 


--- ext/sybase/php_sybase_db.h  Thu Dec 13 08:50:13 2001
+++ ext/sybase/php_sybase_db.h  Thu Dec 13 10:43:50 2001
@@ -38,6 +38,8 @@
 PHP_FUNCTION(sybase_query);
 PHP_FUNCTION(sybase_free_result);
 PHP_FUNCTION(sybase_get_last_message);
+PHP_FUNCTION(sybase_get_last_error);
+PHP_FUNCTION(sybase_get_last_error_no);
 PHP_FUNCTION(sybase_num_rows);
 PHP_FUNCTION(sybase_num_fields);
 PHP_FUNCTION(sybase_fetch_row);
@@ -70,6 +72,8 @@
long allow_persistent;
char *appname;
char *server_message;
+   char *error_message;
+   int error_no;
int le_link,le_plink,le_result;
long min_error_severity,min_message_severity;
long cfg_min_error_severity,cfg_min_message_severity;



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DEV] Submitting changes

2001-12-12 Thread Dave Brotherstone


Where (and who) do I submit a code patch to one of the modules?



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] mssql/sybase error extension

2001-12-11 Thread Dave Brotherstone

Hi,
  I written a small extension to the sybase (and mssql) modules to handle
the errors raised with "raiserror" from the sql server.  However, I have
never done any PHP source development before, and I would like someone to
check that I haven't broken any development rules! - and also, if possible,
test it on a sybase box (I only have an MS box to test it on).

Also, how do I go about posting the changes into the source (I've altered
4.1.0)?

Thanks ever so much,

Dave.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12863: what does pg_freeresult return?

2001-08-20 Thread dave

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Documentation problem
Bug description:  what does pg_freeresult return?

The doc page for pg_freeresult does not state what the significance of the
int return value is.
-- 
Edit bug report at: http://bugs.php.net/?id=12863&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Compile Problem

2001-08-15 Thread Dave Wilson

Hi, if anyone has a moment, could you tell me what I'm doing wrong? Along with
the checked out PHP CVS I took today, I also downloaded and compiled the latest
libtool, autoconf, and automake (as recommended) to avoid any difficulty. I
compiled all three tools in /usr (--prefix=/usr). When I tried to compile PHP,
I
got the following problem:

./aclocal.m4:813: error: m4_defn: undefined macro: _m4_divert_diversion
./aclocal.m4:359: PHP_SUBST is expanded from...
./aclocal.m4:813: the top level
autoconf: tracing failed

Upon attempting to php-ize the particular module I wanted (ext/pcntl; i didn't
expect this to work):

aclocal: macro `AC_ADD_LIBPATH' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_LIBRARY_WITH_PATH' defined in acinclude.m4 but never
used
aclocal: macro `AC_ADD_LIBRARY' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_INCLUDE' defined in acinclude.m4 but never used
./aclocal.m4:813: error: m4_defn: undefined macro: _m4_divert_diversion
./aclocal.m4:359: PHP_SUBST is expanded from...
./aclocal.m4:813: the top level
./aclocal.m4:813: error: m4_defn: undefined macro: _m4_divert_diversion
./aclocal.m4:359: PHP_SUBST is expanded from...
./aclocal.m4:813: the top level
autoconf: tracing failed
You should update your `aclocal.m4' by running aclocal.


Running aclocal like it asks produces the following warnings:

aclocal: macro `AC_ADD_LIBPATH' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_LIBRARY_WITH_PATH' defined in acinclude.m4 but never
used
aclocal: macro `AC_ADD_LIBRARY' defined in acinclude.m4 but never used
aclocal: macro `AC_ADD_INCLUDE' defined in acinclude.m4 but never used
--


If any of this makes sense, I'd be grateful for a reply. Cheers.



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Console Work [woah]

2001-08-15 Thread Dave Wilson

ext/pcntrl/
ext/ncurses [!]
select ()

Wooah! I posted 15 mins ago and, well, umm, that's the fastest and most
complete response I've ever got from a list. :]

PHP < * :P

-dw


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Console Work

2001-08-15 Thread Dave Wilson

Hi there, I'm new to the list (only subscribed 2 mins ago!). I have subscribed
a) to say bloody well done on a great language! and b) I am trying to find
information on a few things related to console php (php -q)...

First off, I wrote a small addition to ext/standard/exec.c that adds a fork ()
function. I haven't been testing it much yet (I've started to write a web
server in it to see how well it works), but was wondering, is there a reason
why the official PHP 4 currently lacks fork functionality?

Obviously this wouldn't work very well in a web server module environment, but
compiled as a CGI (for shell script style use), it is very handy.

PHP seems pretty complete as far as console work goes, I have a 'standard' read
($prompt) function I can use that will determine the current TTY, open it, and
get a line from the user. Readline is also extremely useful. My problem is with
beutified output however. The day I untar php-x.xx.tar.gz and see
ext/ncurses/php_ncurses.c flying past my terminal is a day I will be very
preoccupied with code hacking into the early hours!

My last 'feature request' is that of either a select () ability (I see 4.0.6
has a function called select in ext/standard/file.c (and ext/sockets/???.c) but
I have not played with it), or another ability to read from files / fifos /
character devices in a non-blocking way. Particularly, /dev/modem work is to my
knowledge impossible at present.

To round up, an ncurses module would be nice, a select function like that in C
would be sex (!), a fork function (like that in C..). Thanks for your time
taken reading the e-mail, and thanks for a bloody brilliant language (I have
used it for web work too). If PHP had the above functionality, I can't see much
left that stops it from being a rather complete and feature-packed general
shell scripting language! (doh! signal handling would be nice too!)

Cherio,

-dw

PS> Another thing I noticed, I wrote a diary.php script that allows me 'ninja
speed' access to an OpenSSL'd diary in a very secure way. The code behind it is
relatively tight, yet when I run it strace'd, I notice that there are a good 50
or so getuid ()'s before the EDITOR is exec'd. The speed at which the program
runs is fine, but I was just wondering if it might indicate an underlying
problem, or is that just the nature of interpreted languages (not very
optimal)! On request, I'll make diary.php available, I intend sticking it on a
public site soon anyway.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12216: 4.0.6 + curl 7.8 Do not properly support https

2001-07-17 Thread dave

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:  4.0.6
PHP Bug Type: cURL related
Bug description:  4.0.6 + curl 7.8 Do not properly support https



Compiled php4.0.6 with curl 7.8 and open ssl. using this small script, the
data properly returns:

[(root)dave@sentinel goto]# cat test.php 
#!/usr/bin/php -q
http://www.thedatasource.net/";); 
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_VERBOSE, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT 5.0)");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_exec ($ch);
curl_close ($ch);
?>
[(root)dave@sentinel goto]# ./test.php 
* Connected to www.thedatasource.net (207.91.108.69)
> GET / HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Host: www.thedatasource.net
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Connection (#0) left alive
* Closing live connection (#0)
[(root)dave@sentinel goto]# 

I switch to https:

[(root)dave@sentinel goto]# ./test.php   
* Closing live connection (#0)
[(root)dave@sentinel goto]# 

I put phpinfo() in another small function to verify curl:

[(root)dave@sentinel goto]# ./test2.php | grep curl
curl
CURL
Informationlibcurl 7.8 (SSL 0.9.5)
[(root)dave@sentinel goto]#

Commandline, i test curls use of SSL:

[(root)dave@sentinel goto]# curl https://www.thedatasource.net | more
  % Total% Received % Xferd  Average Speed  Time
Curr.
 Dload  Upload TotalCurrent  Left   
Speed
100 102020 102020 0  30786  0 --:--:--  0:00:00 --:--:-- 
6484


works fine.

If i downgrade to: 
curl 7.7.3 (i386--freebsd4.3) libcurl 7.7.3 (OpenSSL 0.9.6) (ipv6
enabled)
and php4.0.5 everything works as advertised.

php 4.0.6 requires curl 7.8 to compile, i cant test with downgraded curl
only.

-- 
Edit bug report at: http://bugs.php.net/?id=12216&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] CVS Account Request

2001-06-30 Thread Dave Jones

CVS Account Request wrote:
>> Purpose: I would like cvs access so that I can check a bug fix
>> to the sybase_ct module. I need this bug fix to be
>> in the next release of PHP.
>
>  Just send a diff of your patch to [EMAIL PROTECTED]

In order to get a clean build of PHP on VMS, I have to modify 29 of the
original source files.  In about 1/3 of the files, the only changes
are to add a couple casts needed because the compiler feels obliged to 
warn you that 'char *' and 'unsigned char *' are different data types.

The separate diff files are available from:

http://www.er6.eng.ohio-state.edu/~jonesd/php/

It would save me some work if at least some of these patches could be
rolled into distribution tree.

A summary of the changes in these diff files follows:

   ext/standard/base64.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/basic_functions.c
Add '#ifdef's to conditionally compile several declarations that
refer to syslog (HAVE_SYSLOG_H) and sendmail (HAVE_SENDMAIL).

   ext/standard/credits.c
Give Dave Jones credit for the OpenVMS port.

   ext/standard/credits_sapi.h
Give Dave Jones credit for the OSU sapi.

   ext/standard/dl.c
Modify code to load shareable images via LIB$FIND_IMAGE_SYMBOL on VMS.

   ext/standard/exec.c
Fail, with error message, the passthru function on VMS (pipe 
incompatibilty).

Make main read loop in shell_exec() test for success of buffer
alloc/realloc rather than unconditionally attempting to use the
returned pointer.

Make the main read loop use fgets rather than fread for reading
from the pipe (bug in DECCRTL, fread won't detect end-of-data).
Since this increases the number of times through the read loop (once
for each line of output), change buffer allocation to only grow
the receiving buffer when less that PIPE_BUF bytes (the read size)
are left.

   ext/standard/file.c
Modify stat function to return dev and rdev as strings rather than
numbers and ino as three separate numbers (ino0, ino1, ino2).

   ext/standard/filestat.c
Make chgrp and chown follow the Windows behaviour, changing the
relevant "#ifndef WINDOWS" to "#if !defined(WINDOWS) && !defined(VMS)"

Skip groups check in php_stat function.

Modify php_stat function to return dev and rdev as strings rather than
numbers and ino as three separate numbers (ino0, ino1, ino2).

   ext/standard/flock_compat.c
Emulate flock() function on VMS.  Still under development, may work 
under VMS 7.3 if you enable default shared opens in the C runtime.

   main/fopen_wrappers.c
Modify fopen to include "rop=rah" (read-ahead record processing option)
DECC extension on VMS.

Modify fopen to use mode "r" instead of "rb" on VMS, allowing
standard VMS text files (VAR record format) to be correctly
read by the C runtime.  When "rb" is used, DECCRTL does not insert
the implied newline at the end of each record into the data stream,
making VAR format files appear to only have 1 line.

Modify getcwd call to use DECC extension that forces returned
directory string to use Unix syntax (/dev/dir).

   ext/standard/fsock.c
Modify test used for domain socket support.  Testing for existence
of AF_UNIX is inadequate since VMS header files define this but
don't define sockaddr_un structure.

   ext/standard/html.c
Added cast to php_escape_html call to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/image.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   main/internal_functions_w32.c
Remove calendar and ftp modules as builtin internal functions.

   ext/standard/iptc.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   main/main.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/md5.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/microtime.c
Define a timezone struct on VMS since not defined by the header files.

[PHP-DEV] Bug #10673 Updated: CURL/PHP causes lengthy Apache Keepalive

2001-06-26 Thread dave

ID: 10673
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: cURL related
Operating system: Linux
PHP Version: 4.0.6
Description: CURL/PHP causes lengthy Apache Keepalive

Same problem still exists with CURL 7.8 and PHP 4.0.6.

Any more ideas?

Previous Comments:
---

[2001-06-22 12:46:58] [EMAIL PROTECTED]
Updated version. 


---

[2001-06-05 17:27:51] [EMAIL PROTECTED]
Ok, I updated to curl-7.8-pre4 and PHP-4.0.6RC2 and tested 
with the same results.  :-(

Anything else I should try?
-Dave

---

[2001-06-03 17:49:32] [EMAIL PROTECTED]
First of all, try the latest release candidate for PHP 4.0.6:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

Note: You have to get the latest and greatest Curl
from CVS to get this work.

--Jani


---

[2001-05-04 13:31:59] [EMAIL PROTECTED]
Greetings. I have Apache/1.3.14 (Unix) running with 
PHP/4.0.4pl1 installed as a module and CURL 7.7.1 added to 
that. Our web sites need to fetch a request from a remote 
ad server in real-time as each page is generated. If $adr 
is the request, I used to use: 

$success = @readfile($adr); 

But then I found CURL and saw that is (a) was more robust 
and (b) seems to be more efficient than readfile. So I now 
use CURL in he following way: 

$aje_ch = @curl_init($adr); 
@curl_setopt ($aje_ch, CURLOPT_TIMEOUT, 1); 
@curl_setopt ($aje_ch, CURLOPT_MUTE, 1); 
@curl_exec ($aje_ch); 
@curl_close ($aje_ch); 

This works great, except that if I have "Keepalive on" in 
my Apache configuration file, the httpd server sits in 
keepalive state for FAR longer when using CURL than it does 
when using readfile. In the course of 2 or 3 hours, my 
server would normally be at about 150 httpd processes 
running at any given point in time. But when using CURL, it 
jumps to 650 httpd processes, with the lions share (99%) of 
those sitting in the keepalive state for very long. It 
seems like the CURL requests are causing Apache to set its 
Keepalive timeout to something much higher than it should 
be. Setting "keepalive off" in Apache's conf file works 
around this problem, but decreases server efficiency. I'd 
love to solve this problem. 

Please help! :-) 

For the record, this was posted to the cURL bug tracker 
over on SourceForge 
(http://sourceforge.net/tracker/?func=detail&atid=100976&ai
d=418860&group_id=976), and we went through quite a few 
gyrations with no success.  Specifically, we tried 
disabling KeepAlive on the REMOTE server to see if that had 
any affect, and it did not.  It seems not to matter what we 
request from, rather that any requests using 
PHP/cURL/Apache result in the LOCAL Apache bloating out of 
control with KeepAlive requests.  Reverting back to 
readfile() based requests solves this problem but, well, 
cURL is better.  ;-)

All help would be appreciated, and I am available and 
willing to test anything on our servers.

Thanks! 

-Dave   

---


Full Bug description available at: http://bugs.php.net/?id=10673


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11597:

2001-06-20 Thread dave

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Feature/Change Request
Bug description:  

File I/O on large files is near impossible with PHP.  File() eats way too much ram, 
and is slow, and the fopen() method is slow and hard to seek to a line where you left 
off processing at. Perhaps including functions that allow reading a given line of a 
file, checking the total number of lines, and more speed/ram aware I/O functions to 
allow processing of log files, and other large files.

I'm not a c coder, but I'm more than willing to help in any way I can.

Thanks and keep up the good work.


--Dave


-- 
Edit Bug report at: http://bugs.php.net/?id=11597&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10192 Updated: sybase_query with sybase_fetch_row displays real data type incorrectly

2001-06-19 Thread dave . berndt

ID: 10192
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sybase (dblib) related
Operating system: Linux Mandrake (redhat) 7.0
PHP Version: 4.0.3pl1
Description: sybase_query with sybase_fetch_row displays real data type incorrectly

Bug closed.

Previous Comments:
---

[2001-06-12 18:23:17] [EMAIL PROTECTED]

I don't know if it occurs with 4.0.5.  I tested through 4.0.4pl1 at the time of the 
posting.  Here's the solution I recieved from Dean B.  I assumed he posted it to this 
Bug report.  He didn't, so here it is:

Try this patch, which also adds support for FLT8.  Also, this applies to both PHP3 and 
PHP4, and the sybase_ct functions don't have this problem.

--- sybase.c.orig   Mon Feb  7 16:54:51 2000
+++ sybase.cMon Apr  3 12:12:00 2000
@@ -635,9 +640,13 @@
 result->type = IS_STRING;
 break;
 }
-   /*case SYBFLT8:*/
+   case SYBFLT8:
+   result->value.dval = *(DBFLT8 
*)dbdata(sybase_ptr->link,offset);
+   result->type = IS_DOUBLE;
+   break;
+
 case SYBREAL: {
-   result->value.dval = (double) floatcol(offset);
+   result->value.dval = (double)(*(DBREAL 
*)dbdata(sybase_ptr->link,offset));
 result->type = IS_DOUBLE;
 break;
 }


I tried to migrate to the ct version (compiled and executed fine) but had issues with 
some sort of link index error with my code.  So I decided to delay migration for now.  
THIS case can be closed.


---

[2001-06-12 17:42:44] [EMAIL PROTECTED]
Does this happen with PHP 4.0.5 ?


---

[2001-04-05 16:06:31] [EMAIL PROTECTED]
Queries that produce incorrect data is random, but will consistently happen within a 
particular query.  In one case, the last value of a fetched row (a real), in the last 
row was "1" in the database, but the returned array always displayed "0".  In another 
case, a value (a real) in the middle of the returned array in the database was 
supposed to be "65000" but the fetched array contained "0".  In both cases I copied 
the query from the code EXACTLY and ran it in isql and those results were correct.  So 
the errors are occuring somewhere in php land.  This error seems serious since no 
errors/messages are produced, but the data displayed is incorrect.  Sybase's real data 
type is machine-dependent, and my database is on a Solaris system.  But if isql on my 
linux php machine fetches data correctly, I would expect php to be able to do the 
same.

Complied with: 
--with-apxs=/usr/sbin/apxs
--with-sybase=/opt/sybase
--without-mysql
--with-layout=RedHat
--enable-shared=max

---


Full Bug description available at: http://bugs.php.net/?id=10192


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10192 Updated: sybase_query with sybase_fetch_row displays real data type incorrectly

2001-06-19 Thread dave . berndt

ID: 10192
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Sybase (dblib) related
Operating system: Linux Mandrake (redhat) 7.0
PHP Version: 4.0.3pl1
Description: sybase_query with sybase_fetch_row displays real data type incorrectly


I don't know if it occurs with 4.0.5.  I tested through 4.0.4pl1 at the time of the 
posting.  Here's the solution I recieved from Dean B.  I assumed he posted it to this 
Bug report.  He didn't, so here it is:

Try this patch, which also adds support for FLT8.  Also, this applies to both PHP3 and 
PHP4, and the sybase_ct functions don't have this problem.

--- sybase.c.orig   Mon Feb  7 16:54:51 2000
+++ sybase.cMon Apr  3 12:12:00 2000
@@ -635,9 +640,13 @@
 result->type = IS_STRING;
 break;
 }
-   /*case SYBFLT8:*/
+   case SYBFLT8:
+   result->value.dval = *(DBFLT8 
*)dbdata(sybase_ptr->link,offset);
+   result->type = IS_DOUBLE;
+   break;
+
 case SYBREAL: {
-   result->value.dval = (double) floatcol(offset);
+   result->value.dval = (double)(*(DBREAL 
*)dbdata(sybase_ptr->link,offset));
 result->type = IS_DOUBLE;
 break;
 }


I tried to migrate to the ct version (compiled and executed fine) but had issues with 
some sort of link index error with my code.  So I decided to delay migration for now.  
THIS case can be closed.


Previous Comments:
---

[2001-06-12 17:42:44] [EMAIL PROTECTED]
Does this happen with PHP 4.0.5 ?


---

[2001-04-05 16:06:31] [EMAIL PROTECTED]
Queries that produce incorrect data is random, but will consistently happen within a 
particular query.  In one case, the last value of a fetched row (a real), in the last 
row was "1" in the database, but the returned array always displayed "0".  In another 
case, a value (a real) in the middle of the returned array in the database was 
supposed to be "65000" but the fetched array contained "0".  In both cases I copied 
the query from the code EXACTLY and ran it in isql and those results were correct.  So 
the errors are occuring somewhere in php land.  This error seems serious since no 
errors/messages are produced, but the data displayed is incorrect.  Sybase's real data 
type is machine-dependent, and my database is on a Solaris system.  But if isql on my 
linux php machine fetches data correctly, I would expect php to be able to do the 
same.

Complied with: 
--with-apxs=/usr/sbin/apxs
--with-sybase=/opt/sybase
--without-mysql
--with-layout=RedHat
--enable-shared=max

---


Full Bug description available at: http://bugs.php.net/?id=10192


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10928 Updated: Loading PHP as a DSO fails - "garbled"

2001-05-21 Thread dave

ID: 10928
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Dynamic loading
Operating system: Linux Redhat 6.2 Kernel 2.2.17
PHP Version: 4.0.5
Description: Loading PHP as a DSO fails - "garbled"

Yep - spot on - putting the full path for apxs did the trick!

Thanks,

Dave.

Previous Comments:
---

[2001-05-18 04:21:55] [EMAIL PROTECTED]
You're most likely using wrong apxs here.
Try using the full path for it. ie.

--with-apxs=/httpd/bin/apxs


--Jani


---

[2001-05-17 11:31:44] [EMAIL PROTECTED]
I've built PHP 4.0.5 as a DSO with config:

./configure --with-apxs --with-mysql=no

I'm running Apache V1.3-14 with SSL patches and the config:

./configure --enable-module=info --enable-module=so 
--prefix=/httpd

When I start apache and try to add PHP I get:

Starting httpsd: Syntax error on line 225 of /httpd/conf/httpd.conf:
API module structure `php4_module' in file /httpd/libexec/libphp4.so is garbled
- perhaps this is not an Apache module DSO?
/httpd/bin/httpsdctl start: httpsd could not be started

I've read through the previous responses on this topic and I've tried 'make clean' and 
deleting the config.cache in PHP before the build - this doesn't make any difference.

Dave.

---


Full Bug description available at: http://bugs.php.net/?id=10928


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10928: Loading PHP as a DSO fails - "garbled"

2001-05-17 Thread dave

From: [EMAIL PROTECTED]
Operating system: Linux Redhat 6.2 Kernel 2.2.17
PHP version:  4.0.5
PHP Bug Type: Dynamic loading
Bug description:  Loading PHP as a DSO fails - "garbled"

I've built PHP 4.0.5 as a DSO with config:

./configure --with-apxs --with-mysql=no

I'm running Apache V1.3-14 with SSL patches and the config:

./configure --enable-module=info --enable-module=so \
--prefix=/httpd

When I start apache and try to add PHP I get:

Starting httpsd: Syntax error on line 225 of /httpd/conf/httpd.conf:
API module structure `php4_module' in file /httpd/libexec/libphp4.so is garbled
- perhaps this is not an Apache module DSO?
/httpd/bin/httpsdctl start: httpsd could not be started

I've read through the previous responses on this topic and I've tried 'make clean' and 
deleting the config.cache in PHP before the build - this doesn't make any difference.

Dave.


-- 
Edit Bug report at: http://bugs.php.net/?id=10928&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] 4.0.6

2001-05-08 Thread Dave Jones

>>it is not that odd because it may have treated it like whitespace - imagine
>>a long line script. now it may treat it not as whitespace and hence the
>>problem
>>
>>there is no big difference between whitespace and newline(s) in php, is it?

>Both today (4.0.6-dev) and earlier \r is treated as whitespace.
>However, in previous versions including 4.0.5 and 4.0.4pl1 "\r" would not 
>mark line endings such as end of // or # comments.
>So there is no way that I can think of that a script would have worked with 
>4.0.4pl1 and not with 4.0.5.
>Anyway, it doesn't really matter now because 4.0.6 should work.

And also line number don't get incremented if there are no line ends, so
all syntax errors are reported as being on line 1.

The issue might have never come up if the code used "r" mode for opens
rather that "rb", since the file are 'text' files.  On platforms that
don't used embedded newline characters as the record delimiters, the
implementation of fread is responsible for mapping the underlying file
format to cannonical form (i.e. \n's delimiting lines).

---
And also line number don't get incremented if there are no line ends, so
all syntax errors are reported as being on line 1.

The issue might have never come up if the code used "r" mode for opens
rather that "rb", since the file are 'text' files.  On platforms that
don't used embedded newline characters as the record delimiters, the
implementation of fread is responsible for mapping the underlying file
format to cannonical form (i.e. \n's delimiting lines).

---
David L. Jones   |  Phone:(614) 292-6929
Ohio State Unviversity   |  Internet:
1971 Neil Ave. Rm. 406   |   [EMAIL PROTECTED]
Columbus, OH 43210   |   [EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Porting to VMS, facing pedantic compiler

2001-05-06 Thread Dave Jones

I've been porting PHP to VMS for the past couple of weeks, how can I 
feed back some of my changes into the source tree so it's less work
to track the changes?  The fixes I'm interested in don't apply to
VMS per se, but rather cases where the compiler squawks about intermixing
signed and unsigned char pointers.  An example is at

   http://www.er6.eng.ohio-state.edu/~jonesd/php/diffs/html.c.diff

You can tell the compiler to not issue pointer mismatch warnings, but
that disables it for all types of pointers - not a good idea.

--
David L. Jones   |  Phone:(614) 292-6929
Ohio State Unviversity   |  Internet:
1971 Neil Ave. Rm. 406   |   [EMAIL PROTECTED]
Columbus, OH 43210   |   [EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10673: CURL/PHP causes lengthy Apache Keepalive

2001-05-04 Thread dave

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: cURL related
Bug description:  CURL/PHP causes lengthy Apache Keepalive

Greetings. I have Apache/1.3.14 (Unix) running with 
PHP/4.0.4pl1 installed as a module and CURL 7.7.1 added to 
that. Our web sites need to fetch a request from a remote 
ad server in real-time as each page is generated. If $adr 
is the request, I used to use: 

$success = @readfile($adr); 

But then I found CURL and saw that is (a) was more robust 
and (b) seems to be more efficient than readfile. So I now 
use CURL in he following way: 

$aje_ch = @curl_init($adr); 
@curl_setopt ($aje_ch, CURLOPT_TIMEOUT, 1); 
@curl_setopt ($aje_ch, CURLOPT_MUTE, 1); 
@curl_exec ($aje_ch); 
@curl_close ($aje_ch); 

This works great, except that if I have "Keepalive on" in 
my Apache configuration file, the httpd server sits in 
keepalive state for FAR longer when using CURL than it does 
when using readfile. In the course of 2 or 3 hours, my 
server would normally be at about 150 httpd processes 
running at any given point in time. But when using CURL, it 
jumps to 650 httpd processes, with the lions share (99%) of 
those sitting in the keepalive state for very long. It 
seems like the CURL requests are causing Apache to set its 
Keepalive timeout to something much higher than it should 
be. Setting "keepalive off" in Apache's conf file works 
around this problem, but decreases server efficiency. I'd 
love to solve this problem. 

Please help! :-) 

For the record, this was posted to the cURL bug tracker 
over on SourceForge 
(http://sourceforge.net/tracker/?func=detail&atid=100976&ai
d=418860&group_id=976), and we went through quite a few 
gyrations with no success.  Specifically, we tried 
disabling KeepAlive on the REMOTE server to see if that had 
any affect, and it did not.  It seems not to matter what we 
request from, rather that any requests using 
PHP/cURL/Apache result in the LOCAL Apache bloating out of 
control with KeepAlive requests.  Reverting back to 
readfile() based requests solves this problem but, well, 
cURL is better.  ;-)

All help would be appreciated, and I am available and 
willing to test anything on our servers.

Thanks! 

-Dave   


-- 
Edit Bug report at: http://bugs.php.net/?id=10673&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #9954 Updated: php.exe hangs when executing external batch file

2001-04-29 Thread ¥ DaVe ¥

Sure... I will reply with the outcome. Thanks.

Bug Database wrote:
> 
> ID: 9954
> Updated by: derick
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Feedback
> Bug Type: Program Execution
> PHP Version: 4.0.4pl1
> Assigned To:
> Comments:
> 
> Can you try this tomorrow when PHP 4.0.5 is released? There was a lot of changes to 
>this piece of code.
> 
> Previous Comments:
> ---
> 
> [2001-04-29 17:33:26] [EMAIL PROTECTED]
> User reported:
> 
> Yes, the batch file works fine... it only hangs when run from php.
> 
> -Dave
> 
> ---
> 
> [2001-04-29 06:21:52] [EMAIL PROTECTED]
> does the batch file work if you run it from the command prompt without PHP?
> 
> - James
> 
> ---
> 
> [2001-03-23 09:09:08] [EMAIL PROTECTED]
> Platform/configuration = (NT4/SP6)
> 
> I have created a batch file that opens MS Access and runs a macro... This macro does 
>3 things:
> 
> 1. Deletes a table
> 
> 2. Imports a delimited text file into a new table
> 
> 3. Quits Access and Saves All changes.
> 
> Here is the batch file:
> 
> REM   Defines a path for the Microsoft Access executable
> 
> PATH = "C:Program FilesMicrosoft OfficeOffice"
> 
> REM   Starts Microsoft Access and runs the macro.
> 
> START /WAIT Msaccess.exe "C:inetpubwwwrootwebcolorwebcolor.mdb" /x "Importer"
> 
> EXIT
> 
> When I call this .bat file with the exec() or system() functions, the browser hangs 
>and when I check the Task Mgr... I have php.exe, CMD.exe, and msaccess.exe all 
>hanging (and I also can not end the processes - Access is denied). For every page 
>access, an addition 3 processes open and hang.
> 
> ---
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=9954&edit=2

NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #9954 Updated: php.exe hangs when executing external batch file

2001-04-29 Thread ¥ DaVe ¥

Yes, the batch file works fine... it only hangs when run from php.

-Dave

Bug Database wrote:
> 
> ID: 9954
> Updated by: jmoore
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Feedback
> Bug Type: Program Execution
> PHP Version: 4.0.4pl1
> Assigned To:
> Comments:
> 
> does the batch file work if you run it from the command prompt without PHP?
> 
> - James
> 
> Previous Comments:
> ---
> 
> [2001-03-23 09:09:08] [EMAIL PROTECTED]
> Platform/configuration = (NT4/SP6)
> 
> I have created a batch file that opens MS Access and runs a macro... This macro does 
>3 things:
> 
> 1. Deletes a table
> 
> 2. Imports a delimited text file into a new table
> 
> 3. Quits Access and Saves All changes.
> 
> Here is the batch file:
> 
> REM   Defines a path for the Microsoft Access executable
> 
> PATH = "C:Program FilesMicrosoft OfficeOffice"
> 
> REM   Starts Microsoft Access and runs the macro.
> 
> START /WAIT Msaccess.exe "C:inetpubwwwrootwebcolorwebcolor.mdb" /x "Importer"
> 
> EXIT
> 
> When I call this .bat file with the exec() or system() functions, the browser hangs 
>and when I check the Task Mgr... I have php.exe, CMD.exe, and msaccess.exe all 
>hanging (and I also can not end the processes - Access is denied). For every page 
>access, an addition 3 processes open and hang.
> 
> ---
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=9954&edit=2

NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10339: PHP with OCI8 crashes apache

2001-04-15 Thread dave

From: [EMAIL PROTECTED]
Operating system: Mandrake 7.0 Linux 2.2.14-15mdksecure on a dual-PPro
PHP version:  4.0.4pl1
PHP Bug Type: *Install and Config
Bug description:  PHP with OCI8 crashes apache

Downloaded Oracle 8.1.7 and installed the default Client configuration.
Ran ./configure --with-apxs --without-xml --with-oracle=/var/oracle 
--with-oci8=/var/oracle --without-mysql
Runs fine, compiles fine, installs fine.   I try to load apache, it immediately dies 
without a trace in the logs.

Here's the gdb backtrace:
(gdb) bt
#0  0x407800f8 in ?? ()
#1  0x400e69bf in __getpwnam_r (name=0x80cefbc "apache", resbuf=0x401490a0, 
buffer=0x80d6d60 "apache", buflen=1024, result=0xbfffd738)
at ../nss/getXXbyYY_r.c:182
#2  0x400e6211 in getpwnam (name=0x80cefbc "apache") at ../nss/getXXbyYY.c:137
#3  0x8084f54 in ap_uname2id ()
#4  0x8071208 in set_user ()
#5  0x806c0bd in invoke_cmd ()
#6  0x806cae1 in ap_handle_command ()
#7  0x806cb7d in ap_srm_command_loop ()
#8  0x806d249 in ap_process_resource_config ()
#9  0x806dbac in ap_read_config ()
#10 0x8077c00 in standalone_main ()
#11 0x807853c in main ()
#12 0x4007e9ee in __libc_start_main (main=0x80781a4 , argc=1, argv=0xba44, 
init=0x804ed80 <_init>, fini=0x80ae204 <_fini>,
rtld_fini=0x4000a570 <_dl_fini>, stack_end=0xba3c) at 
../sysdeps/generic/libc-start.c:90



-- 
Edit Bug report at: http://bugs.php.net/?id=10339&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #10192: sybase_query with sybase_fetch_row displays real data type incorrectly

2001-04-05 Thread dave . berndt

From: [EMAIL PROTECTED]
Operating system: Linux Mandrake (redhat) 7.0
PHP version:  4.0.3pl1
PHP Bug Type: Sybase (dblib) related
Bug description:  sybase_query with sybase_fetch_row displays real data type 
incorrectly

Queries that produce incorrect data is random, but will consistently happen within a 
particular query.  In one case, the last value of a fetched row (a real), in the last 
row was "1" in the database, but the returned array always displayed "0".  In another 
case, a value (a real) in the middle of the returned array in the database was 
supposed to be "65000" but the fetched array contained "0".  In both cases I copied 
the query from the code EXACTLY and ran it in isql and those results were correct.  So 
the errors are occuring somewhere in php land.  This error seems serious since no 
errors/messages are produced, but the data displayed is incorrect.  Sybase's real data 
type is machine-dependent, and my database is on a Solaris system.  But if isql on my 
linux php machine fetches data correctly, I would expect php to be able to do the same.

Complied with: 
--with-apxs=/usr/sbin/apxs
--with-sybase=/opt/sybase
--without-mysql
--with-layout=RedHat
--enable-shared=max


-- 
Edit Bug report at: http://bugs.php.net/?id=10192&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >