[PHP-DEV] Security question with PHP on Unix / Linux.

2003-02-04 Thread Ananth Kesari
Hi,

At this point of time, I am trying to understand the way security is
implemented for PHP on Unix / Linux. I mean, how are the different users
distinguished in Unix / Linux. Do they get to login into the Unix /
Linux system through separate accounts? In that case, do they have
separate data space for each user? What is the API that is used to login
to Unix / Linux. User may enter his username and password on the
browser, but how do they get translated onto the Unix / Linux box?

The end goal is to separate out uses and to make sure that normal users
(who do not have admin rights) do not get to read a file, write into a
file etc from areas that they have no access rights into. How is this
access rights set in Unix / Linux?

Your help in this is appreciated.

Thanks,
Ananth.


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




Re: [PHP-DEV] Security question with PHP on Unix / Linux.

2003-02-04 Thread Ananth Kesari
Hi Dan,

I am a newbie to Unix systems and so it is very much possible to
misunderstand concepts there:-( Well, I had first posted this on the PHP
general list. Got no response there and so posted onto this mailing
list. Maybe I will again go back to the general list.

Thanks,
Ananth.

 Dan Hardiker [EMAIL PROTECTED] 02/04/03 04:18PM

 At this point of time, I am trying to understand the way security is
 implemented for PHP on Unix / Linux. I mean, how are the different
users
 distinguished in Unix / Linux. Do they get to login into the Unix /
 Linux system through separate accounts? In that case, do they have
 separate data space for each user? What is the API that is used to
login
 to Unix / Linux. User may enter his username and password on the
 browser, but how do they get translated onto the Unix / Linux box?

 The end goal is to separate out uses and to make sure that normal
users
 (who do not have admin rights) do not get to read a file, write into
a
 file etc from areas that they have no access rights into. How is
this
 access rights set in Unix / Linux?

As this shows a basic mis-understanding of the way Unix based /
look-a-like operating systems work, and how PHP is executed... this is
definatly a question for the php general list
([EMAIL PROTECTED]).

This forum is for discussion about the constructs that form PHP
itself,
not its implementation or its use.


-- 
Dan Hardiker [[EMAIL PROTECTED]] 
ADAM Software  Systems Engineer
First Creative



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


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




Re: [PHP-DEV] Re: Mandatory File Locking in PHP?

2003-01-30 Thread Ananth Kesari
So, as of now, do we restrict PHP script to use only advisory file locking?

Thanks,
Ananth.

 George Schlossnagle [EMAIL PROTECTED] 01/30/03 06:54AM 

On Wednesday, January 29, 2003, at 07:11  PM, Marcus Börger wrote:


 The real question is why you need mandatory locks and not advisory 
 locks.  If everyone is playing on the same team, advisory locks 
 should provide all the semantics you need (and are very portable).  
 Mandatory locks (on linux at least) require not only special mount 
 options, but special perms to the file (g-x, g+s, I believe).  That 
 seems like a lot to require inside an extension.

 The dba solution so far is based on flock() and where not appropriate 
 use fctnl().
 I tried to have the lock stuff working on as many systems as possible.

Right.  Both of these are pretty portable, one being present on all 
BSD-style systems and the other on POSIX systems.  They are also 
advisory locks.  Mandatory locks actually prevent read and write calls 
from _anyone_ else succeeding on that file.  On linux, mandatory locks 
are set with fcntl, but it's not part of the standard POSIX standard.


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



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




[PHP-DEV] system() function call: Strange error on NetWare!

2003-01-30 Thread Ananth Kesari
Hi,

I am using the system function on NetWare. I find the following strange
error:

1. If I use single quoted strings, then I don't have any problem with
any combination of the slash.
system('sys:\system\p.nlm');// WORKS
system('sys:\\system\\p.nlm');  // WORKS
system('sys:\system\r.nlm');// WORKS
system('sys:\\system\\r.nlm');  // WORKS

2. If I use doble quoted string then it works in these cases:
system(sys:\system\p.nlm);// WORKS
system(sys:\\system\\p.nlm);  // WORKS
system(sys:\\system\\r.nlm);  // WORKS

3. If I use double quoted string and I use single slash and the nlm
name starts with 'n' or 'r' or 't', then the system function call fails
to load the nlm thought the nlm is present in the given location. That
is the below does not work:
system(sys:\system\r.nlm);// WORKS

This erros appears to be strange with only three letters not being
allowed. Can anyone throw some light as to what is happening here? Could
there be a mistake in the NetWare port?

I have debugged to the point that:
- In zend_execute.c, the execution comes to the execute function.
- Inside that it comes upto  case ZEND_DO_FCALL:
- There is gets into the ZEND_INTERNAL_FUNCTION where it does a
ALLOC_ZVAL and INIT_ZVAL.
- Then it calls the correspoing Internal Function which in this case is
system.
- Inside the system function, if we pring the Z_STRVAL_PP(arg1), we
find that it is only contains value like sys:\system for the last case
(mentioned above) for which there is error.

Thanks,
Ananth.


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




Re: [PHP-DEV] system() function call: Strange error onNetWare!

2003-01-30 Thread Ananth Kesari
oh oh... Why didn't I think of this earlier!?:-)
Thanks anyway...

 Derick Rethans [EMAIL PROTECTED] 01/30/03 03:33PM 
On Thu, 30 Jan 2003, Ananth Kesari wrote:

 Hi,
 
 I am using the system function on NetWare. I find the following
strange
 error:
 
 1. If I use single quoted strings, then I don't have any problem
with
 any combination of the slash.
 system('sys:\system\p.nlm');  // WORKS
 system('sys:\\system\\p.nlm');// WORKS
 system('sys:\system\r.nlm');  // WORKS
 system('sys:\\system\\r.nlm');// WORKS
 
 2. If I use doble quoted string then it works in these cases:
 system(sys:\system\p.nlm);  // WORKS
 system(sys:\\system\\p.nlm);// WORKS
 system(sys:\\system\\r.nlm);// WORKS
 
 3. If I use double quoted string and I use single slash and the nlm
 name starts with 'n' or 'r' or 't', then the system function call
fails
 to load the nlm thought the nlm is present in the given location.
That
 is the below does not work:
 system(sys:\system\r.nlm);  // WORKS
 
 This erros appears to be strange with only three letters not being
 allowed. Can anyone throw some light as to what is happening here?
Could
 there be a mistake in the NetWare port?

If used in a  string, these characters have the following meaning:
\r = #13 (CR)
\n = #10 (LF)
\t = #9  (tab)

so that's the reason why it doesnt work.

Derick

-- 

-
 Derick Rethans
http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals  
http://php-mag.net/ 
-


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


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




[PHP-DEV] Mandatory File Locking in PHP?

2003-01-29 Thread Ananth Kesari
Hi,

From the PHP manual I find that the flock() function does a advisory
file locking. Is there a way to do mandatory file locking where we do
strict locking? That is once a file is locked, no other process or
thread is allowed to edit the file untill the lock owner is done with
his job and he has removed the lock.

Thanks,
Ananth.


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




Re: [PHP-DEV] PHP building on Linux: A question on configurescript!

2003-01-06 Thread Ananth Kesari
Hi,

Please refer to the mail given below that I sent you earlier. You had
told us that --with-apxs is the way to go. But we still have the same
issue.

Let me explain:

We currently use apxs to build a PHP DSO for Apache 1.3. We haven't
gotten around to trying it for Apache 2.0 yet. The problem we have is
that the core PHP piece, which used to be in a separate loadable module
called phplib.l, is not produced anymore. But this is part of one single
PHP Apache module php_apache.sim, which is specific to Apache 1.3. As
you can see, if we want to build PHP for Apache 2.0, then we would have
to produce another DSO for Apache 2.0 (php_apache2.sim or something
like that) which will *also* have embedded in the core PHP part that was
in phplib.l (.l indicates a shared library, .SIM is also a shared
library, but a special one.)

What we are looking for is to find out whether or not the current
autotool input files of PHP support the ability to produce a spearate
phplib.l and the appropriate main module - one for Apache 1.3, one for
Apache 2.0, one for command line etc. each of which can use the same
phplib.l ?

We tried to figure this out on Linux, but it appears that this seems
not to be supported. Are we correct in our findings? Or is there really
a way of doing the above of having different shared modules?

Your clarifications on this is highly appreciated.

Thanks,
Ananth.

 Ananth Kesari [EMAIL PROTECTED] 12/13/02 08:00PM 
Hi,

I am involved in porting PHP for NetWare.

We are now looking at and trying to understand how PHP is built on
Linux. I have a question for the same. It could be a newbie question on
configure script since we are new to Linux. Please help.

The question is like this:

On NetWare:
We generate mod_php executable as the Apache module which Apache loads
when appropriately configured. This in turn will use the phplib
executable which has the TSRM, ZEND, all the standard extensions and
libraries built into it. Then we have separate executables for
extensions like MySQL, LDAP, XML etc.

On Linux:
We are trying to look at building a similar binaries on Linux also. Is
that how it is done on Linux also?

To build for Apache on Unix, it appears that we have to use the
following options in the configure script to get the equivalent of what
I mentioned above:

--with-apache=Path to Apache source --disable-posix 
--with-mysql=shared --with-ldap=shared --enable-ftp --enable-bcmath 
--enable-calendar

The problem in this approach is that we seem to be getting a static
library (xxx.a) as an output. We are not clear what we are supposed to
do with this library! Perhaps this needs to be then built along with
Apache into the Apache executable.

There is an option called:

--with-apxs=path to the apxs script of Apache

which seems to produce a DSO which doesn't seem to work on Linux. The
build fails due to errors in the apxs script.

So, isn't it possible to produce on Linux, the equivalent of what I
mentioned above for NetWare? If so, what options do we need to use for
the configure process? We need to understand whether we are not using
the right options or whether it is simply not possible to do so with
what we have. The latter meaning that we need to make the necessary
modifications to the input files to get what we want.

Your early reply on this is highly appreciated.

Thanks,
Ananth.


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




Re: [PHP-DEV] PHP building on Linux: A question on configurescript!

2003-01-06 Thread Ananth Kesari
Hi Jean,

Thanks for your elaborate reply with the work around. I also got the files you sent. 
We will try this and get back to you if we have any issues.

Thanks,
Ananth.

 Jean-Michel Dault [EMAIL PROTECTED] 01/06/03 10:19PM 
Le lun 06/01/2003 à 07:24, Ananth Kesari a écrit :
 What we are looking for is to find out whether or not the current
 autotool input files of PHP support the ability to produce a spearate
 phplib.l and the appropriate main module - one for Apache 1.3, one for
 Apache 2.0, one for command line etc. each of which can use the same
 phplib.l ?
 
 We tried to figure this out on Linux, but it appears that this seems
 not to be supported. Are we correct in our findings? Or is there really
 a way of doing the above of having different shared modules?

It is not supported officially, but there's a way to do it.

As I promised a couple of days ago, here is a solution that works for
me, though it's not very pretty. I could of course modify the m4 files,
but it's left as an exercise to the readers of this list ;-) 

Here is the procedure:
1) Patch the makefile.global and configure script using the
shared-patch I enclosed in this mail. This will compile a shared
library containing the PHP core, and will patch the CGI and CLI version
so they use this library.

2) do ./configure, with all the options that you want, but do *not* use
the --with-apache or --with-apxs options. You want to compile first the
CGI and CLI binaries and the shared library.

3) do a make, but do not do a make install yet.

4) To compile the Apache 1.3 module, use the enclosed do1.3 script.
   If your Apache environment is setup correctly, you will have a
   libphp4.so in the sapi/apache directory. This is the Apache DSO that
   you'll need to copy in your Apache 1.3 modules directory.

5) To compile the Apache 2.0 module, use the enclosed do2.0 script.
   If your Apache environment is setup correctly, you will have a 
   mod_php4.so in the sapi/apache2filter/.libs directory. This is the
   Apache 2.0 DSO that you'll need to copy in your Apache 2.0 modules
   directory.

   Please note that to be able to compile both Apache 1.3 and Apache 2.0
   modules, you need two different apxs binaries and two different
   apache include directories. I personnaly use the following dirs:
   Apache 1.3: /usr/sbin/apxs and /usr/include/apache for 1.3 
   Apache 2.0: /usr/sbin/apxs2 and /usr/include/apache2

6) Finally, place the libphp_common library in /usr/lib
   mv libphp_common.so libphp_common.so.430
   ln -s libphp_common.so.430 libphp_common
   cp libphp_common* /usr/lib

7) Now do a make install, make install-cli

8) Finally, you can install sapi/cgi/php to whatever location/name you
   want that is different from the CLI version.

9) You'll still need to tweak your httpd.conf to put the required
   LoadModule, AddModule and AddType directives.

10) Or better yet, install Mandrake Linux and have it already
pre-configured ;-)


Regards,

Jean-Michel Dault
Apache/PHP Packager
Mandrake Linux



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




Re: [PHP-DEV] PHP building on Linux: A question on configurescript!

2002-12-16 Thread Ananth Kesari
Well, we could figure out this as of now. Thanks for your response. We will get back 
if we have further problems.

Thanks,
Ananth.

 Derick Rethans [EMAIL PROTECTED] 12/13/02 08:04PM 
Hi,

On Fri, 13 Dec 2002, Ananth Kesari wrote:

 To build for Apache on Unix, it appears that we have to use the
 following options in the configure script to get the equivalent of
 what I mentioned above:
 
 --with-apache=Path to Apache source --disable-posix 
 --with-mysql=shared --with-ldap=shared --enable-ftp --enable-bcmath 
 --enable-calendar
 
 The problem in this approach is that we seem to be getting a static
 library (xxx.a) as an output. We are not clear what we are supposed to
 do with this library! Perhaps this needs to be then built along with
 Apache into the Apache executable.

Yup, you're correct with that statement.

 
 There is an option called:
 
 --with-apxs=path to the apxs script of Apache
 
 which seems to produce a DSO which doesn't seem to work on Linux.
 The build fails due to errors in the apxs script.

--with-apxs would be the way to go, what errors do you get? Are you
using Apache 1.3 or a 2.0 series?

Derick

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/ 
-


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



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




[PHP-DEV] PHP building on Linux: A question on configure script!

2002-12-13 Thread Ananth Kesari
Hi,

I am involved in porting PHP for NetWare.

We are now looking at and trying to understand how PHP is built on Linux. I have a 
question for the same. It could be a newbie question on configure script since we are 
new to Linux. Please help.

The question is like this:

On NetWare:
We generate mod_php executable as the Apache module which Apache loads when 
appropriately configured. This in turn will use the phplib executable which has the 
TSRM, ZEND, all the standard extensions and libraries built into it. Then we have 
separate executables for extensions like MySQL, LDAP, XML etc.

On Linux:
We are trying to look at building a similar binaries on Linux also. Is that how it is 
done on Linux also?

To build for Apache on Unix, it appears that we have to use the following options in 
the configure script to get the equivalent of what I mentioned above:

--with-apache=Path to Apache source --disable-posix 
--with-mysql=shared --with-ldap=shared --enable-ftp --enable-bcmath 
--enable-calendar

The problem in this approach is that we seem to be getting a static library (xxx.a) as 
an output. We are not clear what we are supposed to do with this library! Perhaps this 
needs to be then built along with Apache into the Apache executable.

There is an option called:

--with-apxs=path to the apxs script of Apache

which seems to produce a DSO which doesn't seem to work on Linux. The build fails 
due to errors in the apxs script.

So, isn't it possible to produce on Linux, the equivalent of what I mentioned above 
for NetWare? If so, what options do we need to use for the configure process? We need 
to understand whether we are not using the right options or whether it is simply not 
possible to do so with what we have. The latter meaning that we need to make the 
necessary modifications to the input files to get what we want.

Your early reply on this is highly appreciated.

Thanks,
Ananth.



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




[PHP-DEV] Help requested: Memory leak in PHP for NetWare

2002-11-26 Thread Ananth Kesari
Hi,

We are seeing a large memory leak in PHP 4.2.3 for NetWare. We just load mod_php 
alongwith apache 1.3 and then unload apache without executing any script. We find that 
there is a memory leak of about 14KB. The same is observed when we load the command 
line version of PHP also and unload it.

In fact, it was earlier leaking about 55KB. We added the following code in the 
zend_shutdown function in zend.c. These release about 21KB.
  destroy_zend_class(zend_standard_class_def);
  zend_hash_destroy(EG(persistent_list));
  zend_hash_destroy(EG(zend_constants));
  free(EG(zend_constants));
  zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
  free(GLOBAL_CONSTANTS_TABLE);

Can you throw some light on how we can go about releasing the other 14KB? I feel the 
extra is also in Zend. Or is it that Apache may be caching some memory and freeing it 
after some time. But this doesn't explain why the command line PHP (cli) is also 
leaking memory.

This is quite a critical issue with NetWare customers and so your help in this is 
deeply appreciated.

Thanks,
Ananth.



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




[PHP-DEV] Help requested: Memory leak in PHP 4.2.3 for NetWare.

2002-11-26 Thread Ananth Kesari
Hi,

We are seeing a large memory leak in PHP 4.2.3 for NetWare. We just load mod_php 
alongwith apache 1.3 and then unload apache without executing any script. We find that 
there is a memory leak of about 14KB. The same is observed when we load the command 
line version of PHP also and unload it.

In fact, it was earlier leaking about 55KB. We added the following code in the 
zend_shutdown function in zend.c. These release about 21KB.
  destroy_zend_class(zend_standard_class_def);
  zend_hash_destroy(EG(persistent_list));
  zend_hash_destroy(EG(zend_constants));
  free(EG(zend_constants));
  zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
  free(GLOBAL_CONSTANTS_TABLE);

Can you throw some light on how we can go about releasing the other 14KB? I feel the 
leak is in Zend. Or is it that Apache may be caching some memory and freeing it after 
some time. But this doesn't explain why the command line PHP (cli) is also leaking 
memory.

This is quite a critical issue with NetWare customers and so your help in this is 
deeply appreciated.

Thanks,
Ananth.



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




[PHP-DEV] Error while checking-in files: cvs server: cannot lock ...

2002-10-30 Thread Ananth Kesari
Hi,

I am porting PHP for NetWare. Most of the NetWare
files are now committed into the CVS 4.2 source code
branch. But I am facing one problem while I am trying
to commit two batch files:
  BisonExtStandard.bat and BisonFlexZend.bat.

I have added these two files and it went through fine.
When I do a commit, I get the below messages:

cvs server: cannot lock `/repository/php4/netware/Attic/BisonExtStandard.bat,v'.

cvs server: cannot lock `/repository/php4/netware/Attic/BisonFlexZend.bat,v'.
cvs commit: saving log message in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\12

I have tried a few times and everytime I get the same
messages. I looked through the manual and could not
find an answer for this.

Can anyone help me out on this?

Thanks,
Ananth.



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




[PHP-DEV] Re: [PHP-CVS] Some NetWare files are not getting committed.

2002-10-29 Thread Ananth Kesari
This worked fine! Thanks for this input.

- Ananth.

 Edin Kadribasic [EMAIL PROTECTED] 10/29/02 03:18PM 
Adding folder is not enough. You need to add the files within the
folder as well.

Hope this helps,
Edin
- Original Message -
From: Ananth Kesari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 10:32 AM
Subject: Re: [PHP-CVS] Some NetWare files are not getting committed.


Thanks for the inputs. Still I do not get NetWare folder.

I did the following:

1.
In the .cvsrc file:
  cvs -z3
  update -d
  checkout -P
  diff -u

I did:
  cvs add -m NetWare related files. netware

The netware folder had all the files within it with a sub-directory
also by name sys. I got a list of all these files and was told that
these were added. Then I went into the sys sub-directory and added
it also with the files within it. It told me that those files were
added too.

Then I did:
  cvs commit -m NetWare related files. netware

It said:
  Examining netware
  Examining netware\sys

Then it came out without doing anything.

Then when I did: cvs co -r PHP_4_2_0 php4, I still DON'T get the
netware folder.

2.
I tried all the above with the following entries in the .cvsrc file:
  cvs -z3
  update -d
  diff -u

Still the same result. I do not get netware folder when I do a
check-out.

For your information, NetWare and sys folders were not empty when I
first did the add and commit last Friday and also yesterday.

Can you let me know what to do now?

Thanks,
Ananth.

 Melvyn Sopacua [EMAIL PROTECTED] 10/28/02 08:55PM 
At 15:49 28-10-2002, Ananth Kesari wrote:

But I need to add a folder by name, netware with
some NetWare specific files within it. These are NOT
getting committed. If I add it gets added. I once
committed on Thursday. Now, if I commit, it verifies
and does nothing indicating that it is already committed.
But if I check-out the 4.2 project, I do not get
the netware folder.

Can anyone tell me what's wrong? I am a beginner
to this CVS process and so I may be missing something
even simple or obvious.

Since you probably have update -d -P in your ~/.cvsrc like
you should, the directory won't show up, untill you commit
files in them.

Remove the -P option from your ~/.cvsrc directory temporarily
to get the netware directory back.

-P means prune, which deletes empty dirs
-d means create new directory

that's cause the conflict.

HTH


With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?


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



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




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



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




[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_2_0)/ext/bcmath/libbcmath/src config.h

2002-10-24 Thread Ananth Kesari
Hi,

NetWare has a very old PHP, version 4.0.8! We are moving to a later stabler version 
for release on NetWare next month. In that connection Zeev Suraski suggested that we 
move to 4.2 branch which is significantly more stabler than 4.3 branch. So, I am 
checking in files for the 4.2 branch so that our sources are in synch there for any 
possible future releases from that branch. I mentioned this to this group earlier and 
the mail is attached.

We have checked-in most of the files already for the 4.3 branch as well. We will be 
completing that also soon.

Thanks,
Ananth.

 Sebastian Bergmann [EMAIL PROTECTED] 10/24/02 05:22AM 
Anantha Kesari H Y wrote:
 hyanantha   Thu Oct 24 05:15:12 2002 EDT

   Modified files:  (Branch: PHP_4_2_0)
 /php4/ext/bcmath/libbcmath/src  config.h
   Log:
   NetWare related changes/modifications.

  Why are all these patches committed to the (dead?) PHP_4_2_0 branch?

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

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

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


---BeginMessage---
Hi all,

I am working on porting PHP onto NetWare.
Currently, we are shipping the older version 4.0.8
on NetWare. We are moving to the latest stable version.
Zeev Suraski suggested that we move to 4.2 branch
since it is significantly more stable than 4.3 branch.

So, I would be checking in NetWare patches into the
4.2 source code branch in a few days from now.
This is for your information.

Thanks,
Ananth.



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



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


[PHP-DEV] Need write access into Zend and TSRM work areas.

2002-10-22 Thread Ananth Kesari
Hi,

I am working on porting PHP for NetWare. In that process I need to also write into 
Zend and TSRM work areas. And so, I need write access to these areas. I can write to 
other areas except these two.

Can you give me the write access at the earliest? I need to check-in files soon. I had 
asked this permission once some time earlier (about a couple of months back) also.

Thanks,
Ananth.



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




[PHP-DEV] NetWare changes to 4.2 source code branch.

2002-10-15 Thread Ananth Kesari

Hi all,

I am working on porting PHP onto NetWare.
Currently, we are shipping the older version 4.0.8
on NetWare. We are moving to the latest stable version.
Zeev Suraski suggested that we move to 4.2 branch
since it is significantly more stable than 4.3 branch.

So, I would be checking in NetWare patches into the
4.2 source code branch in a few days from now.
This is for your information.

Thanks,
Ananth.



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




[PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/xml xml.c

2002-09-06 Thread Ananth Kesari

Hi,

I am working on porting PHP for NetWare.
I am committing changes into the PHP CVS
source tree from a couple of days now.
James wrote to me today that I am doing
something wrong during commiting.
I wrote the below mail to him seeking clarifications,
but the mail bounced back!

Can anyone throw more light into this?

Thanks in advance,
Ananth.

 Ananth Kesari 09/06/02 05:19PM 
Hi,

What I am doing is that I got the latest PHP4 project
from CVS. Then applied only NetWare related
changes into some files within #ifdef NETWARE
blocks and then committed them. I did not change
any other things like header information, licences etc.
Of course, I added a couple of files under NetWare
folder that is being used for NetWare.

So, is there anything specific that you can tell me
which I am doing wrong? In fact, myself and one of my
colleagues have committed some changes earlier
the same way as I am doing now. Before we started
to commit changes, we had gone through
http://www.php.net/cvs-php.php and other related
document. Is there something else we need to know?

Please clarify.

Thanks,
Ananth.

 James Cox [EMAIL PROTECTED] 09/06/02 04:03PM 
Hi,

Please read PHP-CVS!

You are making a large number of commits that conflict with our policies,
including adding files with strange licenses and not adhering to our
whitespace policy.

Please do not commit again until you have addressed the concerns expressed
on-list.

Thanks,

 James

 -Original Message-
 From: Anantha Kesari H Y [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 06, 2002 11:21 AM
 To: [EMAIL PROTECTED] 
 Subject: [PHP-CVS] cvs: php4 /ext/xml xml.c


 hyanantha Fri Sep  6 06:20:39 2002 EDT

   Modified files:
 /php4/ext/xml xml.c
   Log:
   NetWare related changes/modifications


 Index: php4/ext/xml/xml.c
 diff -u php4/ext/xml/xml.c:1.107 php4/ext/xml/xml.c:1.108
 --- php4/ext/xml/xml.c:1.107  Sat Apr 13 01:06:33 2002
 +++ php4/ext/xml/xml.cFri Sep  6 06:20:39 2002
 @@ -17,7 +17,7 @@

 +--+
   */

 -/* $Id: xml.c,v 1.107 2002/04/13 05:06:33 mfischer Exp $ */
 +/* $Id: xml.c,v 1.108 2002/09/06 10:20:39 hyanantha Exp $ */

  #define IS_EXT_MODULE

 @@ -35,7 +35,8 @@

  #if HAVE_LIBEXPAT

 -#ifndef PHP_WIN32
 +/*#ifndef PHP_WIN32*/
 +#if !defined(PHP_WIN32)  !defined(NETWARE)
  #  include build-defs.h
  # endif
  # include ext/standard/head.h



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





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




[PHP-DEV] long long data type in libmysql.

2002-09-04 Thread Ananth Kesari

Hi,

We are working on porting PHP onto NetWare.

PHP-4.2.2 sources for libmysql seem to be using the data type long long and we are 
facing some problems handling this data type. We see extensive use of _WIN32 and 
_MSC_VER in these files and so we are sure that it was compiled with MSVC. But we got 
to understand from a reliable source that Microsoft C compiler doesn't understand this 
data type. Correct us if we are wrong.

Can someone let us know how MSVC managed to handle the data type long long?

Thanks,
Ananth.



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




[PHP-DEV] PHP tested on 64-bit OS?

2002-08-19 Thread Ananth Kesari

Hi,

We are working on porting PHP for NetWare.

We have a question here: Has PHP been tested on any 64-bit Operating System?

Thanks,
Ananth.



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




RE: [PHP-DEV] PHP tested on 64-bit OS?

2002-08-19 Thread Ananth Kesari

Thank you Gentlemen for the information.

Well, it is our team that ported PHP for NetWare and released the beta version. We are 
now working further on it to release the FCS version. We will also be merging our 
souces completely into the CVS tree.

Thanks,
Ananth.

 Sebastian Nohn [EMAIL PROTECTED] 08/19/02 09:42PM 

 -Original Message-
 From: Ananth Kesari [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 5:37 PM
 To: [EMAIL PROTECTED] 
 Subject: [PHP-DEV] PHP tested on 64-bit OS?

 We are working on porting PHP for NetWare.

 We have a question here: Has PHP been tested on any 64-bit
 Operating System?

I'm running it on Compaq Tru64/Alpha and I'm absolutely not satisfied in how
4.1.x/4.2.x run on that Platform. 4.3-dev runs nice :)
On Solaris 7/UltraSparc everything is fine as far as I can see.

Regards,
   Sebastian Nohn
--
+49 170 471 8105 - [EMAIL PROTECTED] - http://www.nohn.net/ 
PGP Key Available - Did I help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/3HYH6NR8ZI0WI/ 


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



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




[PHP-DEV] Scripts running on two different browsers crashes the server

2002-07-31 Thread Ananth Kesari

Hi All,

I am porting PHP for NetWare. I have run into a problem during unit
testing and I seek inputs from you on this.

I am using two scripts:
1. In one, I am using a simple while loop:
?php
for ($i=0; $i10; $i++) {
echo Loop no = $i.br;
}
?

2. In the other, I am just displaying the PHP info using
?php
phpinfo();
?

If I run these scripts individually, it is fine.
Even if run the while loop script simultaneously on two different
browsers, it works fine on both the browsers.

But if I run the first script (while loop) in one browser and while it
is running, if I run the second script from another brower, then my
NetWare server crashes. Strangely, the PHP info output from the second
browser is getting displayed on the first browser (!) where only the
loop numbers are supposed to be displayed. The font and size of the
display also changes. The server abends before the loop is completed.
Nothing is getting displayed on the second brower.

When I walk through the stack, I find that the abend seems to be
happening in the _zval_ptr_dtor function that is called after the
function, zend_stack_apply_with_argument is called which in turn is
called by the execute function.

I feel this may be due to data corruption between different threads in
some specific cases. Is it due to the usage of global variable or the
usage of static variables that are shared across threads?

I would greatly appreciate if anyone can throw some light on this.

Please note that I am using the PHP development version 4.0.8.

Thanks,
Ananth.


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