[PHP-DEV] recursion?????

2003-02-14 Thread Alex Davis
Ok ... here is the sitituation... I am creating a registration form. 
What I have so far works ... the user registers using this form and the 
form calls another page that will check the validity of the data 
(checking for username availability, etc...). If there is an error, 
display the error and have the user GO BACK AND TRY AGAIN <- This is 
the problem I want to fix.

What I want to do is have the registration form, on submit, check the 
data validity right then, if there is an error, redisplay the form with 
an * next to the field that is incorrect. This way the user does not 
have to go back and try again, it will be there in front of them.

Basically, have the form action call itself  hince the recursion.

Any suggestion/examples?

Thanks,

-Alex


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



[PHP-DEV] zend_operators.c

2003-01-31 Thread Alex Waugh

Hi

ZendEngine2/zend_operators.c is missing a newline at the end of the
file. Please could someone with Zend karma fix this.

Thanks

Alex

-- 
Alex Waugh  [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/


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




[PHP-DEV] php exception handling

2003-01-23 Thread Alex Mendelev
Hey,

Are there any plans to implement proper exception handling in PHP?

try / catch / finally
throw
throws

Is anyone working on that?

Thanks,
Alex.



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




Re: [PHP-DEV] Re: #21659 [Com]: sprintf

2003-01-15 Thread Alex Pukinskis
On Wednesday, January 15, 2003, at 08:48 AM, David Sklar wrote:

The wording could be something like "NotValidBug" or something like 
that. I
think the issue that Adam is bringing up is that "Bogus" has a 
derogatory
connotation. Changing it doesn't necessarily make users who don't do
necessary research before posing feel better about themselves, but it 
may
make people more willing to report actual bugs in the future.

Look, I'm not on the QA team and ultimately, what makes it easiest and 
most
worthwhile for you guys to find and fix bugs is the best thing to do. 
But I
can easily see how a well-meaning person who might be new to PHP might
report what they think is a bug, have their bug report closed with 
"This
isn't a bug." with the status changed to "Bogus", and take that as a 
big fat
"Go away. PHP doesn't welcome you."

It occurs to me that it would be relatively easy for someone with 
direct access to the bug database to determine whether this is a real 
problem - just see what percentage of people whose bugs get marked 
"Bogus" never post another bug (vs. people whose bugs get assigned 
other status codes).  I would do it, except the web interface doesn't 
seem to allow searching by submitter name.

-Alex



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



[PHP-DEV] PHP4.3.0Pre2 and WebDav

2002-11-09 Thread Alex Volkov
Hi there, i have a question.

If the php 4.3 can accept webdav requests, can you give me some idea, how i
can configure apache2? To pass this requests to php scripts from apache ?

Thanks!



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




Re: [PHP-DEV] Xerces?

2002-10-18 Thread Alex Black
Cool that's exactly what I wanted to know :)

Thanks Melvyn :)

_alex


> Hi,
> 
> At 03:05 17-10-2002, Alex Black wrote:
> 
> [...]
> 
>> Still no one has told me what's happening with the XML extension! :) That's
>> all I wanted to know...
> 
> Are you looking for Xerces support or for a validating XML parser?
> libxml is validating XML parser and is supported through the domxml extension.
> 
> Some ideas for better XML support have been brought up, but Xerces is not
> considered an option, mainly because it doesn't have a C API as that prevents
> us from bundeling.
> 
> IF ext/xml is to be upgraded (read: find the people to do it), library of
> choice now is libxml.
> 
> With kind regards,
> 
> Melvyn Sopacua
> 
> 
> 


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




Re: [PHP-DEV] Xerces?

2002-10-16 Thread Alex Black

>   Since Xalan is written java, won't ext/java do that work
>   anyway?

Sorta,

That's a little funky but yes it would work. I would far prefer to have a
c-extension for the C++ version. My (limited) experience with php/java is...
Slightly funk. It does work but it seems ornry :)

Still no one has told me what's happening with the XML extension! :) That's
all I wanted to know...

_a


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




[PHP-DEV] Re: [binarycloud-dev] Re: [PHP-DEV] Xerces?

2002-10-16 Thread Alex Black

> There is only Sablotron support.  No Xerces.  Feel free to contribute the
> code to support Xerces.

hi Rasmus,

Sab is an XSLT processor, Xerces is a validating XML parser. You were
probably thinking Xalan, which is the apachexml XSLT processor. Yes, I'd
also like to have access to Xalan via php, though I haven't used it, so I
don't know if it's cool. Probably is. Sab ceartainly leaves a lot to be
desired :)

My question was: what's the status on all of the xml/xslt extension stuff?
I.e. Has the xml parser extension been changed to be more "general" so an
extension can happen? I know little of those goings-on, just that there was
some discussion. Do you guys know of anyone who is working on Xerces or
Xalan support? Etc.

Thanks,

_alex


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




[PHP-DEV] Xerces?

2002-10-16 Thread Alex Black

Hi all,

I have done limited looking but as far as I can tell Xerces is not supported
by PHP.

A) hopefully I am wrong and just didn't look hard enough.
B) If not, any validating parsers that are supported that do DTD validation?

It looks like there's an experimental Xalan ext out there, but no Xerces. I
have a vague memory of the XML setup being generalized to allow (x) parsers,
did that happen, etc?

In any case, if there aren't any validating parsers supported by PHP...
There should be :)

Please respond to the binarycloud-dev list also...

Thanks,

_alex


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




[PHP-DEV] patch to add CURLOPT_FTP_USE_EPSV option to curl extension

2002-10-02 Thread Alex Howansky


Hello developers,

I'd like to propose this simple patch (against 4.2.3) to the curl extension. It
adds the ability to specify the CURLOPT_FTP_USE_EPSV option via the
curl_setopt() function. (This is the same as the curl command line option
--disable-epsv.)

Regards,

*** ext/curl/curl.c.origTue Oct  1 12:48:52 2002
--- ext/curl/curl.c Tue Oct  1 12:51:18 2002
***
*** 135,140 
--- 135,141 
REGISTER_CURL_CONSTANT(CURLOPT_REFERER);
REGISTER_CURL_CONSTANT(CURLOPT_USERAGENT);
REGISTER_CURL_CONSTANT(CURLOPT_FTPPORT);
+   REGISTER_CURL_CONSTANT(CURLOPT_FTP_USE_EPSV);
REGISTER_CURL_CONSTANT(CURLOPT_LOW_SPEED_LIMIT);
REGISTER_CURL_CONSTANT(CURLOPT_LOW_SPEED_TIME);
REGISTER_CURL_CONSTANT(CURLOPT_RESUME_FROM);
***
*** 637,642 
--- 638,644 
case CURLOPT_PUT:
case CURLOPT_MUTE:
case CURLOPT_TIMEOUT:
+   case CURLOPT_FTP_USE_EPSV:
case CURLOPT_LOW_SPEED_LIMIT:
case CURLOPT_SSLVERSION:
case CURLOPT_LOW_SPEED_TIME:

-- 
Alex Howansky
Wankwood Associates
http://www.wankwood.com/



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




[PHP-DEV] gcc error on complile

2002-08-22 Thread Alex Green

Hi All,

what does this mean?

/bin/sh libtool --silent --mode=compile
gcc  -Iext/zlib/ -I/usr/local/www/php4-200208210300/ext/zlib/ -DPHP_ATOM_INC
 -I/
usr/local/www/php4-200208210300/include -I/usr/local/www/php4-200208210300/m
ain
-I/usr/local/www/php4-200208210300 -I/usr/local/www/apache2/2.0.40/include -
I/us
r/local/www/php4-200208210300/Zend -I/usr/local/include -I/usr/local/include
/fre
etype2 -I/oracle/oracode/9.2.0.1/rdbms/public -I/oracle/oracode/9.2.0.1/rdbm
s/de
mo -I/oracle/oracode/9.2.0.1/plsql/public  -I/usr/local/www/php4-20020821030
0/TS
RM  -mpa-risc-2-0 -O -D_HPUX_SOURCE  -prefer-pic -c
/usr/local/www/php4-200208210300/ext/zlib/zlib.c -o ext/zlib/zlib.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [ext/zlib/zlib.lo] Error 1

The configure command I ran is this:

CC=gcc CFLAGS="-mpa-risc-2-0 -O -D_HPUX_SOURCE"
./configure --with-apxs2=/usr/local/www/apache2/current/bin/apxs --with-zlib
-dir
=/usr/local/lib/ --with-zlib --without-mysql --enable-versioning --enable-tr
ack-
vars=yes --enable-url-includes --enable-trans-sid --enable-sysvshm=yes --ena
ble-
sysvsem=yes --with-ftp --with-config-file-path=/etc --with-gd=/usr/local --w
ith-
png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/lo
cal/
lib --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-gettext=/us
r/lo
cal --with-expat-dir=/usr/local --with-oracle=/oracle/oracode/9.2.0.1 --with
-oci
8=/oracle/oracode/9.2.0.1

I tried it without the CFLAGS, I was experimenting.

I'm trying to build php with Oracle 9i Release 2 (64bit) with Apache 2.0.40
on
my HPUX11i box.  I have editing the config.m4 files for both oci8 and oracle
to
point to the 32bit lib directories.


What other information would be helpfull?

Thanks in advance
AG




[PHP-DEV] compiling php

2002-08-21 Thread Alex Green

Hi All,

what does this mean?

/bin/sh libtool --silent --mode=compile
gcc  -Iext/zlib/ -I/usr/local/www/php4-200208210300/ext/zlib/ -DPHP_ATOM_INC
 -I/
usr/local/www/php4-200208210300/include -I/usr/local/www/php4-200208210300/m
ain
-I/usr/local/www/php4-200208210300 -I/usr/local/www/apache2/2.0.40/include -
I/us
r/local/www/php4-200208210300/Zend -I/usr/local/include -I/usr/local/include
/fre
etype2 -I/oracle/oracode/9.2.0.1/rdbms/public -I/oracle/oracode/9.2.0.1/rdbm
s/de
mo -I/oracle/oracode/9.2.0.1/plsql/public  -I/usr/local/www/php4-20020821030
0/TS
RM  -mpa-risc-2-0 -O -D_HPUX_SOURCE  -prefer-pic -c
/usr/local/www/php4-200208210300/ext/zlib/zlib.c -o ext/zlib/zlib.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [ext/zlib/zlib.lo] Error 1

The configure command I ran is this:

CC=gcc CFLAGS="-mpa-risc-2-0 -O -D_HPUX_SOURCE"
./configure --with-apxs2=/usr/local/www/apache2/current/bin/apxs --with-zlib
-dir
=/usr/local/lib/ --with-zlib --without-mysql --enable-versioning --enable-tr
ack-
vars=yes --enable-url-includes --enable-trans-sid --enable-sysvshm=yes --ena
ble-
sysvsem=yes --with-ftp --with-config-file-path=/etc --with-gd=/usr/local --w
ith-
png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-xpm-dir=/usr/lo
cal/
lib --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-gettext=/us
r/lo
cal --with-expat-dir=/usr/local --with-oracle=/oracle/oracode/9.2.0.1 --with
-oci
8=/oracle/oracode/9.2.0.1

I tried it without the CFLAGS, I was experimenting.

I'm trying to build php with Oracle 9i Release 2 (64bit) with Apache 2.0.40
on
my HPUX11i box.  I have editing the config.m4 files for both oci8 and oracle
to
point to the 32bit lib directories.


What other information would be helpfull?

Thanks in advance
AG


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




[PHP-DEV] php 4.2.2, apache 2.0.40 make problem from source

2002-08-15 Thread alex stinson

From: Laurent Larquère <[EMAIL PROTECTED]>
To: alex stinson <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from 
source
Date: Fri, 16 Aug 2002 01:23:30 +0200

i have inserted a simple NULL as third argument
and all goes well (Sol8/Sparc)

alex stinson wrote:

>i think i might have found why it might not be working (im not really a 
>good coder yet, so this was more of a look around for things that could 
>cause it, and browsed the apache code)...it seems that 
>ap_register_input_filter, and ap_register_output_filter are missing 
>arguments...
>in the apache source, under include/util_filter.h
>is:
>AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name, 
>ap_in_filter_func filter_func, ap_init_filter_func filter_init, 
>ap_filter_type ftype);
>so its declared with 4 arguments, but in sapi_apache2.c 
>(php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
>ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
>
>so, to anyone who actually knows what they are doing, what exactly is 
>supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above says 
>'ap_init_filter_func', but i have no idea what that is
>
>--Pete Rippe
>
>
>From: "Daniel Eckstein" <[EMAIL PROTECTED]>
>To: "Alex Stinson" <[EMAIL PROTECTED]>
>Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
>Date: Thu, 15 Aug 2002 22:46:55 +0200
>
>Hi,
>
>this is correctly the same, what is happening to me
>on a solaris 8 box.
>
>Regards,
>Tweeg
>
>- Original Message -
>From: "Alex Stinson" <[EMAIL PROTECTED]>
>Newsgroups: php.install
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, August 13, 2002 7:11 AM
>Subject: php 4.2.2, apache 2.0.40 make problem from source
>
>
> > hey, i have a small problem, and i'm not exactly sure how to work around
>it
> > involving php4.2.2, and apache 2.0.40
> >
> > uname -a:
> > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD 4.6-RELEASE 
>#0:
> > Tue Jun 11 06:14:12 GMT 2002
> > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
> >
> > The result of running make after configuring an almost clean source
> > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work
> > with apache2) with the following:
> > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
> > everything worked fine until i upgraded to apache 2.0.40 (actually, just
> > removed the entire /usr/www directory after a problem)...
> >
> > Making all in apache2filter
> > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main 
>-I/usr/php-4.2.2
> > -I/usr/www/include -I/usr/php-4.2.2/Zend 
>-I/usr/php-4.2.2/ext/mysql/libmys
>ql
> > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
> > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 -pthread 
>-DZT
>S
> > -prefer-pic  -c sapi_apache2.c
> > sapi_apache2.c: In function `php_register_hook':
> > sapi_apache2.c:534: warning: passing arg 3 of 
>`ap_register_output_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:534: too few arguments to function
> > `ap_register_output_filter'
> > sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:535: too few arguments to function
>`ap_register_input_filter'
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2.
> >
> >
> > _
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
>
>
>
>
>_
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] RE:[PHP-DEV] oo != php

2002-06-10 Thread Alex Black

> Hi,
> 
> I have promised myself to not get into this discussion for a week now,
> but the smell of dead horse overwhelmed me, so here goes...

heh.

> class foo aggregates bar {
> }

I think that is a nice solution.

> 2. "Optional" strong typing
> 
> When people say that being able to do
> 
>   function Bar(MyClass $foo) { ... }
> 
> will not affect performance, is this based on pure wishful thinking or
> real insight in the engine?  I can't see how this would not have a
> performance impact.  I think type hints are a good idea, as long as they
> are implemented with "low impact".

All of my arguments for this are qualified by that. If there is a
significant performance impact it should not be done. If there is not, it
should.

> 3. Case sensitivity
> 
> This horse is already decomposing.  When you can get the "originally
> cased" name of a symbol from the engine, there are no technical reasons
> for introducing case sensitivity to PHP, only aesthetic and
> scratchmyitchic.  But alas, we try keeping to technical reasons.

I gave this one up. In theory I would like it, in practice I don't actually
care that much :)

I would still like Private methods, and real MI.

Anyway all, I think the "middle ground" is what everyone really wants: more
features, but not blindly: we don't want to screw up BC, we don't want to
change the engine hugely... where there are advantages to be had, let's take
'em... if there's a good justification against let's accept that and move
on.

_a


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




[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] RE:[PHP-DEV] oo != php

2002-06-07 Thread Alex Black

> eg: simple db-based shopping cart web site? use PHP... complex internet
> backing system? use Java. Easy!

Use PHP! Easier.

Look, I've built hideously complex things with PHP - commerce systems that
do stream encryption on a per-field basis, complex interconnected process
stuff, large APIs, everything.

PHP is _already_ serious, it is being used for large, complex applications
with deep APIs.

> Is this all that much of an issue to implement MI, Pub/Pri/Prot
> methods/vars, possibly interfaces? Not to be Java, but to extend PHP...
> all those would help PHP as a *web based language* (hell it would help any
> language IMHO - given that its optional and not enforced). Isnt that the
> long term goal of PHP (or ZE)? To provide a most powerful backend for
> scripting languages, and to provide a RAD tool for creating websites (or
> web based systems) quickly, easily and powerfully? All the above would
> take a step closer to both those goals.

Well said.

I think the core of everyone's argument is that we're not asking for java,
we don't want java. We're asking for some incremental _additions_ to PHP OO
that do not break BC, that will help us work with more advanced PHP OO
systems.

That's it. I don't want to see PHP turn into java because I dislike java
intensely. I like the freedom given to me by PHP.

> Unless Im missing the mark - for which I appologise. The PHP Group as a
> whole seems to have mixed feelings on this issue - could there be some
> form of concensus so that I (and many others on this list) can work out if
> the requested extra functionality is either ruled out, in for PHP version
> x, or undecided and under continued debate. I think all sides have made
> their opinions crystal clear.

yes, I think some sort of clear vision of what you guys would like to see
happen over the next year would help us all and likely end this thread.

best,

-alex


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




[PHP-DEV] Re: [Zend Engine 2] PHP in the future

2002-06-06 Thread Alex Black

>> Brad, I beg you, there's nothing anybody can say on this list that would
>> lead this to closure.  Nothing.  I believe that adding the things you
>> mentioned does indeed turn PHP into Java, just a messy Java, Java which is
>> worse at being Java than the real one is, and torn apart when compared
>> against it.
> 
> Why do you think it would be messy.

Actually, given the changes I'm seeing in ZE2, and given our attempts at
building proper applications (though they are web applications) with PHP
(binarycloud), I have to agree with Brad: I don't see how they would be
messy.

I know this is a very dead horse, but I do think that PHP would benefit
greatly from just a few features:

explicit variable typing
case sensitivity (because it's confusing not to have it)
truly private methods

and a couple other things..

note though that _all_ of that can be added with minimal pain, except for
case sensitivity. (i.e. you can allow vars to be whatever if the user
doesn't preface the declaration with a type, etc).

>> Many others feel the same way.  You don't think that way, and

Actually Zeev, everyone I talk to (and it's a freaking lot of people) likes
the idea of a "tad" more "beefyness" in PHP so long as it doesn't come at
much cost.

> I do believe that making a "fork" or patches for php is a bad thing. It would
> lead into a big mess. But at the same time i believe more strongly that cs is
> a
> good thing, types are a good thing and stronger oo support is a good thing. To
> me these are more important.

yes. and to many other people.

remember Zeev that most people don't even understand OO concepts - so adding
cool stuff for the serious people doesn't hurt the little guy writing
procedural code in HTML one bit.

>> There's one thing that is clear to me - there's no way to 'find a
>> solution', because we don't, at all, agree about the existence of the

That's bull. We could quite reasonably expect to see some things added to
the language that would not "turn it into a messy java". There are plenty of
simple additions that would benefit more sophisticated developers a great
deal.

I don't want to use Java. It sucks. I like PHP. I would like to see PHP gain
just a little more ground with OO, that's it.

>> fundamental gap in our perception of what PHP should be, and how it can
>> stay competitive.
> 
> This is exactly true. I really feel that php/zend engine could be a alot more
> than you must think it can be.

I think I'm in the "it could be so much more" camp. I'm not hard-core about
this stuff, I don't think PHP will be "useless" without more advanced OO...
but I don't think it hurts anyone to add some more advanced features that
are not used by newbies. The problem with Java is that it forces developers
to code a certain way: PHP is good precisely because it _doesn't_. You can
improve PHP without sacrificing flexibility.

> The thing is the stuff that I/many people have in mind won't harm php as it
> is, its just that some people don't want these new features.
> 
> Types:
>  string $var;
> int $int;

In fact, you could even have:

$var = "crap"; // standard "floating type"
or
string $var = "123";

> $ret = doSomething($var2, $var2);
> 
> function doSomething(string $str, int $int)
> {

yep.

that could be _optional_ and not change a single line of syntax in existing
code bases.

> }
> ?>

> OO Support:
> 
> interface thread
> {
> function run();
> }
> 
> class MyClass implements thread
> {
> function run()
> {
> yeahRight();
> }

I don't see the need here..

> function setSomething(string $test)
> {
> $this->something = $test;
> }
> 
> opperator +(MyClass $class)
> {
> $this->something = $class->something;
> }
> 
> opperator +(MyOtherClass $class)
> {
> $this->something = $class->otherSomething;
> }
> }

Sitto.

> class MyOtherClass extends MyClass
> {
> }

yes :)

> don't forget about the public private

> Case Sensitive:
> I know the reasons for and against this and i agree with both of them. But I
> would rather see CS.


Ditto. If there's a time to do this it's now.

> php should get complicated but I do, I think that making these kinda changes

I think we can add some of the basic necessities without impacting the
complexity of the lauguage, see above.

> Again the point of this email isn't to change authors/founders minds its just
> my point of view.

Mine is.

I'd love to see case sensitivity, multiple inheritance, private methods, and
optional typed variables. Except case sensitivity, all of those features can
be implemented with ZERO impact on existing users and code.

:)

_alex




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




[PHP-DEV] XtOffsetOf Nightmare

2002-03-18 Thread Alex Black

hi all,

I have entered bugs.
I have mailed the install list.
No response.

I was unable to compile PHP 4.1.2 with Apache 1.3.23. I have previously
compiled extremely complex installs without a hitch.

After a huge amount of digging, It seems that XtOffsetOf is the source of
all of my problems.

During an initial compile of PHP 4.1.2 --with-apache I get the following
errors:

/root/bc_install/packages/apache_1.3.23/src/include/ap_config_auto.h:6:
 unterminated `#if' conditional
/root/bc_install/packages/apache_1.3.23/src/include/ap_config.h:1386
`XtOffsetOf' redefined

So. First problem, I had to patch ap_config_auto.h to fix the broken
conditional.

Second problem. I found an XtOffsetOf define in main/php.h

commented that out.

I couldn't get it all to compile with mm... which seemed just to be a stupid
path problem (though it has worked before) but I now have a functional
install.

has anyone tested with PHP 4.1.2 Apache 1.3.23?

it was a nightmare... :)

_alex


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




[PHP-DEV] SAPDB Compile Marathon Continues

2002-03-15 Thread Alex Black

Gotta love this,

Turns out that a couple things in combination seem to work for sapdb, but
now apache is broken. Anyway this works for SAPDB:

-ensure that --with-odbc is specified before --with-sapdb
-copy the contents of /opt/sapdb/depends/lib to
/opt/sapdb/interfaces/odbc/lib (yes that is dumb :)
-edit /etc/ld.so.conf, add /opt/sapdb/interfaces/odbc/lib
-run ldconfig
-run ldconfig -p |grep sqlrte
You must see:
libsqlrte.so (libc6) => /opt/sapdb/interfaces/odbc/lib/libsqlrte.so
-make
-watch in disbelief as everything compiles fine except for apache
support! Apache support! the most basic of all! argh!

I _can_ compile perfectly well without SAPI/Apache. So for some reason 4.1.2
doesn't like Apache now, great :)

-

PHP no longer complains about ld -sqlrte, now I get a 100% unrelated error
compiling with both apache 1.3.22 and 1.3.23:

.22/src/os/unix -I/root/bc_install/packages/php-4.1.2.mod/Zend
-I/usr/local/curl/include -I/usr/local/libxml2/include/libxml2
-I/usr/local/include -I/usr/local/mcrypt/include -I/usr/local/mhash/include
-I/root/bc_install/packages/php-4.1.2.mod/ext/mysql/libmysql
-I/u01/oracle/product/8.1.6/rdbms/public
-I/u01/oracle/product/8.1.6/rdbms/demo
-I/u01/oracle/product/8.1.6/network/public -I/opt/sapdb/interfaces/odbc/incl
-I/usr/local/mm/include -I/usr/local/expat/include
-I/usr/local/Sablot/include
-I/root/bc_install/packages/apache_1.3.22/src/include
-I/root/bc_install/packages/apache_1.3.22/src/os/unix
-I/root/bc_install/packages/php-4.1.2.mod/TSRM -g -O2  -c sapi_apache.c &&
touch sapi_apache.lo
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:77,
 from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config_auto.h:6:
unterminated `#if' conditional
In file included from
/root/bc_install/packages/apache_1.3.22/src/include/httpd.h:72,
 from sapi_apache.c:32:
/root/bc_install/packages/apache_1.3.22/src/include/ap_config.h:1367:
warning: `XtOffsetOf' redefined
/root/bc_install/packages/php-4.1.2.mod/main/php.h:342: warning: this is the
location of the previous definition
make[3]: *** [sapi_apache.lo] Error 1
make[3]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/bc_install/packages/php-4.1.2.mod/sapi/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bc_install/packages/php-4.1.2.mod/sapi'
make: *** [all-recursive] Error 1

---

a hahahahha give me a bullet in the head! :)

this one doesn't seem to be something I can solve. ergh.

ideas anyone?

please_please cc: [EMAIL PROTECTED] and [EMAIL PROTECTED]
with any responses...

tia,

_alex



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




[PHP-DEV] FW: AW: agh - Compile w/php

2002-03-15 Thread Alex Black

hi all,

I received this from a guy at SAP regarding a SAPDB compile with php:
As you might have guessed, I am still unable to compile --with-sapdb

I've entered a bug report with all of the details:

http://bugs.php.net/bug.php?id=16100

If anyone has successfully compiled SAPDB with PHP on any machine, please
get in contact with me and tell me what you did :)

-alex

> Hi Alex
> 
> I think, I've found the solution.
> 
> Facts:
> - libsqlod is the driver
> - libsqlrte is some lib of our runtime env
> - libsqlrte is added to the libs in the configure file
> 
> Therefore, php wants to link with -lsqlrte which is
> actually not necessary.
> 
> Solution:
> 
> - quick and dirty: cp libsqlod.so libsqlrte.so
> - edit php's ext/odbc/config.m4: delete the line
> "AC_ADD_LIBRARY(sqlrte)"
>  in the sapdb section. Then autoconf, configure, make ...
> 
> 
> The problem is a remainder of the ancestor ADABAS.
> 
> Please tell me, whether it now works for you.
> I will then inform the list about this.
> 
> 
> Greetings  Thomas
> 
> 
> --
> Dr. Thomas Kötter
> SAP DB, SAP Labs Berlin
> 
> 
> SAP DB is open source. Get it!www.sapdb.org
> 
> 
> 
> 

-- End of Forwarded Message


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




[PHP-DEV] SAPDB compile problem

2002-03-10 Thread Alex Black

hi all,

Apologize if php-dev is inappropriate, but since this is a compile problem I
thought it would be relevant. I have cc:d the sapdb-general list as they
should be aware of these compile problems (and that is where I first asked
for help). I would like to construct a guide for people using SAPDB with PHP
in real multi-machine "enterprise" situations and will do so when I resolve
this compile issue:

I'm trying to compile PHP 4.1.1 on RH 6.2 w/SAPDB. Yes, I will upgrade to
4.1.2 very soon :)

Problem:

During make, I get:
/usr/bin/ld: cannot find -lsqlrte

Which is surprising because I rsynced my copy of sqlrte into
/opt/sapdb/depend/lib from a "real" install I have on another machine. (the
"real" is a full, current server install... on this machine I only want the
client libs)

I also used the tarball from

ftp://ftp.sap.com/pub/sapdb/bin/patch/sapdb-odbc-linux-i386-7.3.0.21.tgz

which is (unless I am wrong, please correct me) fairly useless because it
does not contain that sqlrte lib that is required by PHP when compiling
--with-sapdb=/opt/sapdb/interfaces/odbc/lib

anyway, despite having included the correct path(s):

/opt/sapdb/interfaces/odbc/lib
/opt/sapdb/depend/lib

in ld.so.conf

and having run ldconfig...

I still get 

/usr/bin/ld: cannot find -lsqlrte

What's worse (and much more confusing):

root@core lib> ld -v |grep sql
/// i.e. no results from this search, which lists all known libs

root@core lib> ldconfig -v |grep sql
libsqlod.so => libsqlod.so
libsqlrte.so => libsqlrte.so
libsqlcls.so => libsqlcls.so

// note that ldconfig _is_ tracking these libs. AGH!

I have never seen an instance where ldconfig knows about something ld
doesn't.

I tried coping all files to /opt/sapdb/interfaces/odbc/lib just to give it a
shot, and that didn't work (though I'm not surprised it didn't). I have also
tried a number of variations of the --with-sapdb path just to ensure it
isn't me being a complete idiot.

what should I try next? or better, does anyone know how to solve this
problem?

PS: PLEASE email me directly. I'll cee my responses and findings to the
list, but I'm not subscribed.

tia all,

_alex
project leader, binarycloud
http://binarycloud.tigris.org
http://www.binarycloud.com



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




[PHP-DEV] Failed to write session data (files).

2002-03-06 Thread Alex \(Lik Sang\)

We have recently turned error_log on and we are getting all PHP errors into
a log file. We are using PHP 4.1.2 but this problem was there at earlier
versions already.

We cannot see any problems on the server but about 30-50 times each they we
have the following in the error log:

[05-Mar-2002 22:39:38] PHP Warning: Failed to write session data (files).
Please verify that the current setting of session.save_path is correct
(/tmp) in Unknown on line 0

Our sessions are actually working fine, as far as we can see and /tmp is
also the correct path, session files are getting generated and I have no
idea what could be wrong.

I have also tried to change the session.save_path to a different directories
and I have tested different permissions, but nothing change.

Any idea what is happening?

Alex

Lik Sang International Limited
<http://www.lik-sang.com>




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




Re: [PHP-DEV] SAP DB

2002-02-25 Thread Alex Black

> SAP DB is just another name for AdabasD from a programmers point of view-

Ah, cool.

> http://www.php.net/manual/en/ref.odbc.php

Well, yes.

> " In addition to normal ODBC support, the Unified ODBC functions in PHP allow
>  you to access several databases that have borrowed the semantics of the ODBC
>  API to implement their own API. Instead of maintaining multiple database
>  drivers that were all nearly identical, these drivers have been unified
>  into a single set of ODBC functions."
> 
> so the call interface to AdabasD/SapDB looks like ODBC, but you have
> direct access to the database using PHP, you don't have to deal with
> ODBC driver management and all the stuff if you don't want you

AHA!

Fantastic!

> as said above: it is all there ... just the documentation could need
> a little update ...

Yes, As I didn't know that SAPDB = AdabasD  I was unaware...

In any case you have made my day, thank you :)

All on bc-dev... hehehehe, + excellent +.

and Mike, I'm going to use this. (as I suspect you will as well)

_alex


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




[PHP-DEV] SAP DB

2002-02-24 Thread alex black

hi all,

One of the binarycloud developers just told me to have a look at the SAP OS
database, SAPDB.

I'm going to test it tomorrow to see if it actually does what it claims, but
this _looks_ like serious OS competition to Oracle, and if it is I would
very much like to use it for my next project.

So, question:

Has anyone used SAPDB with PHP? If so, experiences? And if not, are there
plans for drivers? I looked in the manual and I didn't see any mention of
SAPDB.

Oh, and I just found a mention of PHP on the SAPDB site. Looks like the
connection is over ODBC, which I really _really_ dislike... are there plans
for anything native? like a sapdb_connect :)?

In any case I think this database has a _HUGE_ amount of potential and PHP
would benefit if access to SAPDB was possible.

please e-mail me directly as I am not subscribed to the NGs:

[EMAIL PROTECTED]
or [EMAIL PROTECTED]

thanks,

_alex



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




Re: [PHP-DEV] webjames

2002-02-18 Thread Alex Waugh

On Sun, 17 Feb 2002, Jan Lehnardt wrote:

> Hi,
> On Sun, 17 Feb 2002 12:59:12 + (GMT)
> Alex Waugh <[EMAIL PROTECTED]> wrote:
>
> > > It would be great if you could modify your code to use the new TSRM
> > > macros instead so that we can drop those macros, which no other section
> > > of PHP uses, for PHP 5 / Zend Engine 2.
> >
> > Updated.
> personally, I am missing a cvs commit ;)

I definately committed it:

> Index: php4/ChangeLog
> diff -u php4/ChangeLog:1.957 php4/ChangeLog:1.958
> --- php4/ChangeLog:1.957  Fri Feb 15 20:21:49 2002
> +++ php4/ChangeLog    Sun Feb 17 20:20:53 2002
> @@ -1,3 +1,28 @@
[snip]
> +2002-02-17  Alex Waugh  <[EMAIL PROTECTED]>
> +
> +* sapi/webjames/webjames.c: Updated to new TSRM macros
> +


Cheers

Alex

--
Alex Waugh  [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/



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




Re: [PHP-DEV] webjames

2002-02-17 Thread Alex Waugh

On Sun, 10 Feb 2002, Sebastian Bergmann wrote:

>   Hi Alex, *,
>
>   the webjames SAPI module, which you maintain, uses a couple of
>   deprecated macros, namely
[snip]
>   It would be great if you could modify your code to use the new TSRM
>   macros instead so that we can drop those macros, which no other section
>   of PHP uses, for PHP 5 / Zend Engine 2.

Updated.

Cheers

Alex

--
Alex Waugh  [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/



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




[PHP-DEV] Keyword proposal: in

2002-02-06 Thread Alex Kiesel

Hi,

I'd like to propose a new keyword: in. It should work like the
SQL-in-expression.

For example you have a variable $val and want to test whether it
contains e.g. 1 or 2 or 99.

At the moment I would choose between on of the following
code-constructs:

1.) if ($var == 1 ||
$var == 2 ||
$var == 99) { // ...

2.) if (in_array ($var, array (1, 2, 99)) { // ...

What about adopting such a keyword as in to be able to write the
following code:

if ($var in (1, 2, 99)) { // ...

Well, at least I find it quite elegant. :)

I'd appreciate any comments.

Alex

-- 
Alex Kiesel PGP Key: 0x09F4FA11

Todays excuse: Secretary sent chain letter to all 5000 employees.

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




[PHP-DEV] Bug #15303: Error compiling

2002-01-30 Thread alex

From: [EMAIL PROTECTED]
Operating system: rocklinux 1.4
PHP version:  4.1.1
PHP Bug Type: GD related
Bug description:  Error compiling

Hello

Dont know if this is a gd or php issus. I downloaded gd to have it to
work
with gd cause i wanted to generate alpha blending images on the fly.
therefore i  choosed the 2.0.1 beta build. When i compile gd everything
is
allright but when i try to compile php i get this error message

gcc -I. -I/usr/src/php-4.1.1/ext/gd -I/usr/src/php-4.1.1/main
-I/usr/src/php
-4.1.1 -I/usr/src/php-4.1.1/Zend -I/usr/src/php-4.1.1/ext/mysql/libmysql
-I/
usr/src/php-4.1.1/ext/xml/expat  -I/usr/src/php-4.1.1/TSRM -g -O2  -c
gd.c
&& touch gd.lo
In file included from /usr/include/gd.h:25,
 from php_gd.h:33,
 from gd.c:36:
/usr/include/gd_io.h:21: undefined or invalid # directive
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve'
follows
non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.1.1/ext/gd'

The only option i have supplied is ./configure --with-gd
Im using rocklinux 1.4 and have tried to download and install zlib libpng
libjpeg
freetype several times. Whats wrong? Should i send a bugreport to php or
is
this a gd issue?

Thanx for a good software

/Alexander

-- 
Edit bug report at: http://bugs.php.net/?id=15303&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] ftp_put problem

2002-01-29 Thread Alex Pedcenko

Hi!
I have the problem with this function ftp_put. (binary mode)
[you can try at www.darkstar.sal.lv -> "add download"]
It can`t find local file on client machine (in ascii mode all OK). t
when I uploading from localhost all OK.
on phpdeveloper.com ther is a comment that "localfilename is relative to
php-script"?
I cant understand what does it mean...Please e-mail me if someone have a
solution...([EMAIL PROTECTED])
Thanks.



-- 
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] Help Wanted re: docs for SAPI modules

2002-01-24 Thread Alex Waugh

On Tue, 22 Jan 2002, Jon Nelson wrote:

> I'm looking for help regarding creating a new SAPI module for my
> favorite web server, Boa (http://www.boa.org/).  It's single-threaded,
> and supports CGI, of course, but I want to explore a tighter
> integration with PHP.   Can somebody give me some pointers to
> documentation, etc... ?

AFAIK, there is no documentation for the SAPI interface. Your best bet is
to have a look at the source code of some of the simpler SAPI modules.
It's not a particularly complex interface.

Alex

-- 
Alex Waugh  [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/





-- 
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 #15197: imap_reopen() returns TRUE instead FALSE called with nonexistant mailbox

2002-01-24 Thread alex

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.4 RELEASE
PHP version:  4.0.6
PHP Bug Type: IMAP related
Bug description:  imap_reopen() returns TRUE instead FALSE called with nonexistant 
mailbox


using imap_reopen using invalid/nonexistant mailbox name, imap_reopen()
returns TRUE instead of FALSE. happens on previously, successfully opened
imap stream with imap_open(), but not selecting specific mailbox, just
opening connection to imapd.
imapd reports 'NO Mailbox does not exist' on request 'EXAMINE
INBOX.asdasdasd' (and other nonexistant mailboxes) but imap_reopen()
doesn't return this error. see appended logfile from imapd connection.

php-4.0.6 with following configure options:
./configure --with-mysql=/usr/local --with-ttf --enable-track-vars
--with-apache=../apache_1.3.22 --with-imap --with-imlib=/usr/X11R6
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local
--with-zlib-dir=/usr/local --with-freetype-dir=/usr/local
--with-xpm-dir=/usr/X11R6

c-client library: imap-4.7c2.tar.Z
imapd: cyrus imapd 1.6.24

logfile from imapd connection:
0001 OK User logged in
0002 CAPABILITY
n* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME UNSELECT ID
0002 OK Completed
0003 NOOP
L0003 OK Completed
0004 EXAMINE INBOX.asdasdasd
l0004 NO Mailbox does not exist
0005 SEARCH ALL
X0005 BAD Please select a mailbox first
0006 LOGOUT
L* BYE LOGOUT received
0006 OK Completed


-- 
Edit bug report at: http://bugs.php.net/?id=15197&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] Bug #14878: php.exe crashes when accessed remotly but works fine at localhost

2002-01-05 Thread alex . davies

From: [EMAIL PROTECTED]
Operating system: Windows XP
PHP version:  4.1.1
PHP Bug Type: IIS related
Bug description:  php.exe crashes when accessed remotly but works fine at localhost

Any script as far as I can see reproduces this, such as .

Installed using the .msi PHP 1.1.1 installer

Scripts work fine when worked on at localhost but as soon as I try to
access them from a windows 2000 machine, it hangs. looking at the server
gives the 'php.exe has crashed. please tell Microsoft...' screen.
Reinstalling PHP makes it work again on localhost but not remotly and so
on!

php.ini not changed and all settings default. PHP applied to all IIS child
nodes.
Thnx for your help,
Alex Davies
-- 
Edit bug report at: http://bugs.php.net/?id=14878&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] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

It sounds like there was a particular reason for writing it this way ?

I am considering what effect it will have on me if I simply require that
people use thread pooling, and I'm going to do some tests to see whether
there's still a leak condition or if it stabilizes when I reuse them.

Alex

On 12/21/01 4:20 PM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:

> Well, it is pretty complicated to fix, even though it's been a very long
> while since I touched this code so I may be wrong.  As far as I recall, the
> TSRM hash tables won't reuse entries that were freed by threads that
> terminated.  Fixing this, especially without hurting performance, may be
> quite complicated.
> 
> That said - I'm not sure it accounts for 1KB per request.  There could be
> leaks in other places.


-- 
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] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

Well, at this point it is only leaking 1k per request; that doesn't "sound"
overly complicated to fix. Do you have an idea of what particularly TSRM is
leaking, after ts_thread_free() is called? I'd be happy to poke around the
code.

Alex

On 12/21/01 2:38 PM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:

> The way TSRM is written is not designed for servers that don't reuse
> threads for more than one request, so if that's how it works - you're going
> to see a growing memory image all the time :I
> 
> At 22:16 21/12/2001, Alex Leigh wrote:
>> Ok. I looked at the ISAPI code, and I am now calling ts_thread_free() when
>> the handler exits. This seems to have cleared up the problem immensely, but
>> it's still leaking to the tune of ~1k per request. I'll go over my SAPI
>> module again to verify that is not the cause of the 1k leak.
>> 
>> Also with php4-20011217120 randomly (13 times in 5000 requests), the page
>> (1k test data with no php script commands) fails to serve. Php writes:
>> 
>> Unknown(0) : Warning - Failed opening
>> '/web02/content/_default/_default/k1.php' for inclusion
>> (include_path='.:/usr/local/lib/php')
>> 
>> To stdout
>> 
>> Alex
>> 
>> On 12/21/01 12:52 PM, "Andi Gutmans" <[EMAIL PROTECTED]> wrote:
>> 
>>> Check out DllMain() in php4isapi.c.
>>> Are you running the thread attach and thread detach code?
>>> 
>>> Andi
>>> 
>>> At 12:43 PM 12/21/2001 -0600, Alex Leigh wrote:
>>>> It can do both. In the testing configuration, it is not pooling but
>>>> destroying the threads. They are created as detached threads, which at
>> least
>>>> on Solaris go away after they terminate; the ones that exit aren't
>> building
>>>> up in the process (I verified this with pstack). I am not specifying an
>>>> explicit cleanup handler for the threads, if that makes any
>> difference; they
>>>> are exiting normally by returning off the function called in
>>>> pthread_create().
>>>> 
>>>>> Does this web server spawn a new thread for each request? Or does it
>> reuse
>>>>> its threads?
>>>>> 
>>>>> Andi
>>>>> 
>>>>> At 12:22 PM 12/21/2001 -0600, Alex Leigh wrote:
>>>>>> I'm sure it's leaking, it'll readily consume a gig of memory and
>> shows no
>>>>>> signs of slowing down. I originally was calling phpinfo(), but it also
>>>> leaks
>>>>>> equally if I just have the php handler serve a page with no php in it.
>>>>>> 
>>>>>> So, yes, it leaks that amount every request and it never frees.
>>>>>> 
>>>>>> The code as I mentioned is a copy of the NSAPI module (nearly
>> identical),
>>>>>> and it basically does:
>>>>>> 
>>>>>>if (php_request_startup(TSRMLS_C) == FAILURE) {
>>>>>>   return FAILURE;
>>>>>>}
>>>>>> 
>>>>>> ...
>>>>>> 
>>>>>>  php_execute_script(&file_handle TSRMLS_CC);
>>>>>>  php_request_shutdown(NULL);
>>>>>> 
>>>>>> Alex
>>>>>> 
>>>>>> On 12/21/01 10:28 AM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
>>>>>> 
>>>>>>> Are you calling request_shutdown?
>>>>>>> Also, are you sure it's actually leaking?  Does it leak 200-400KB
>> on each
>>>>>>> and every request, or does this rate 'slow down' at some point?
>>>>>>> 
>>>>>>> Zeev
>>>>>>> 
>>>>>>> At 18:20 21/12/2001, Alex Leigh wrote:
>>>>>>>> All -
>>>>>>>> 
>>>>>>>> I have written a SAPI module for a new webserver "continuity". The
>>>> code is
>>>>>>>> basically the SAPI code for NSAPI, modified to work with
>>>> continuity's API.
>>>>>>>> Continuity is threaded, based on the pthread libraries.
>>>>>>>> 
>>>>>>>> My problem is that each requests that is handled by PHP leaks about
>>>>>>>> 200-400KB. I've gone over the code carefully, and I don't see that
>> I am
>>>>>>>> doing 

Re: [PHP-DEV] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

Ok. I looked at the ISAPI code, and I am now calling ts_thread_free() when
the handler exits. This seems to have cleared up the problem immensely, but
it's still leaking to the tune of ~1k per request. I'll go over my SAPI
module again to verify that is not the cause of the 1k leak.

Also with php4-20011217120 randomly (13 times in 5000 requests), the page
(1k test data with no php script commands) fails to serve. Php writes:

Unknown(0) : Warning - Failed opening
'/web02/content/_default/_default/k1.php' for inclusion
(include_path='.:/usr/local/lib/php')

To stdout

Alex

On 12/21/01 12:52 PM, "Andi Gutmans" <[EMAIL PROTECTED]> wrote:

> Check out DllMain() in php4isapi.c.
> Are you running the thread attach and thread detach code?
> 
> Andi
> 
> At 12:43 PM 12/21/2001 -0600, Alex Leigh wrote:
>> It can do both. In the testing configuration, it is not pooling but
>> destroying the threads. They are created as detached threads, which at least
>> on Solaris go away after they terminate; the ones that exit aren't building
>> up in the process (I verified this with pstack). I am not specifying an
>> explicit cleanup handler for the threads, if that makes any difference; they
>> are exiting normally by returning off the function called in
>> pthread_create().
>> 
>>> Does this web server spawn a new thread for each request? Or does it reuse
>>> its threads?
>>> 
>>> Andi
>>> 
>>> At 12:22 PM 12/21/2001 -0600, Alex Leigh wrote:
>>>> I'm sure it's leaking, it'll readily consume a gig of memory and shows no
>>>> signs of slowing down. I originally was calling phpinfo(), but it also
>> leaks
>>>> equally if I just have the php handler serve a page with no php in it.
>>>> 
>>>> So, yes, it leaks that amount every request and it never frees.
>>>> 
>>>> The code as I mentioned is a copy of the NSAPI module (nearly identical),
>>>> and it basically does:
>>>> 
>>>>if (php_request_startup(TSRMLS_C) == FAILURE) {
>>>>   return FAILURE;
>>>>}
>>>> 
>>>> ...
>>>> 
>>>>  php_execute_script(&file_handle TSRMLS_CC);
>>>>  php_request_shutdown(NULL);
>>>> 
>>>> Alex
>>>> 
>>>> On 12/21/01 10:28 AM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
>>>> 
>>>>> Are you calling request_shutdown?
>>>>> Also, are you sure it's actually leaking?  Does it leak 200-400KB on each
>>>>> and every request, or does this rate 'slow down' at some point?
>>>>> 
>>>>> Zeev
>>>>> 
>>>>> At 18:20 21/12/2001, Alex Leigh wrote:
>>>>>> All -
>>>>>> 
>>>>>> I have written a SAPI module for a new webserver "continuity". The
>> code is
>>>>>> basically the SAPI code for NSAPI, modified to work with
>> continuity's API.
>>>>>> Continuity is threaded, based on the pthread libraries.
>>>>>> 
>>>>>> My problem is that each requests that is handled by PHP leaks about
>>>>>> 200-400KB. I've gone over the code carefully, and I don't see that I am
>>>>>> doing (or more importantly, not doing) anything differently than any
>>>> of the
>>>>>> other SAPI modules.
>>>>>> 
>>>>>> I have tried php4-4.1.0, as well as the 12/17 cvs snapshot, on both
>> Linux
>>>>>> and Solaris. I did not configure php with any options other than that to
>>>>>> include my sapi module "--with-capi".
>>>>>> 
>>>>>> If someone could give me a reference to SAPI documentation (none of
>>>> which I
>>>>>> could find), or give me a lead on what my problem might be, I'd
>> appreciate
>>>>>> it.
>>>>>> 
>>>>>> My SAPI code can be had at
>>>>>> http://www.ashpool.com/dist/php4-capi-v200-p1.tar.gz
>>>>>> 
>>>>>> --
>>>>>> Alex Leigh - www.tessier.com - [EMAIL PROTECTED]
>>>>>> The difference between theory and reality is that
>>>>>> in theory there is no difference.
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> 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 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] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

It can do both. In the testing configuration, it is not pooling but
destroying the threads. They are created as detached threads, which at least
on Solaris go away after they terminate; the ones that exit aren't building
up in the process (I verified this with pstack). I am not specifying an
explicit cleanup handler for the threads, if that makes any difference; they
are exiting normally by returning off the function called in
pthread_create().

> Does this web server spawn a new thread for each request? Or does it reuse
> its threads?
> 
> Andi
> 
> At 12:22 PM 12/21/2001 -0600, Alex Leigh wrote:
>> I'm sure it's leaking, it'll readily consume a gig of memory and shows no
>> signs of slowing down. I originally was calling phpinfo(), but it also leaks
>> equally if I just have the php handler serve a page with no php in it.
>> 
>> So, yes, it leaks that amount every request and it never frees.
>> 
>> The code as I mentioned is a copy of the NSAPI module (nearly identical),
>> and it basically does:
>> 
>>if (php_request_startup(TSRMLS_C) == FAILURE) {
>>   return FAILURE;
>>    }
>> 
>> ...
>> 
>>  php_execute_script(&file_handle TSRMLS_CC);
>>  php_request_shutdown(NULL);
>> 
>> Alex
>> 
>> On 12/21/01 10:28 AM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
>> 
>>> Are you calling request_shutdown?
>>> Also, are you sure it's actually leaking?  Does it leak 200-400KB on each
>>> and every request, or does this rate 'slow down' at some point?
>>> 
>>> Zeev
>>> 
>>> At 18:20 21/12/2001, Alex Leigh wrote:
>>>> All -
>>>> 
>>>> I have written a SAPI module for a new webserver "continuity". The code is
>>>> basically the SAPI code for NSAPI, modified to work with continuity's API.
>>>> Continuity is threaded, based on the pthread libraries.
>>>> 
>>>> My problem is that each requests that is handled by PHP leaks about
>>>> 200-400KB. I've gone over the code carefully, and I don't see that I am
>>>> doing (or more importantly, not doing) anything differently than any
>> of the
>>>> other SAPI modules.
>>>> 
>>>> I have tried php4-4.1.0, as well as the 12/17 cvs snapshot, on both Linux
>>>> and Solaris. I did not configure php with any options other than that to
>>>> include my sapi module "--with-capi".
>>>> 
>>>> If someone could give me a reference to SAPI documentation (none of
>> which I
>>>> could find), or give me a lead on what my problem might be, I'd appreciate
>>>> it.
>>>> 
>>>> My SAPI code can be had at
>>>> http://www.ashpool.com/dist/php4-capi-v200-p1.tar.gz
>>>> 
>>>> --
>>>> Alex Leigh - www.tessier.com - [EMAIL PROTECTED]
>>>> The difference between theory and reality is that
>>>> in theory there is no difference.
>>>> 
>>>> 
>>>> --
>>>> 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 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] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

I'm sure it's leaking, it'll readily consume a gig of memory and shows no
signs of slowing down. I originally was calling phpinfo(), but it also leaks
equally if I just have the php handler serve a page with no php in it.

So, yes, it leaks that amount every request and it never frees.

The code as I mentioned is a copy of the NSAPI module (nearly identical),
and it basically does:
 
   if (php_request_startup(TSRMLS_C) == FAILURE) {
  return FAILURE;
   }

...

 php_execute_script(&file_handle TSRMLS_CC);
 php_request_shutdown(NULL);

Alex

On 12/21/01 10:28 AM, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:

> Are you calling request_shutdown?
> Also, are you sure it's actually leaking?  Does it leak 200-400KB on each
> and every request, or does this rate 'slow down' at some point?
> 
> Zeev
> 
> At 18:20 21/12/2001, Alex Leigh wrote:
>> All -
>> 
>> I have written a SAPI module for a new webserver "continuity". The code is
>> basically the SAPI code for NSAPI, modified to work with continuity's API.
>> Continuity is threaded, based on the pthread libraries.
>> 
>> My problem is that each requests that is handled by PHP leaks about
>> 200-400KB. I've gone over the code carefully, and I don't see that I am
>> doing (or more importantly, not doing) anything differently than any of the
>> other SAPI modules.
>> 
>> I have tried php4-4.1.0, as well as the 12/17 cvs snapshot, on both Linux
>> and Solaris. I did not configure php with any options other than that to
>> include my sapi module "--with-capi".
>> 
>> If someone could give me a reference to SAPI documentation (none of which I
>> could find), or give me a lead on what my problem might be, I'd appreciate
>> it.
>> 
>> My SAPI code can be had at
>> http://www.ashpool.com/dist/php4-capi-v200-p1.tar.gz
>> 
>> --
>> Alex Leigh - www.tessier.com - [EMAIL PROTECTED]
>> The difference between theory and reality is that
>> in theory there is no difference.
>> 
>> 
>> --
>> 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] SAPI Module Leaking

2001-12-21 Thread Alex Leigh

All -

I have written a SAPI module for a new webserver "continuity". The code is
basically the SAPI code for NSAPI, modified to work with continuity's API.
Continuity is threaded, based on the pthread libraries.

My problem is that each requests that is handled by PHP leaks about
200-400KB. I've gone over the code carefully, and I don't see that I am
doing (or more importantly, not doing) anything differently than any of the
other SAPI modules.

I have tried php4-4.1.0, as well as the 12/17 cvs snapshot, on both Linux
and Solaris. I did not configure php with any options other than that to
include my sapi module "--with-capi".

If someone could give me a reference to SAPI documentation (none of which I
could find), or give me a lead on what my problem might be, I'd appreciate
it.

My SAPI code can be had at
http://www.ashpool.com/dist/php4-capi-v200-p1.tar.gz

--
Alex Leigh - www.tessier.com - [EMAIL PROTECTED]
The difference between theory and reality is that
in theory there is no difference.


-- 
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 #14579: ImageTypes() returns no supported Image Types

2001-12-18 Thread alex . killing

From: [EMAIL PROTECTED]
Operating system: RedHat6.2
PHP version:  4.1.0
PHP Bug Type: GD related
Bug description:  ImageTypes() returns no supported Image Types

gd1.3/PHP4.1.0

[...]
$im_types = @ImageTypes();
if(empty($im_types))
{
  echo "Error";
}
else
{
  if($im_types & IMG_JPG)
  {
[...]

-> Error is echoed.


php_info() says:

GD support enabled
GD version between 1.3 and 1.6.1
GIF Read Support enabled
GIF Create Support enabled


The same script with PHP4.0.3pl1 and PHP4.0.6 acts as expected.
-- 
Edit bug report at: http://bugs.php.net/?id=14579&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] Bug #14545: DOM seems not to work

2001-12-16 Thread alex

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.1.0
PHP Bug Type: DOM XML related
Bug description:  DOM seems not to work

the following code (taken from phpbuilder) works with php.4.0.6 
with dom and fails with php 4.1.0


";
$xmlstr .=
"

Matt
Web Guy

";

# load xml data ($doc becomes an instance of 
# the DomDocument object)
$doc = xmldoc($xmlstr);

# get root node "employee"
$employee = $doc->root();

# get employee's children ("name","position")
$nodes = $employee->children();

# let's play with the "position" node
# so we must iterate through employee's
# children in search of it
while ($node = array_shift($nodes))
{
if ($node->name == "position")
{
$position = $node;
break;
}
}

# get position's type attribute
$type = $position->getattr("type");

# get the text enclosed by the position tag
# shift the first element off of position's children
$text_node = array_shift($position->children());

# access the content property of the text node
$text = $text_node->content;

# echo out the position and type
echo "position: $text";
echo "type: $type";

?> 


-- 
Edit bug report at: http://bugs.php.net/?id=14545&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] Bug #12160 Updated: mysql_pconnect causes 99% CPU usage and system stop

2001-12-13 Thread alex

ID: 12160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: MySQL related
Operating System: OS/2
PHP Version: 4.0.5
New Comment:

I haven't received any messages from [EMAIL PROTECTED], so I haven't been able to react 
on this post.

About bug: I'm successfully using mysql_pconnect sinse 4.0.6 and ever in relatively 
recent snaps so I think the bug is gone.

Previous Comments:


[2001-12-13 06:26:31] [EMAIL PROTECTED]

No feedback. Closing.



[2001-11-20 19:11:49] [EMAIL PROTECTED]

Does this happen with latest RC too?

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.



[2001-07-14 02:00:45] [EMAIL PROTECTED]

after the mysql_pconnect(dbhost, dbuser, dbpass) calling 
apache module causes 99% CPU usage and stops all the system

MySQL ver. 3.23.28gamma

PS. There is everything OK with the mysql_connect(dbhost, dbuser, dbpass);





Edit this bug report at http://bugs.php.net/?id=12160&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 Account Request: alexwaugh

2001-11-01 Thread Alex Waugh

Changes for RISC OS port and new SAPI module
ext/mysql, ext/standard, sapi, TSRM, Zend

-- 
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] RISC OS port

2001-09-21 Thread Alex Waugh

On 11/9/2001 I wrote:

> "James Moore" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > > There's only a handful of small patches to various files, and a new SAPI
> > > module. Should I post the changes to this list, mail them to someone, or
> > > apply for a CVS account? I don't envisage too many more changes, but
> > > there might be the odd thing now and again if other peoples changes
> > > cause things to break.
> > 
> > Post them to the list for review then if they are to be incorporated then
> > you need to apply for a CVS account and you will be given access to the
> > relevant parts of the code.
> 
> OK, here they are.
> In some places I've used #ifdef riscos  as this is defined by the
> compiler. It looks a bit odd though as it is not upper case.

Has anyone had a look at them yet? Or does the silence mean they're
fine?

Alex

-- 
Alex Waugh   [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/

-- 
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] RISC OS port

2001-09-11 Thread Alex Waugh

"James Moore" <[EMAIL PROTECTED]> wrote:

> 
> > There's only a handful of small patches to various files, and a new SAPI
> > module. Should I post the changes to this list, mail them to someone, or
> > apply for a CVS account? I don't envisage too many more changes, but
> > there might be the odd thing now and again if other peoples changes
> > cause things to break.
> 
> Post them to the list for review then if they are to be incorporated then
> you need to apply for a CVS account and you will be given access to the
> relevant parts of the code.

OK, here they are.
In some places I've used #ifdef riscos  as this is defined by the
compiler. It looks a bit odd though as it is not upper case.

Alex

-- 
Alex Waugh   [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/


Index: ext/ftp/ftp.c
===
RCS file: /repository/php4/ext/ftp/ftp.c,v
retrieving revision 1.37
diff -u -r1.37 ftp.c
--- ext/ftp/ftp.c   9 Sep 2001 13:28:49 -   1.37
+++ ext/ftp/ftp.c   10 Sep 2001 20:00:16 -
@@ -44,6 +44,10 @@
 #include 
 #endif
 
+#ifdef HAVE_SYS_SELECT_H
+#include 
+#endif
+
 #include "ftp.h"
 #include "ext/standard/fsock.h"
 
Index: ext/mysql/libmysql/global.h
===
RCS file: /repository/php4/ext/mysql/libmysql/global.h,v
retrieving revision 1.8
diff -u -r1.8 global.h
--- ext/mysql/libmysql/global.h 1 Jun 2001 20:07:26 -   1.8
+++ ext/mysql/libmysql/global.h 10 Sep 2001 20:00:22 -
@@ -250,6 +250,8 @@
 #endif
 
 #if defined(__EMX__) || !defined(HAVE_UINT)
+#undef uint
+#undef ushort
 typedef unsigned int uint;
 typedef unsigned short ushort;
 #endif
Index: ext/standard/fsock.c
===
RCS file: /repository/php4/ext/standard/fsock.c,v
retrieving revision 1.80
diff -u -r1.80 fsock.c
--- ext/standard/fsock.c9 Sep 2001 13:29:18 -   1.80
+++ ext/standard/fsock.c10 Sep 2001 20:00:39 -
@@ -52,7 +52,7 @@
 #include 
 #endif
 #endif
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(riscos)
 #undef AF_UNIX
 #endif
 #if defined(AF_UNIX)
Index: main/network.c
===
RCS file: /repository/php4/main/network.c,v
retrieving revision 1.21
diff -u -r1.21 network.c
--- main/network.c  9 Sep 2001 13:29:28 -   1.21
+++ main/network.c  10 Sep 2001 20:00:43 -
@@ -37,6 +37,10 @@
 #include 
 #endif
 
+#ifdef HAVE_SYS_SELECT_H
+#include 
+#endif
+
 #ifndef PHP_WIN32
 #include 
 #include 
Index: cgi_main.c
===
RCS file: /repository/php4/sapi/cgi/cgi_main.c,v
retrieving revision 1.134
diff -u -r1.134 cgi_main.c
--- cgi_main.c  9 Sep 2001 13:29:30 -   1.134
+++ cgi_main.c  10 Sep 2001 21:32:59 -
@@ -64,6 +64,10 @@
 #include 
 #endif
 
+#ifdef riscos
+#include 
+#endif
+
 #include "zend_compile.h"
 #include "zend_execute.h"
 #include "zend_highlight.h"
@@ -703,6 +707,11 @@
env_path_translated = getenv("PATH_TRANSLATED");
 #endif
if(env_path_translated) {
+#ifdef riscos
+   /* Convert path to unix format*/
+   __riscosify_control|=__RISCOSIFY_DONT_CHECK_DIR;
+   
+env_path_translated=__unixify(env_path_translated,0,NULL,1,0);
+#endif
SG(request_info).path_translated = 
estrdup(env_path_translated);
}
}
Index: TSRM/tsrm_virtual_cwd.h
===
RCS file: /repository/TSRM/tsrm_virtual_cwd.h,v
retrieving revision 1.15
diff -u -r1.15 tsrm_virtual_cwd.h
--- TSRM/tsrm_virtual_cwd.h 2001/08/05 01:34:40 1.15
+++ TSRM/tsrm_virtual_cwd.h 2001/09/10 20:03:28
@@ -62,7 +62,11 @@
 #endif
 
 #define DEFAULT_SLASH '/'
-#define DEFAULT_DIR_SEPARATOR  ':'
+#ifdef riscos
+# define DEFAULT_DIR_SEPARATOR ';'
+#else
+# define DEFAULT_DIR_SEPARATOR ':'
+#endif
 #define IS_SLASH(c)((c) == '/')
 
 #endif
Index: Zend/zend.h
===
RCS file: /repository/Zend/zend.h,v
retrieving revision 1.139
diff -u -r1.139 zend.h
--- Zend/zend.h 2001/08/26 15:28:05 1.139
+++ Zend/zend.h 2001/09/10 20:03:36
@@ -40,6 +40,9 @@
 #ifdef ZEND_WIN32
 # include "zend_config.w32.h"
 # define ZEND_PATHS_SEPARATOR  ';'
+#elif defined(riscos)
+# include "zend_config.h"
+# define ZEND_PATHS_SEPARATOR  ';'
 #else
 # include "zend_config.h"
 # define ZEND_PATHS_SEPARATOR  ':'

 sapi.tar.gz

-- 
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] RISC OS port

2001-09-10 Thread Alex Waugh


Hi

A while ago I port PHP to the RISC OS operating system, and now I've
finally got things in a reasonable state, and would like to merge some
of the changes into the main source tree.

There's only a handful of small patches to various files, and a new SAPI
module. Should I post the changes to this list, mail them to someone, or
apply for a CVS account? I don't envisage too many more changes, but
there might be the odd thing now and again if other peoples changes
cause things to break.

Thanks

Alex

-- 
Alex Waugh   [EMAIL PROTECTED]

RISC OS software from http://www.alexwaugh.com/

-- 
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] PHP logfile of PHP variables and scripts

2001-07-28 Thread Alex Vincent

One thing I've been thinking about recently is a desire for PHP to
provide a function whereby PHP scripts can log incoming variables (such
as $HTTP_POST_VARS) and the PHP scripts which process them.  Such a
function can prove very useful in knowing what a particular user has
done.

Of course, not every PHP script needs logging in this sense.  For
instance, if I grab a file from the server and dispatch it to the client
via PHP, that likely doesn't need logging.  But a PHP script call which
includes dropping a MySQL database is another matter...

I like the idea of autologging for two reasons.  One is to allow me to
easily construct a PHP script for replicating my work elsewhere,
including creating a database holding the same structure but no
information.  (This advances the cause of open-source development, in my
opinion.)  The other is in case someone uses a PHP script on my site
maliciously; not only will I be able to track down who did it, but I
will likely be able to restore more of what they damaged, entirely.

I wrote one possible autologger script.  My friend (who is much more
experienced in PHP than I am) expanded it somewhat.  I'd like to see
what the PHP development team thinks of adding an autologger function to
the PHP library of functions.

Say, logPHPInstance($filename) (which includes a boolean value to
disable the autologger function within the log, in case someone tries to
execute the log file all over again without editing it.)

http://freewarejava.com/ubb/Forum5/HTML/002241.html

Opinions?


-- 
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 #12254: PHP/gd compilation problems - gd.c:95: conflicting types for `gdIOCtx'

2001-07-19 Thread alex

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.19
PHP version:  4.0.6
PHP Bug Type: *Compile Issues
Bug description:  PHP/gd compilation problems - gd.c:95: conflicting types for 
`gdIOCtx'

Using gd 1.8.4 , php 4.0.6

./configure --with-mysql --with-fastcgi --with-gd=/usr/local/
--with-jpeg-dir=/usr/lib/ --enable-ftp --enable-trans-sid

Produces error :

gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:1209: (Each undeclared identifier is reported only once
gd.c:1209: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:1404: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1

-- 
Edit bug report at: http://bugs.php.net/?id=12254&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] Bug #12160: mysql_pconnect causes 99% CPU usage and system stop

2001-07-13 Thread alex

From: [EMAIL PROTECTED]
Operating system: OS/2
PHP version:  4.0.5
PHP Bug Type: MySQL related
Bug description:  mysql_pconnect causes 99% CPU usage and system stop

after the mysql_pconnect(dbhost, dbuser, dbpass) calling 
apache module causes 99% CPU usage and stops all the system

MySQL ver. 3.23.28gamma

PS. There is everything OK with the mysql_connect(dbhost, dbuser, dbpass);
-- 
Edit bug report at: http://bugs.php.net/?id=12160&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] Bug #8591 Updated: Build fails at main/main.c because XtOffset got defined to something bogus.

2001-07-03 Thread alex

ID: 8591
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: Compile Failure
Operating system: ARM/Linux (Titan VI)
PHP Version: snapshot 4-200106111635
Description: Build fails at main/main.c because XtOffset got defined to something 
bogus.

I just tried it with what appears to be the latest snapshot available at snaps.php.net 
(4-200106111635)- 6th of July? It still has the bug, my original description applies 
exactly. Sorry for not replying earlier but I didn't have access to the machine at the 
time, then I forgot about it until you sent the reminder just now.

Previous Comments:
---

[2001-07-03 04:51:48] [EMAIL PROTECTED]

No feedback

---

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

Could you please try the latest CVS snapshot from
http://snaps.php.net/ to see if this is fixed or not?

--Jani


---

[2001-05-23 13:53:24] [EMAIL PROTECTED]

Could you please try the latest CVS snapshot from 
http://snaps.php.net/ to see if this is fixed now.

--Jani


---

[2001-01-08 05:41:49] [EMAIL PROTECTED]

I believe the problem is that __arm is defined but LINUX is not, so main/php.h 
#defines XtOffset(p_type,field) to _Offsetof(p_type,field), and _Offsetof() is not 
defined on Linux, which causes lots of parse errors and a build failure. Simply 
commenting out the offending part of php.h allows the build to succeed, but this 
probably isn't the correct fix.

---


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


-- 
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 #11727: Forbidden Access to CVS

2001-06-27 Thread alex . holt

From: [EMAIL PROTECTED]
Operating system: Website
PHP version:  4.0 Latest CVS (2001-06-27)
PHP Bug Type: Unknown/Other Function
Bug description:  Forbidden Access to CVS

I dont know if this is the right place to report it, but I can't access the CVS page 
listed on the FAQ page on your site:
http://cvsweb.php.net/viewcvs.cgi/phpweb/include/shared.inc?rev=1.123&content-type=text/vnd.viewcvs-markup

Are the permissions set correctly at your end?
Thanks for your time.

A. Holt


-- 
Edit Bug report at: http://bugs.php.net/?id=11727&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] Bug #11367 Updated: changing of current directory to "/" when session is to be saved

2001-06-18 Thread alex

ID: 11367
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *Session related
Operating system: OS/2
PHP Version: 4.0.5
Description: changing of current directory to "/" when session is to be saved

1. This example is based on the one from PHP Manual.
So, you probably should fix the manual.
2. Originally "sess_" was there. But there was no difference.
3. "log" was made only for loggin'. The basis of the bug is that two(!) log files are 
created, one in current dir, another in the root, but there is no manual directory 
changing in my example!

Previous Comments:
---

[2001-06-14 13:48:28] [EMAIL PROTECTED]
This example of yours is bogus. 
1. you should prefix the func names with, e.g. sess_
2. you can't use same file to logging and storing session data. Session file has to be 
unique for each session.



---

[2001-06-08 15:55:52] [EMAIL PROTECTED]
===cut===

===cut===
-this will produce one "log" in the document-root directory and another in the root 
dir.

---


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


-- 
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] is php dev alive

2001-06-18 Thread alex

Apparently.

-- alex

On Mon, 18 Jun 2001, Jason Greene wrote:

> is the list back??
>
> -Jason
>
>
>


-- 
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] function suggestion

2001-05-20 Thread Alex Black

I would like to suggest a function:

get_defined_constants();
which returns an array of constant name/value pairs.

_alex


-- 
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] xslt problems

2001-05-16 Thread Alex Black

hi all,

I'm running sablot
(--with-sablot=/usr/local/Sablot)

and am getting very strange behavior surrounding xslt_process.

sometimes, I get a processed page. then (with no change in any of the
files), I'll get an error: "Fatal error: msgtype: error in..."

I did a little looking, and all I could find was some pissed-off looking bug
reports and a couple posts in various places.

So question:
-is this a bug?
-if so, great, that's that, wonderful to have a fix, etc.
-if not, uh, what am I doing wrong such that I get random fatal
errors form sablot?



any info much appreciated.

xslt freaking rocks...

_alex


-- 
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 #10892: error on PHP.INI distributed for win32

2001-05-16 Thread alex . tuveri

From: [EMAIL PROTECTED]
Operating system: win32
PHP version:  4.0.5
PHP Bug Type: *Session related
Bug description:  error on PHP.INI distributed for win32

Dears,
the file PHP.INI distributed with foxserv or within the php405 work correctly but Just 
i installed a PHP program for ecommerce (i.e. theexchangeproject.org; note I tried 
others with the same result), several errors occurs.

I discovered that there is a little "bug" in:

[Session]
session.use_trans_sid=1
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /Temp; argument passed to save_handler

infact the variable session.save_path is "bad defined".
There are not any notes about the win versio. Infact substituiting /Temp with 
c:/php/temp all work fine.

Thank you for you attention,

ALEX TUVERI


-- 
Edit Bug report at: http://bugs.php.net/?id=10892&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 #10296 Updated:

2001-04-12 Thread Alex Cifuentes

hello, sorry the problem is in the moment of send one or more files in page 
html with php, the php version is 4.0.4 and exist error in the , in the last version of php for example php3 
it's very good, now then it's is the problem the send to file for email, 
understand me?...

sorry my language native is the spanish  the english study now in the 
school, sorry.

thanks for help, i need.

    by Alex C.
   city:Santiago -
   country:Chile


>From: Bug Database <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Bug #10296 Updated:
>Date: 11 Apr 2001 22:05:32 -
>
>ID: 10296
>Updated by: hholzgra
>Reported By: [EMAIL PROTECTED]
>Old-Status: Open
>Status: Bogus
>Bug Type: Performance problem
>PHP Version: 4.0.4pl1
>Assigned To:
>Comments:
>
>i'm not really sure what you are refering to
>if you are talking about the same problem i
>was thinking of, then yes, it should be fixed
>in the php4.0.5 release candidates and in current
>CVS
>
>if not -> resubmit *after reading Do's & Don'ts*
>   please
>
>
>Previous Comments:
>---
>
>[2001-04-11 17:21:13] [EMAIL PROTECTED]
>hello php, sorry i need an solutions for problems generate
>whit forms enctype="multipart/form-data" in the version of
>php more news, it's the problem is generate whit bad
>configuration in the new version of php?. please i need any
>solution!
>
>thanks - by [EMAIL PROTECTED]
>
>
>---
>
>
>
>ATTENTION! Do NOT reply to this email!
>To reply, use the web interface found at 
>http://bugs.php.net/?id=10296&edit=2
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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] PHP 4.0 Bug #9829:

2001-03-18 Thread alex

From: [EMAIL PROTECTED]
Operating system: win32
PHP version:  4.0.4pl1
PHP Bug Type: Arrays related
Bug description:  

";
}
?>
There are two problems (see result):

0 - N
1 - N
2 - N
3 - 
4 - 
5 - 
6 - 

There are no any warnings and errors.

I'm using default configuration.

PHP.INI
[PHP]

;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overriden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive=value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;   foo=; sets foo to an empty string
;   foo=none; sets foo to an empty string
;   foo="none"  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a dynamically
; loaded extension (either a PHP extension or a Zend extension), you may only
; use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).



; Language Options ;


engine=On   ; Enable the PHP scripting language engine under Apache
short_open_tag=On   ; allow the  tags 
are recognized.
asp_tags=Off ; allow ASP-style <% %> tags
precision=14; number of significant digits displayed in floating point numbers
y2k_compliance=Off  ; whether to be year 2000 compliant (will cause problems with 
non y2k compliant browsers)
output_buffering=Off; Output buffering allows you to send header lines (including 
cookies)
; even after you send body content, in the price of slowing PHP's
; output layer a bit.
; You can enable output buffering by in runtime by calling the output
; buffering functions, or enable output buffering for all files
; by setting this directive to On.
implicit_flush=Off  ; Implicit flush tells PHP to tell the output layer to flush 
itself
; automatically after every output block.  This is equivalent to
; calling the PHP function flush() after each and every call to print()
; or echo() and each and every HTML block.
; Turning this option on has serious performance implications, and
; is generally recommended for debugging purposes only.
allow_call_time_pass_reference=On   ; whether to enable the ability to force 
arguments to be 
; passed by reference at function-call time.  This method
; is deprecated, and is likely to be unsupported in future
; versions of PHP/Zend.  The encouraged method of specifying
; which arguments should be passed by reference is in the
; function declaration.  You're encouraged to try and
; turn this option Off, and make sure your scripts work
; properly with it, to ensure they will work with future
; versions of the language (you will receive a warning
; each time you use this feature, and the argument will
; be passed by value instead of by reference).

; Safe Mode
safe_mode=Off
safe_mode_exec_dir=
safe_mode_allowed_env_vars=PHP_ ; Setting certain 
environment variables
; may be a potential security breach.
; This directive contains a comma-delimited
; list of prefixes.  In Safe Mode, the
; user may only alter environment
; variables whose names begin with the
; prefixes supplied here.
; By default, users will only be able
; to set environment variables that begin
; with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP
; will let the user modify ANY environment
; variable!
safe_mode_pr

[PHP-DEV] PHP 4.0 Bug #9723: & not being encoded, invalid html

2001-03-13 Thread alex . dent

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.4pl1
PHP Bug Type: *Session related
Bug description:  & not being encoded, invalid html

php 4.0.4 pl1 does not correctly encode the & as & when
trans-sid is enabled. this is rather annoying because this
is simply invalid html. it does work only because browser
are used to all kinds of wrong code, but that´s not the problem.

ie. php writes url.php4?some=arg&PHPSESSID= where
url.php4?some=arg&PHPSESSID= would be correct.

& is a special xml/html char and must always be encoded in a
valid html document.


-- 
Edit Bug report at: http://bugs.php.net/?id=9723&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 #9451: Core maths problem with incrementation

2001-02-25 Thread alex

From: [EMAIL PROTECTED]
Operating system: Linux Redhat 6.0 (server)
PHP version:  4.0.4pl1
PHP Bug Type: Math related
Bug description:  Core maths problem with incrementation

I wrote a poll section for the company i work for, on www.sgl.net.au.
I was testing boundary and illegal values with my script, and i set the number of 
votes for one of the options to
-1, when i click "Vote" it takes the -1 and increments it. (taken from a mysql_db) 
when it finishes incrementing it the resulting vote number is -2

so 
$variable = - 1;
$variable++;


echo $variable prints out -2
The problem could be with mysql returning a positve integer only ,but i thought i'd 
mention it anyway



-- 
Edit Bug report at: http://bugs.php.net/?id=9451&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]




Re: [PHP-DEV] PHP 4.0 Bug #9310: apache segfault with simple phpscript (using mysql)

2001-02-16 Thread alex

Hi,

Can you try to isolate the bug producing code? The best is to send us as
small PHP script as is possible.

Thanks:

Sasha

On 17 Feb 2001 [EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> Operating system: linux 2.2.14
> PHP version:  4.0.4pl1
> PHP Bug Type: Reproduceable crash
> Bug description:  apache segfault with simple php script (using mysql)
>
> 0) [Sat Jan 13 14:02:13 2001]
>[notice] child pid 13927 exit signal Segmentation fault (11)
>
> -> this is what comes in the apache error log when I call the script
> with a php higher than 4.0.2. with the 4.0.2 it works fine. The page output
> is most of the time incomplete (stoping at a random place), but no "document 
>contains no data", or very seldom.
>
> 1) the scripts source are visible under http://www.omnis.ch/dev/php/
> (my first php script ever, 2 years ago, could be improved I know: but
>  it still should work without killing my webserver)
>
> 2) config.nice :
> #! /bin/sh
> #
> # Created by configure
>
> "./configure" \
> "--with-apxs=/usr/local/apache/bin/apxs" \
> "--enable-track-vars" \
> "--enable-safe-mode" \
> "--with-gd=../gd1.3" \
> "--with-ttf" \
> "--with-mysql=/usr/local" \
> "--with-ldap" \
> "--with-xml" \
> "--with-zlib" \
> "--with-zlib-dir" \
> "--enable-memory-limit" \
> "--with-recode" \
> "--with-dbase" \
> "--with-pdflib=/usr/local/src/web/pdflib3" \
> "--enable-ftp" \
> "$@"
>
> (also tried to remove some or all the modules -> no change)
>
>
> 3) no changes in php.ini (original file.dist)
>
> 4) linux server, intel, distribution: suse 6.4
>
> 5) gdb backtrace :
> omega:/usr/local/apache # gdb  /usr/local/apache/bin/httpd
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-suse-linux-gnu"...
> (gdb)  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X
> Undefined command: "-f".  Try "help".
> (gdb) run  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X
> Starting program: /usr/local/apache/bin/httpd -f /usr/local/etc/apache/httpd.conf  
>-D PHP4 -X
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x40001780 in _start () at rtld.c:142
> 142 rtld.c: No such file or directory.
> (gdb) cont
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x4018798c in ?? ()
> (gdb) bt
> #0  0x4018798c in ?? ()
> #1  0x40188321 in ?? ()
> #2  0x40187e0d in ?? ()
> #3  0x4027a280 in _erealloc (ptr=0x82de544, size=9, allow_failure=0) at 
>zend_alloc.c:288
> #4  0x402927bf in add_string_to_string (result=0xbfffc060, op1=0xbfffc060, 
>op2=0x82dd42c) at zend_operators.c:1003
> #5  0x40285928 in execute (op_array=0x82c614c) at ./zend_execute.c:1389
> #6  0x402887e1 in execute (op_array=0x82c569c) at ./zend_execute.c:2063
> #7  0x40295c7b in zend_execute_scripts (type=8, file_count=3) at zend.c:729
> #8  0x402a95b1 in php_execute_script (primary_file=0xb554) at main.c:1221
> #9  0x402a588b in apache_php_module_main (r=0x807f62c, display_source_mode=0) at 
>sapi_apache.c:89
> #10 0x402a62a4 in send_php (r=0x807f62c, display_source_mode=0, filename=0x0) at 
>mod_php4.c:516
> #11 0x402a62dd in send_parsed_php (r=0x807f62c) at mod_php4.c:527
> #12 0x40053f23 in _ufc_foobar () from /lib/libcrypt.so.1
> #13 0x4006dc79 in ?? () from /usr/lib/libgdbm.so.2
> #14 0x4006dcfb in ?? () from /usr/lib/libgdbm.so.2
> #15 0x40062ccc in _ufc_foobar () from /lib/libcrypt.so.1
> #16 0x40062ef7 in _ufc_foobar () from /lib/libcrypt.so.1
> #17 0x400630c6 in _ufc_foobar () from /lib/libcrypt.so.1
> #18 0x400638de in _ufc_foobar () from /lib/libcrypt.so.1
> #19 0x40064390 in _ufc_foobar () from /lib/libcrypt.so.1
> #20 0x80487fd in ?? ()
> #21 0x40143313 in token () at ruserpass.c:292
> (gdb)
>
>
>
> Voila, I hope it will help you!
> If you have any question / patch to try, please ask.
>
> Regards,
> Olivier
>
>
>

-- 
Alexander Feldman
Zend Technologies Ltd.
phone: +972 3 6139665 ext. 107, fax: +972 3 6139671
http://www.zend.com


-- 
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 #9213: pg_connect and postgres unstable

2001-02-11 Thread alex

From: [EMAIL PROTECTED]
Operating system: RedHat 7.0
PHP version:  4.0.4pl1
PHP Bug Type: PostgreSQL related
Bug description:  pg_connect and postgres unstable

I think that the bugs 

#9123 and #9185 need to be fixed a soon as possible.
I have been using php on an high loaded machine and after 1-2 hours postgres and httpd 
need to be restarted.
I tried to change all pg_connect to pg_pconnect but without success!

I have tried latest CVS but problem persist!


Alex


-- 
Edit Bug report at: http://bugs.php.net/?id=9213&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] PHP 4.0 Bug #6677 Updated: Compile with native xlC varfs: duplicate def for int8

2001-02-02 Thread Alex Akilov

This problem does still exist.  However, the following workaround should
take care of it.  Unfortunately, I don't have the karma to commit it so
would some powerful being check out the following fix and take care of
it for me?  Thanks.

Index: ext/mysql/libmysql/global.h
===
RCS file: /repository/php4/ext/mysql/libmysql/global.h,v
retrieving revision 1.7
diff -u -r1.7 global.h
--- ext/mysql/libmysql/global.h 2001/01/23 16:48:49 1.7
+++ ext/mysql/libmysql/global.h 2001/02/02 19:52:49
@@ -544,7 +544,7 @@
 #else
 typedef char   *gptr;  /* Generic pointer */
 #endif
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef char   int8;   /* Signed integer >= 8  bits */
 typedef short  int16;  /* Signed integer >= 16 bits */
 #endif
@@ -555,12 +555,12 @@
 typedef unsigned short uint16; /* Short for unsigned integer >= 16 bits
*/

 #if SIZEOF_INT == 4
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef intint32;
 #endif
 typedef unsigned int   uint32; /* Short for unsigned integer >= 32 bits
*/
 #elif SIZEOF_LONG == 4
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef long   int32;
 #endif
 typedef unsigned long  uint32; /* Short for unsigned integer >= 32 bits
*/


-- 
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] static IBM DB2 ODBC client library (libdb2.a) for linux

2001-01-29 Thread alex

Hi guys,

Do you have an idea from where one can download a static IBM DB2 client
library for linux? In the morning I thought - from the site of IBM
but after several hours browsing/downloading/reading of docs I felt myself
totally disoriented and decided to ask for help.

Until now, I could not find any signs that such an animal even exists. I
have only IBM DB2 Universal Database v 7.1 for Linux but there is only a
dynamic multi-threaded library (ibmdb2.so) with it.

Thank you very much:

-- alex


-- 
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] PHP 4.0 Bug #8930: Apache crash when i try to restart service

2001-01-26 Thread alex

From: [EMAIL PROTECTED]
Operating system: windows 2000 professional
PHP version:  4.0.4pl1
PHP Bug Type: Apache related
Bug description:  Apache crash when i try to restart service

php.ini - don't load any modules

in Apache, PHP load like module, i described in install.txt from php.

when i comment loading php module in httpd.conf, apache restart/shutdown without 
crashing.



-- 
Edit Bug report at: http://bugs.php.net/?id=8930&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]




Re: [PHP-DEV] building php4 on windows && what's up with libmysql?

2001-01-23 Thread Alex Akilov

Jim,

I can't answer if cygwin is really necessary but it's quite useful
(especially for those that are used to unix style commands).  For
one it contains things like tar and gzip which were necessary
at one point to extract number.tar.gz as well as the PHP source
snapshots (although most Win unzip utilities can do the job also).
Maybe Sam Ruby, who I believe wrote the original set of instructions,
can chime in here.

Speaking of which, I tried to build with the latest CVS and I keep
getting the following link errors.  I guess I can open a bug report but
just curious if anyone knows off hand what happened.

Configuration: php4dllts - Win32
Release_TSDbg
Linking...
   Creating library ..\Release_TSDbg/php4ts.lib and object
..\Release_TSDbg/php4ts.exp
string.obj : error LNK2001: unresolved external symbol _add_index_zval
string.obj : error LNK2001: unresolved external symbol
_add_assoc_zval_ex
libmysql.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol _win_pthread_init
libmysql.lib(my_compress.obj) : error LNK2001: unresolved external
symbol _compress
libmysql.lib(my_compress.obj) : error LNK2001: unresolved external
symbol _uncompress
..\Release_TSDbg\php4ts.dll : fatal error LNK1120: 5 unresolved
externals
Error executing link.exe.

Alex


-- 
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] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

Jim,

Only one minor correction.  The link in win32build to the bindlib
file is now pointing at "extra" but is still labeled "download".  No
biggie, but since we're striving for purfection :-).

Alex


-- 
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] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

Ahh yes.  That's better.  Thanks Jim.

Alex


-- 
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] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

James,

Not so sure all of it is in CVS.  For example, there used to be
a bindlib.dsp/dsw and a bunch of source files (e.g. res*.c)
that I seem to recall which I can't find anywhere anymore.  In fact,
the bindlib_w32 directory in CVS doesn't seem to contain much
in terms of actual files.

Either way, the win32build instructions should have been corrected.

Alex


-- 
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] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

The version4\download directory used to contain some of the files that
are referred to in the version4\win32build.php instructions.  Though
one of the files (number.tar.gz) can still be found in the base download

directory, it appears that the bindlib_w32 has now vanished.
Makes building on win32 kinda hard.  I hope whoever deleted it can
put it back or at least update the win32build instructions so that we
can
continue to use that platform.

Alex


-- 
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] **** Access denied: Insufficient Karma (lyric|phpweb/include)

2001-01-17 Thread Alex Akilov

I'm having the same problem and so is Bill Stoddard.  Our id's are
akilov and stoddard respectively.

Did we all get bounced for insufficient activity of late?

Here's the change I was trying to commit:

Index: ext/java/config.m4
===
RCS file: /repository/php4/ext/java/config.m4,v
retrieving revision 1.21
diff -u -r1.21 config.m4
--- ext/java/config.m4  2000/12/19 00:14:57 1.21
+++ ext/java/config.m4  2001/01/17 22:23:04
@@ -10,6 +10,12 @@
   if test "$withval" != "no"; then
 JAVA_SHARED="libphp_java.la"

+pltform=`uname -s 2>/dev/null`
+java_libext="libjava.so"
+case "$pltform" in
+  AIX) java_libext="libjava.a" ;;
+  HP-UX) java_libext="libjava.sl" ;;
+esac
 # substitute zip for systems which don't have jar in the PATH
 if JAVA_JAR=`which jar 2>/dev/null`; then
   JAVA_JAR="$JAVA_JAR cf"
@@ -29,6 +35,7 @@
   JAVA_INCLUDE=-I$withval/include/kaffe
   JAVA_CLASSPATH=$withval/share/kaffe/Klasses.jar
   JAVA_LIB=kaffevm
+  java_libext=kaffevm

   test -f $withval/lib/$JAVA_LIB && JAVA_LIBPATH=$withval/lib
   test -f $withval/lib/kaffe/$JAVA_LIB &&
JAVA_LIBPATH=$withval/lib/kaffe
@@ -38,7 +45,7 @@
 JAVA_JAR='zip -q0'
   fi

-elif test -f $withval/lib/libjava.so; then
+elif test -f $withval/lib/$java_libext; then
   JAVA_LIB=java
   JAVA_LIBPATH=$withval/lib
   JAVA_INCLUDE="-I$withval/include"
@@ -63,10 +70,12 @@
 test -f $i/classes.zip && JAVA_CLASSPATH="$i/classes.zip"
 test -f $i/rt.jar  && JAVA_CLASSPATH="$i/rt.jar"

-   if test -f $i/libjava.so; then
+if test -f $i/$java_libext; then
   JAVA_LIB=java
   JAVA_LIBPATH=$i
+  test -d $i/hotspot && AC_ADD_LIBPATH($i/hotspot)
   test -d $i/classic && AC_ADD_LIBPATH($i/classic)
+  test -d $i/server && AC_ADD_LIBPATH($i/server)
   test -d $i/native_threads &&
AC_ADD_LIBPATH($i/native_threads)
 fi
   done
@@ -81,7 +90,7 @@

 AC_DEFINE(HAVE_JAVA,1,[ ])
 AC_ADD_LIBPATH($JAVA_LIBPATH)
-JAVA_CFLAGS="$JAVA_CFLAGS
'-DJAVALIB=\"$JAVA_LIBPATH/lib$JAVA_LIB.so\"'"
+JAVA_CFLAGS="$JAVA_CFLAGS
'-DJAVALIB=\"$JAVA_LIBPATH/$java_libext\"'"

 if test "$PHP_SAPI" != "servlet"; then
   PHP_EXTENSION(java, shared)

Alex


-- 
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] PHP 4.0 Bug #8758: Lots of zero-sized files remain in directory for tmp files uploaded via POST

2001-01-17 Thread Alex Kapranoff

On Wed, Jan 17, 2001 at 03:48:58PM +0200, Jani Taskinen wrote:
> On 17 Jan 2001 [EMAIL PROTECTED] wrote:
> 
> >From: [EMAIL PROTECTED]
> >Operating system: FreeBSD
> >PHP version:  4.0.4pl1
> >PHP Bug Type: Filesystem function related
> >Bug description:  Lots of zero-sized files remain in directory for tmp files 
>uploaded via POST
> >
> >I have a form with some type="file" fields for uploading images.
> >If a user really fills a field, then I can handle the file properly and it gets 
>deleted from ./tmp dir on script
> >completion. But if a user leaves the field empty, php creates a zero-sized file in 
>./tmp and does not
> >delete it. I even don't have to delete myself, because I get 'none' as filename 
>inside my script.
> >
> >After a month of heavy use, I have a REALLY huge ./tmp directory full of zero-sized 
>files named like
> >phpsC7799 (example).
> 
> Are you REALLY using 4.0.4pl1 ??? As this should be fixed.

  Uhm, that my fault. This is 4.0.3. I confirm that the bug is fixed
in 4.0.4pl1. I've just closed the bug-report. Thanks anyway.

-- 
Alex Kapranoff,
+7(0832)791845

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