[PHP-DEV] Bug #13260: fsockopen when times out is core dumped

2001-09-12 Thread khimich

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:  4.0CVS-2001-09-12
PHP Bug Type: Filesystem function related
Bug description:  fsockopen when times out is core dumped

This code 

$fp=fsockopen("10.0.5.1",80,&$errno, &$errstr,5);
if(!$fp) echo "$errno $errstr";

core dumped after message "60 Operation timed out"

-- 
Edit bug report at: http://bugs.php.net/?id=13260&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 #13261: Restricting file system access

2001-09-12 Thread mike . hall

From: [EMAIL PROTECTED]
Operating system: Any
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Restricting file system access

echo `ls /home`;

In a virtual host situation, this is very dangerous. On my own host - as an
experiment - I was able to bring back a directory listing of any other site
on the same box. I then did an fread() on his database abstraction script
and read the passwords for his database. Then I logged into his MySQL
database and was free to mess with his site.

It would be EXTREMELY useful to be able to limit the scope of the
filesystem functions so they can only read files inside $DOCUMENT_ROOT.
Although that wouldn't stop me from typing `cat
/home/user/www/database.php`; and getting the same data. This really needs
addressing, guys!
-- 
Edit bug report at: http://bugs.php.net/?id=13261&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 #13261 Updated: Restricting file system access

2001-09-12 Thread mike . hall

ID: 13261
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.6
New Comment:

Just to clarify, a method of specifying open_basedir dynamically would be nice. Sorry 
I didn't make that clear first time.

Previous Comments:


[2001-09-12 05:21:11] [EMAIL PROTECTED]

echo `ls /home`;

In a virtual host situation, this is very dangerous. On my own host - as an experiment 
- I was able to bring back a directory listing of any other site on the same box. I 
then did an fread() on his database abstraction script and read the passwords for his 
database. Then I logged into his MySQL database and was free to mess with his site.

It would be EXTREMELY useful to be able to limit the scope of the filesystem functions 
so they can only read files inside $DOCUMENT_ROOT. Although that wouldn't stop me from 
typing `cat /home/user/www/database.php`; and getting the same data. This really needs 
addressing, guys!





Edit this bug report at http://bugs.php.net/?id=13261&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 #13263 Updated: Website Problem

2001-09-12 Thread jmoore

ID: 13263
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Old Bug Type: Website problem
Bug Type: Reproducible crash
Operating System: Windows NT Server
PHP Version: 4.0.4
New Comment:

Not enough information to work on, please reopen this bugreport including the smallest 
possible script that causes this problem and a list of extensions you have loaded in 
your php.ini. 

Cheers,

- James

Previous Comments:


[2001-09-12 05:46:57] [EMAIL PROTECTED]

For the past few days I am facing the problem on my website When I run a PHP script it 
gives the following error "PHP has encountered an Access Violation at 0DF04D15".

Can anyone pls. find a solution to it.


regards
Rukhiya
Phil Systems Ltd.,






Edit this bug report at http://bugs.php.net/?id=13263&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 #13245 Updated: Hard 8Mb limit on file uploads?

2001-09-12 Thread boaz

ID: 13245
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: HTTP related
Operating System: linux
PHP Version: 4.0.6
New Comment:

Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the 
limit of 8388608 bytes in Unknown on line 0

Previous Comments:


[2001-09-11 12:29:06] [EMAIL PROTECTED]

Try these settings instead:

post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 16M

(memory_limit only affects this if you have configured
php with --enable-memory-limit)

--Jani






[2001-09-11 04:55:13] [EMAIL PROTECTED]

When trying to upload files larger than 8Mb I get:
POST Content-Length of 9470478 bytes exceeds the limit of 8388608 bytes in Unknown on 
line 0

On PHP.INI i've set:
upload_max_filesize =   28388608
and just in case:
memory_limit=   33554432

on the script side MAX_FILE_SIZE is set to 24117248

my poop or a bug?





Edit this bug report at http://bugs.php.net/?id=13245&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] Unable to find stream pointer

2001-09-12 Thread Andreas Gietl

Hi PHP-Developers,

i am sending this mail to php-dev because nobody seems to know an answer in 
php-general and i did not find anything in the archives. Maybe it is a bug in 
the imap-routine.

I am having problems with php and imap now for several days on several 
servers. I just get the following Error:

Warning: Unable to find stream pointer in  on line 

This error does not occur in every execution, but only sometimes.

I read a lot about this error on the internet, but i still don't know what is 
the reason for this error and how to work around it.

Does anybody of you know where this error originates?

thanx

andreas

-- 
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 #13245 Updated: Hard 8Mb limit on file uploads?

2001-09-12 Thread boaz

ID: 13245
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Operating System: linux
PHP Version: 4.0.6
New Comment:

Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the 
limit of 8388608 bytes in Unknown on line 0

Previous Comments:


[2001-09-12 06:42:01] [EMAIL PROTECTED]

Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the 
limit of 8388608 bytes in Unknown on line 0



[2001-09-11 12:29:06] [EMAIL PROTECTED]

Try these settings instead:

post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 16M

(memory_limit only affects this if you have configured
php with --enable-memory-limit)

--Jani






[2001-09-11 04:55:13] [EMAIL PROTECTED]

When trying to upload files larger than 8Mb I get:
POST Content-Length of 9470478 bytes exceeds the limit of 8388608 bytes in Unknown on 
line 0

On PHP.INI i've set:
upload_max_filesize =   28388608
and just in case:
memory_limit=   33554432

on the script side MAX_FILE_SIZE is set to 24117248

my poop or a bug?





Edit this bug report at http://bugs.php.net/?id=13245&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 #13257 Updated: Crashing Apache 1.3

2001-09-12 Thread sniper

ID: 13257
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Old Bug Type: Program Execution
Bug Type: Apache related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

Please try the latest development build from here:

http://www.php4win.com/



Previous Comments:


[2001-09-12 00:47:46] [EMAIL PROTECTED]

I'm running phpgroupware. When I'm visit some page pop-up
a screen saying there's a fault on php4ts.dll.
It works fine but some times appears that error.
I'm using php4.0.6 as a apache module because the php.exe never works in this pc, the 
apache error log says:
[Wed Sep 12 00:09:22 2001] [error] [client 127.0.0.1] Premature end of script headers: 
c:/php/php.exe

Thanks for your time...





Edit this bug report at http://bugs.php.net/?id=13257&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 #13245 Updated: Hard 8Mb limit on file uploads?

2001-09-12 Thread sniper

ID: 13245
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: HTTP related
Operating System: linux
PHP Version: 4.0.6
New Comment:

I hope you also restarted your webserver after changing
these values in php.ini??

Check what phpinfo() has to say about these settings.

--Jani


Previous Comments:


[2001-09-12 07:46:26] [EMAIL PROTECTED]

Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the 
limit of 8388608 bytes in Unknown on line 0



[2001-09-12 06:42:01] [EMAIL PROTECTED]

Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the 
limit of 8388608 bytes in Unknown on line 0



[2001-09-11 12:29:06] [EMAIL PROTECTED]

Try these settings instead:

post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 16M

(memory_limit only affects this if you have configured
php with --enable-memory-limit)

--Jani






[2001-09-11 04:55:13] [EMAIL PROTECTED]

When trying to upload files larger than 8Mb I get:
POST Content-Length of 9470478 bytes exceeds the limit of 8388608 bytes in Unknown on 
line 0

On PHP.INI i've set:
upload_max_filesize =   28388608
and just in case:
memory_limit=   33554432

on the script side MAX_FILE_SIZE is set to 24117248

my poop or a bug?





Edit this bug report at http://bugs.php.net/?id=13245&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] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Cato Larsen

Hi!
I would like to insert the HTML code in a TXT document. How do I do this?
On a normal website I'd make an SHTML site with the 
but since the PHP engine (as far as I know) doesn't initiate SSL on the
server.

If anyone could be so kind to give me the code to make this work, it'd be
great!

Best regards, Cato Larsen

Webmaster of: http://www.oia.f2s.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] Re: Bug #13260: fsockopen when times out is core dumped

2001-09-12 Thread J Smith

[EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> Operating system: FreeBSD 4.3
> PHP version:  4.0CVS-2001-09-12
> PHP Bug Type: Filesystem function related
> Bug description:  fsockopen when times out is core dumped
> 
> This code
> 
> $fp=fsockopen("10.0.5.1",80,&$errno, &$errstr,5);
> if(!$fp) echo "$errno $errstr";
> 
> core dumped after message "60 Operation timed out"
> 

This bug also comes up when you try to use fopen()
on a URL.

Also, I've tried using fopen() on localhost for 
files that are known to exist, and every once in a while
(maybe 1 in 10 times), apache will segfault. It seems to
have something to do with glibc, because it faults just
after php_sockread_internal() is called, and glibc hangs
at __select() in libc.so.6.

J

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

2001-09-12 Thread CVS Account Request

Full name: Fabrice Aeschbacher
Email: [EMAIL PROTECTED]
ID:aeschbacher
Purpose:   add functions to php_interbase.dll:
ibase_add_user()
ibase_delete_user()
ibase_modify_user()

-- 
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 #13264: Linking Error for Zend Functions while adding Extension Module on PHP Windows

2001-09-12 Thread atur

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  Linking Error for Zend Functions while adding Extension Module on 
PHP Windows

Hi,

I have made PHP extenison module and used following :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

I am making mymodule.dll as an extension module.
It compiles well. But while linking gives this error :

error LNK2001: unresolve external symbol _zend_get_parameters_ex
error LNK2001: unresolve external symbol _zend_wrong_parameters_count
...etc...

The Zend API's in zend_API.h are not made extern "C".

NOTE : If I tried to extern "C" like this :
extern "C"
{
#include "zend_API.h"
}

It gives error as it includes headers files which contains templates
definations.

I think the Zend functions starting with macro ZEND_API
must be made extern "C" or using BEGIN_EXTERN_C() and END_EXTERN_C() macros
already defined in Zend.The problem is solved by doing so.

Regards,

Atur Shah.



-- 
Edit bug report at: http://bugs.php.net/?id=13264&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 #13261 Updated: More restrictive File-system access

2001-09-12 Thread jason

ID: 13261
Updated by: jason
Reported By: [EMAIL PROTECTED]
Old Summary: Restricting file system access
Old Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.6
New Comment:

You can dynamically assign open_basedir by adding "php_admin_value open_basedir 
/home/user" to every
Apache VirtualHost block.

The ls /home/user issue is a difficult problem to solve
due to the nature of the webserver module. Since the webserver module runs as user 
nobody, you are forced to open restrictions on users home directories and files to 
allow apache to read other users' php scripts. 

There are ways you can customize your hosting environment to get around the webserver 
module problem. 

a. www.freevsd.org
b. Turing on safe_mode and setting the exec dir to point to a set of customized unix 
commands that lock users into there directory
c. hacking php to your environment

Currently, the best method is compiling php as cgi-bin module, and enabling safe_mode.

I have a project waiting on my todo list that could possibly solve a good majority the 
virtual hosting 
problems with php. If you are interested in this 
monitor the php-dev mailing list

-Jason



Previous Comments:


[2001-09-12 05:59:37] [EMAIL PROTECTED]

Just to clarify, a method of specifying open_basedir dynamically would be nice. Sorry 
I didn't make that clear first time.



[2001-09-12 05:21:11] [EMAIL PROTECTED]

echo `ls /home`;

In a virtual host situation, this is very dangerous. On my own host - as an experiment 
- I was able to bring back a directory listing of any other site on the same box. I 
then did an fread() on his database abstraction script and read the passwords for his 
database. Then I logged into his MySQL database and was free to mess with his site.

It would be EXTREMELY useful to be able to limit the scope of the filesystem functions 
so they can only read files inside $DOCUMENT_ROOT. Although that wouldn't stop me from 
typing `cat /home/user/www/database.php`; and getting the same data. This really needs 
addressing, guys!





Edit this bug report at http://bugs.php.net/?id=13261&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 #13265: gdImageGif/gdImageCreateFromGif support

2001-09-12 Thread jbozza

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3-Stable
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  gdImageGif/gdImageCreateFromGif support

The FreeBSD port for gd (gd-1.8.4_3 specifically) recently added support
back in for gdImageCreateFromGif (Read support for GIFs) but did *NOT*
return gdImageGif (Writing GIFs).

Configuring php-4.0.6 using --with-gd does a test for gdImageCreateFromGif
and assumes support for gdImageGif as well.  (Sets HAVE_GD_GIF - which
turns on all GIF support in ext/gd)

Could Gif support be split into two defines?
(HAVE_GD_GIF_READ/HAVE_GD_GIF_WRITE or something similar)


-- 
Edit bug report at: http://bugs.php.net/?id=13265&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] shell friendly php & pcntl

2001-09-12 Thread Edin Kadribasic

There was a thread recently on php-dev about making php more shell friendly
so people could more easily make non-web php applications. One idea was to
make a new sapi interface and I think that the work you have done in
ext/pcntl could be a good starting point to a sapi-shell.

I'm willing to contribute in this regard because I find that php has a great
potential in that area. Any comments?

Edin


-- 
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 #13265 Updated: gdImageGif/gdImageCreateFromGif support

2001-09-12 Thread jbozza

ID: 13265
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: GD related
Operating System: FreeBSD 4.3-Stable
PHP Version: 4.0.6
New Comment:

Notices in CVS that there is HAVE_GD_GIF_CREATE and HAVE_GD_GIF_READ.  Will close this 
until I test 4.0.7.

Previous Comments:


[2001-09-12 11:13:00] [EMAIL PROTECTED]

The FreeBSD port for gd (gd-1.8.4_3 specifically) recently added support back in for 
gdImageCreateFromGif (Read support for GIFs) but did *NOT* return gdImageGif (Writing 
GIFs).

Configuring php-4.0.6 using --with-gd does a test for gdImageCreateFromGif and assumes 
support for gdImageGif as well.  (Sets HAVE_GD_GIF - which turns on all GIF support in 
ext/gd)

Could Gif support be split into two defines? (HAVE_GD_GIF_READ/HAVE_GD_GIF_WRITE or 
something similar)







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

2001-09-12 Thread Andi Gutmans

At 02:10 PM 9/9/2001 +0200, Sascha Schumann wrote:
> > Cleaning up a language is a benefit worth paying in price for. How many
> > millions of lines of C code had to be re-written when the ANSI standard
> > was published?
>
> Exactly none.  ANSI preserves most K&R semantics and that
> won't change in the foreseeable future.

I can only talk of ANSI C++. I was involved in a porting project from 
pre-ANSI C++ to ANSI C++ and lots of stuff broke :)
I'm just saying this as a FYI. I'm too far behind my Email to comment on 
the thread itself.
Andi


-- 
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 #13266: Maybe not a PHP Library ?

2001-09-12 Thread atur

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  Maybe not a PHP Library ?

HI,

I am trying to load newly made PHP extension module (C++).
(e.g. mymodule.dll) using dl().

The error when accessing PHP file in browser with Apache Web Server is :

"Invalid Library (Maybe not a PHP Library) mymodule.dll"

I used these configurations :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

Comments Please.

Thanks.

Atur Shah.
([EMAIL PROTECTED])
-- 
Edit bug report at: http://bugs.php.net/?id=13266&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 #13263 Updated: Website Problem

2001-09-12 Thread goba

ID: 13263
Updated by: goba
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows NT Server
PHP Version: 4.0.4
New Comment:

And DO NOT classify the reopened bug as a Website problem, as it is not the problem of 
php.net!

--
 Goba

Previous Comments:


[2001-09-12 06:17:33] [EMAIL PROTECTED]

Not enough information to work on, please reopen this bugreport including the smallest 
possible script that causes this problem and a list of extensions you have loaded in 
your php.ini. 

Cheers,

- James



[2001-09-12 05:46:57] [EMAIL PROTECTED]

For the past few days I am facing the problem on my website When I run a PHP script it 
gives the following error "PHP has encountered an Access Violation at 0DF04D15".

Can anyone pls. find a solution to it.


regards
Rukhiya
Phil Systems Ltd.,






Edit this bug report at http://bugs.php.net/?id=13263&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 #13266 Updated: Maybe not a PHP Library ?

2001-09-12 Thread hholzgra

ID: 13266
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Dynamic loading
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:

support problem and most likely not a bug (at least not enough info to find out), 
please ask the phpdev mailing list (and give more info)

Previous Comments:


[2001-09-12 11:40:45] [EMAIL PROTECTED]

HI,

I am trying to load newly made PHP extension module (C++).
(e.g. mymodule.dll) using dl().

The error when accessing PHP file in browser with Apache Web Server is :

"Invalid Library (Maybe not a PHP Library) mymodule.dll"

I used these configurations :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

Comments Please.

Thanks.

Atur Shah.
([EMAIL PROTECTED])





Edit this bug report at http://bugs.php.net/?id=13266&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] Re: [Zend Engine 2] Right/Left Shift Zero Fill operator

2001-09-12 Thread Andi Gutmans

At 12:15 AM 9/11/2001 +0200, Alexander Wirtz wrote:
>Hi Jeroen,
>
>to give a little bit background, as a student of computersciences I happen
>to work with bitshift not as a means of having a "quick" multiplication or
>division, but as using it to "manipulate" bit-patterns.
>The distinction between signed and unsigned rightshift is nothing strange,
>obscure or redundant, but is implemented down to the machine-language
>itsself (dependent on cpu-architecture).
>So this is no "bad operator", but one of the most crucial operators on
>bit-patterns. I don't want to sound arrogant (saying this is almost always a
>sure sign, that it will ;-) ) but maybe you should inform yourself the next
>time why other languages have this operator implemented.
>Disabling signed shifting will force me to turn back to perl, as I use this
>feature for quick hacking certain scripts I use at the University (and that
>would be a very cruel thing to do :o) ) - besides, it would disregard the
>"holy BC"...

In what case (when not dividing) do you use this kind of shift?

Andi


>Cheers & flames on (constructive comments are welcome),
>
>Alexander
>
>--
>| Alexander Wirtz   | eMail: [EMAIL PROTECTED]  |
>| web@ctive GmbH| "Accidents, Emergency, Ambulance"|


-- 
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 #13266 Updated: Maybe not a PHP Library ?

2001-09-12 Thread mfischer

ID: 13266
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Dynamic loading
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:

Make sure your module entry is in the source

#ifdef COMPILE_DL_YOURMODULE
ZEND_GET_MODULE(yourmodule)
#endif

- Markus

Previous Comments:


[2001-09-12 11:51:17] [EMAIL PROTECTED]

support problem and most likely not a bug (at least not enough info to find out), 
please ask the phpdev mailing list (and give more info)



[2001-09-12 11:40:45] [EMAIL PROTECTED]

HI,

I am trying to load newly made PHP extension module (C++).
(e.g. mymodule.dll) using dl().

The error when accessing PHP file in browser with Apache Web Server is :

"Invalid Library (Maybe not a PHP Library) mymodule.dll"

I used these configurations :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

Comments Please.

Thanks.

Atur Shah.
([EMAIL PROTECTED])





Edit this bug report at http://bugs.php.net/?id=13266&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 #13255 Updated: build has no mcrypt

2001-09-12 Thread sander

ID: 13255
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: mcrypt related
Operating System: win98
PHP Version: 4.0.6
New Comment:

Not a bug. Ask support questions on the appropriate mailinglist 
(http://www.php.net/support.php).

Previous Comments:


[2001-09-11 20:54:45] [EMAIL PROTECTED]

I cannot find the php_mcrypt.dll function in the 4.0.6 build. It is not contained in 
any of the downloads. Is there any way to have its installed?

Thanks,
Chris Scott





Edit this bug report at http://bugs.php.net/?id=13255&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 #13267: segfault with parent::

2001-09-12 Thread carl

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  segfault with parent::

PHP segfaults if parent:: is used in a class that is
defined in a file other than the file in which its base class
is defined.

Example code:
*** one.php ***


*** two.php ***


(gdb) bt
#0  0x40226874 in execute (op_array=0x8119ba4) at zend_execute.c:1426
#1  0x40226f96 in execute (op_array=0x81135e4) at zend_execute.c:1544
#2  0x40237eab in zend_execute_scripts (type=8, file_count=3) at
zend.c:752
#3  0x4024f89c in php_execute_script (primary_file=0xb644) at
main.c:1206
#4  0x4024b105 in apache_php_module_main (r=0x80fb1a4,
display_source_mode=0) at sapi_apache.c:89
#5  0x4024be20 in send_php (r=0x80fb1a4, display_source_mode=0,
filename=0x80fbd54 "/home/blixen/carl/apache/htdocs/test/two.php")
at mod_php4.c:536
#6  0x4024be65 in send_parsed_php (r=0x80fb1a4) at mod_php4.c:547
#7  0x8054973 in ap_invoke_handler ()
#8  0x8068bab in process_request_internal ()
#9  0x8068c20 in ap_process_request ()
#10 0x805ff7d in child_main ()
#11 0x80601e7 in make_child ()
#12 0x806029b in startup_children ()
#13 0x806090d in standalone_main ()
#14 0x806113b in main ()
#15 0x400c7a8e in __libc_start_main (main=0x8060da0 , argc=1,
argv=0xb924, init=0x804eb28 <_init>, fini=0x8096c90 <_fini>,
rtld_fini=0x4000aa50 <_dl_fini>, stack_end=0xb91c) at
../sysdeps/generic/libc-start.c:92
-- 
Edit bug report at: http://bugs.php.net/?id=13267&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 #13268: static path in php and mm

2001-09-12 Thread tomryan

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0CVS-2001-09-12
PHP Bug Type: Session related
Bug description:  static path in php and mm

php (from 4.0.6 and the latest cvs code), has PS_MM_PATH 
statically defined in ext/session/mod_mm.c.

This, coupled with hardcoding of only an extension in 
libmm.so, allows for a very easy DOS on systems that use 
session management for at least cgi and external binary 
placements for php, and quite possibly module installation.

Is it produceable? sure.. touch /tmp/session_mm.sem (if 
using php and mm)


-- 
Edit bug report at: http://bugs.php.net/?id=13268&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 #13267 Updated: segfault with parent::

2001-09-12 Thread mfischer

ID: 13267
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.0.6
New Comment:

Cannot reproduce in latest CVS (but verified with 4.0.6).

- Markus

Previous Comments:


[2001-09-12 13:01:37] [EMAIL PROTECTED]

PHP segfaults if parent:: is used in a class that is
defined in a file other than the file in which its base class
is defined.

Example code:
*** one.php ***


*** two.php ***


(gdb) bt
#0  0x40226874 in execute (op_array=0x8119ba4) at zend_execute.c:1426
#1  0x40226f96 in execute (op_array=0x81135e4) at zend_execute.c:1544
#2  0x40237eab in zend_execute_scripts (type=8, file_count=3) at zend.c:752
#3  0x4024f89c in php_execute_script (primary_file=0xb644) at main.c:1206
#4  0x4024b105 in apache_php_module_main (r=0x80fb1a4, display_source_mode=0) at 
sapi_apache.c:89
#5  0x4024be20 in send_php (r=0x80fb1a4, display_source_mode=0, filename=0x80fbd54 
"/home/blixen/carl/apache/htdocs/test/two.php")
at mod_php4.c:536
#6  0x4024be65 in send_parsed_php (r=0x80fb1a4) at mod_php4.c:547
#7  0x8054973 in ap_invoke_handler ()
#8  0x8068bab in process_request_internal ()
#9  0x8068c20 in ap_process_request ()
#10 0x805ff7d in child_main ()
#11 0x80601e7 in make_child ()
#12 0x806029b in startup_children ()
#13 0x806090d in standalone_main ()
#14 0x806113b in main ()
#15 0x400c7a8e in __libc_start_main (main=0x8060da0 , argc=1, argv=0xb924, 
init=0x804eb28 <_init>, fini=0x8096c90 <_fini>,
rtld_fini=0x4000aa50 <_dl_fini>, stack_end=0xb91c) at 
../sysdeps/generic/libc-start.c:92





Edit this bug report at http://bugs.php.net/?id=13267&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 #13269: References and Arrays

2001-09-12 Thread leonhard . holz

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  References and Arrays

Another way of the references & array problem that shows up while copying
arrays:

";

$aArray2 = Array();
$aArray2["test"] = "Hello World 2!";

$aArray = $aArray2;

echo $aArray["test"]."";
echo $rRef;

?>

The last echo should return "Hello World 2!" but it doesnt. 

A workaround is to copy the arrays per key:



then all is ok.
-- 
Edit bug report at: http://bugs.php.net/?id=13269&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 #13270: Odd Math/String behaviour when 'echo'ing...

2001-09-12 Thread SeanECoates

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: Math related
Bug description:  Odd Math/String behaviour when 'echo'ing...

The following code produces strange output:
\n";
 echo "one". (1+2) ."two\n";
?>
(output:)
2two
one3two

maybe I'm overlooking something, but when excluding the parentheses, causes
the first "one" to not display, and the addition to work incorrectly.
Please email me if you need more details. Obviously, the workaround is to
put parentheses around the math.

Is this because, without parentheses, PHP is treating the statement like
this:

echo "one1" + "2two"; // or something similar?

Using PHP4.0.6, Win32 pre-compiled. Other systems untested.

S

-- 
Edit bug report at: http://bugs.php.net/?id=13270&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 #13271: VIRUS Back Orrifice 2000 in your file

2001-09-12 Thread chrisbrill

From: [EMAIL PROTECTED]
Operating system: Windows
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  VIRUS Back Orrifice 2000 in your file

Warning, i downloaded this file
"http://www.php.net:8000/distributions/php-4.0.6-Win32.zip"; and my virus
scanner found a virus named "BDS/BO2K.RC6" in this file
"extensions/php_mhash.dll"

Is it a failure of my scanner, or a REAL problem

Best Regards
Christoph Brill
-- 
Edit bug report at: http://bugs.php.net/?id=13271&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 #13272: VIRUS Back Orrifice 2000 in your file

2001-09-12 Thread chrisbrill

From: [EMAIL PROTECTED]
Operating system: Windows
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  VIRUS Back Orrifice 2000 in your file

Warning, i downloaded this file
"http://www.php.net:8000/distributions/php-4.0.6-Win32.zip"; and my virus
scanner found a virus named "BDS/BO2K.RC6" in this file
"extensions/php_mhash.dll"

Is it a failure of my scanner, or a REAL problem

Best Regards
Christoph Brill
-- 
Edit bug report at: http://bugs.php.net/?id=13272&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] win32 problem with timezones

2001-09-12 Thread Chris Gardner

ok guys.  i know i left a message simular to this before, but i have a lot
more info on it now, and i'm getting nowhere.  i'm on win2k win vc++ 6.
trying to use cygwin to compile in gcc.  used the vcvars32.bat to configure
my path beforehand.  here's the problem.

i go to compile and get an error on standard/datetime.c  it's complaining
about thier being no unary operators for timezone.  after some digging, i
found that i'm not using the extern time_t timezone; from the #if block
above.  instead, it's looking at the struct defination from the #include
.  this struct doesn't have the unary operators for them, so i
blow up.  i've tried casting the timezone to a long, but gcc laughed at me.

anybody got a suggestion or two on this one?


Chris Gardner
Book Systems, Inc.
[EMAIL PROTECTED]


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




[PHP-DEV] Bug #13272 Updated: VIRUS Back Orrifice 2000 in your file

2001-09-12 Thread derick

ID: 13272
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.0.6
New Comment:

Submitted twice

Previous Comments:


[2001-09-12 15:46:21] [EMAIL PROTECTED]

Warning, i downloaded this file 
"http://www.php.net:8000/distributions/php-4.0.6-Win32.zip"; and my virus scanner found 
a virus named "BDS/BO2K.RC6" in this file "extensions/php_mhash.dll"

Is it a failure of my scanner, or a REAL problem

Best Regards
Christoph Brill





Edit this bug report at http://bugs.php.net/?id=13272&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 #13273: session_register naming bug

2001-09-12 Thread kasper

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3-STABLE
PHP version:  4.0.4pl1
PHP Bug Type: Session related
Bug description:  session_register naming bug

I'm having an intermittent problem with session_register, where if I
register a session variable such as:



then in the querystring pass a variable such as:

http://site/test.php?userid=xx


intermittently, the script will cache what is passed through the
querystring into a session variable called $userid, and use that value for
the rest of the session.

Note, it doesn't use the value of what is in $session_userid, it only
creates a $userid session variable and overrides the querystring for the
remainder of the session.

I have tested this by doing something like:



I will intermittantly get the word "registered" on the page.

I've searched high and low, and nobody seems to know anything about this,
so I figured I would submit it to you.

I installed PHP by using the mod_php4 port from the FreeBSD ports tree in
/usr/ports/www/mod_php4.  I'm also running Apache 1.3.17.

If there is any other information you'd like me to submit, let me know via
e-mail and I will submit it ASAP.

Thank you,

~[EMAIL PROTECTED]
-- 
Edit bug report at: http://bugs.php.net/?id=13273&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 #13273 Updated: session_register naming bug

2001-09-12 Thread derick

ID: 13273
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: FreeBSD 4.3-STABLE
PHP Version: 4.0.4pl1
New Comment:

Not a bug, please ask for support on the [EMAIL PROTECTED] mailing list.

Derick

Previous Comments:


[2001-09-12 16:19:21] [EMAIL PROTECTED]

I'm having an intermittent problem with session_register, where if I register a 
session variable such as:



then in the querystring pass a variable such as:

http://site/test.php?userid=xx


intermittently, the script will cache what is passed through the querystring into a 
session variable called $userid, and use that value for the rest of the session.

Note, it doesn't use the value of what is in $session_userid, it only creates a 
$userid session variable and overrides the querystring for the remainder of the 
session.

I have tested this by doing something like:



I will intermittantly get the word "registered" on the page.

I've searched high and low, and nobody seems to know anything about this, so I figured 
I would submit it to you.

I installed PHP by using the mod_php4 port from the FreeBSD ports tree in 
/usr/ports/www/mod_php4.  I'm also running Apache 1.3.17.

If there is any other information you'd like me to submit, let me know via e-mail and 
I will submit it ASAP.

Thank you,

~[EMAIL PROTECTED]





Edit this bug report at http://bugs.php.net/?id=13273&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 #13264 Updated: Linking Error for Zend Functions while adding Extension Module on PHP Windows

2001-09-12 Thread sniper

ID: 13264
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Failure
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:

Please ask support questions about writing extensions
on the [EMAIL PROTECTED] mailing list.


Previous Comments:


[2001-09-12 11:00:29] [EMAIL PROTECTED]

Hi,

I have made PHP extenison module and used following :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

I am making mymodule.dll as an extension module.
It compiles well. But while linking gives this error :

error LNK2001: unresolve external symbol _zend_get_parameters_ex
error LNK2001: unresolve external symbol _zend_wrong_parameters_count
...etc...

The Zend API's in zend_API.h are not made extern "C".

NOTE : If I tried to extern "C" like this :
extern "C"
{
#include "zend_API.h"
}

It gives error as it includes headers files which contains templates definations.

I think the Zend functions starting with macro ZEND_API
must be made extern "C" or using BEGIN_EXTERN_C() and END_EXTERN_C() macros already 
defined in Zend.The problem is solved by doing so.

Regards,

Atur Shah.








Edit this bug report at http://bugs.php.net/?id=13264&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 #13270 Updated: Odd Math/String behaviour when 'echo'ing...

2001-09-12 Thread sniper

ID: 13270
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Math related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Just a matter of operator precedence:

http://www.php.net/manual/en/language.operators.precedence.php

Not a bug. (. is just another operator, as is + )

--Jani


Previous Comments:


[2001-09-12 14:55:53] [EMAIL PROTECTED]

The following code produces strange output:
\n";
 echo "one". (1+2) ."two\n";
?>
(output:)
2two
one3two

maybe I'm overlooking something, but when excluding the parentheses, causes the first 
"one" to not display, and the addition to work incorrectly.
Please email me if you need more details. Obviously, the workaround is to put 
parentheses around the math.

Is this because, without parentheses, PHP is treating the statement like this:

echo "one1" + "2two"; // or something similar?

Using PHP4.0.6, Win32 pre-compiled. Other systems untested.

S






Edit this bug report at http://bugs.php.net/?id=13270&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] How do I inserting the content of a TEXT file into aPHP document?

2001-09-12 Thread David Eriksson


Please send support questions to [EMAIL PROTECTED]

There is an include statement in PHP.

-\- David Eriksson -/-

"An expert in a particular computer language is really an expert
in the work-arounds necessary to use this language to perform
useful work." - Richard B. Johnson

On Wed, 12 Sep 2001, Cato Larsen wrote:

> Hi!
> I would like to insert the HTML code in a TXT document. How do I do this?
> On a normal website I'd make an SHTML site with the 
> but since the PHP engine (as far as I know) doesn't initiate SSL on the
> server.
>
> If anyone could be so kind to give me the code to make this work, it'd be
> great!
>
> Best regards, Cato Larsen
>
> Webmaster of: http://www.oia.f2s.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 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 #13275: returned objects cause a core dump in zend

2001-09-12 Thread shaley

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.6
PHP Bug Type: Java related
Bug description:  returned objects cause a core dump in zend

I have been working integrating PHP with Java 2 SE (1.3.1).  I have found
that if a "complex" object is returned by another Java method call (as in a
static Java method), the php code will core dump.  The problem appears to
be related to the zend hashing code.  When the 'new' function is invoked on
a Java object, it is hashed by zend for de-referencing.  However, if a java
object is returned, no entry is made in the hash for that object,
dereferencing said object causes zend to core.

Here's the GDB trace:

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
#1  0xb6c18 in zend_hash_find (ht=0xfe23354c, 
arKey=0x34d038 "adddescription", nKeyLength=15, pData=0xffbee6c0)
at zend_hash.c:854
#2  0xe670c in execute ()
#3  0xb2cb4 in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#4  0x365c4 in php_execute_script (primary_file=0xffbef938) at
main.c:1221
#5  0x34400 in main (argc=2, argv=0xffbef9c4) at cgi_main.c:738


Here's my version info:
SunOS arcturus 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-1

java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
-- 
Edit bug report at: http://bugs.php.net/?id=13275&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 #13276: Java methods are incorrectly set to lowercase

2001-09-12 Thread shaley

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.6
PHP Bug Type: Java related
Bug description:  Java methods are incorrectly set to lowercase

Take the following code:

public class phptest{
  public static String testString = "look for ^ in this string";

public static void main(String[] args)
{
 System.out.println("Found ^ at: "+testString.indexOf('^'));
}
}

Which when run in Java produces this output:
Found ^ at: 9

Now, consider the following php code:
$testString->indexOf('^'));
?>

This *almost* works, and produces the following output:
X-Powered-By: PHP/4.0.6
Content-type: text/html


Warning:  java.lang.NoSuchMethodException: indexof in
phptest.php on line 5
Found ^ at: 0

As you can see, the indexof method has been lowercased from indexOf.  This
is a problem in the case sensitive environment of Java.
-- 
Edit bug report at: http://bugs.php.net/?id=13276&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 #13277: & in query_string are not handled

2001-09-12 Thread laurent

From: [EMAIL PROTECTED]
Operating system: Debian GNU/Linux 
PHP version:  4.0.6
PHP Bug Type: Variables related
Bug description:  & in query_string are not handled

The query_string "a=1&b=2" and "a=1&b=2" should be equivalent, but they
are not with php. A workaround is to use arg_separator.input = ";&".
-- 
Edit bug report at: http://bugs.php.net/?id=13277&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 #13278: enhancement for ldap_start_tls function

2001-09-12 Thread kuenne

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.6
PHP Bug Type: LDAP related
Bug description:  enhancement for ldap_start_tls function

I would like to have my ldap connections encrypted so I added the function
ldap_start_tls to the ldap module. Following is the diff:

--- ./ext/ldap/ldap.c.orig  Wed Sep 12 15:53:24 2001
+++ ./ext/ldap/ldap.c   Wed Sep 12 16:03:00 2001
@@ -69,6 +69,9 @@
PHP_FE(ldap_connect,
NULL)
PHP_FALIAS(ldap_close,  ldap_unbind,NULL)
PHP_FE(ldap_bind,
NULL)
+#if LDAP_API_VERSION > 2000
+   PHP_FE(ldap_start_tls,
NULL)
+#endif
PHP_FE(ldap_unbind,
NULL)
PHP_FE(ldap_read,
NULL)
PHP_FE(ldap_list,
NULL)
@@ -385,12 +388,22 @@
} else
 #endif
{
-   ldap = ldap_open(host,port);
+   ldap = ldap_init(host,port);
}

if ( ldap == NULL ) {
RETURN_FALSE;
} else {
+#if LDAP_API_VERSION > 2000
+   int version = LDAP_VERSION3;
+   int rc;
+
+   rc = ldap_set_option(ldap, LDAP_OPT_PROTOCOL_VERSION,
&version);
+   if (rc != LDAP_OPT_SUCCESS) {
+   php_error(E_WARNING, "Could not set protocol
version 3 (%d): %s\n", rc, ldap_err2string(rc));
+   RETURN_FALSE;
+   }
+#endif
 #ifdef HAVE_ORALDAP
if (ssl) {
if (ldap_init_SSL(&ldap->ld_sb, wallet,
walletpasswd,
@@ -510,6 +523,31 @@
 }
 #endif

+
+#if LDAP_API_VERSION > 2000
+/* {{{ proto int ldap_start_tls(int link)
+   Start TLS */
+PHP_FUNCTION(ldap_start_tls)
+{
+   pval **link;
+   LDAP *ldap;
+
+   if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &link) ==
FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   ldap = _get_ldap_link(link);
+   if (ldap == NULL) RETURN_FALSE;
+
+   if (ldap_start_tls_s(ldap, NULL, NULL) != LDAP_SUCCESS) {
+   php_error(E_WARNING,"LDAP:  Unable to start TLS:
%s",ldap_err2string(_get_lderrno(ldap)));
+   RETURN_FALSE;
+   } else {
+   RETURN_TRUE;
+   }
+}
+/* }}} */
+#endif
 
 /* {{{ proto int ldap_bind(int link [, string dn, string password])
Bind to LDAP directory */

--- ./ext/ldap/php_ldap.h.orig  Wed Sep 12 16:04:27 2001
+++ ./ext/ldap/php_ldap.h   Wed Sep 12 16:05:14 2001
@@ -39,6 +39,10 @@
 
 PHP_FUNCTION(ldap_connect);
 
+#if LDAP_API_VERSION > 2000
+PHP_FUNCTION(ldap_start_tls);
+#endif
+
 PHP_FUNCTION(ldap_bind);
 PHP_FUNCTION(ldap_unbind);


The usage should be obvious, it takes just one argument, the ldap
connection handle. I'm using Openldap 2.0.7 with php and this function
works great with it. I didn't test whether this patch breaks other ldap
toolkits. One problem could be that I force the use of ldap-v3 so that
should probably be an option somewhere (maybe an option to ldap_open or
so).

-- 
Edit bug report at: http://bugs.php.net/?id=13278&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] È«ÃæÖ§³ÖASP¡¢PHP ¡¢JSP¡¢PERL¡¢CGI¡¢Êý¾Ý¿â, ÀúÊ·×îµÍ¼Û

2001-09-12 Thread [EMAIL PROTECTED]


×𾴵Ŀͻ§£ºÄúºÃ! 

¡î×¢²áÓòÃû(´øVDNS)´ó·ù¶Èϵ÷ 
ֻҪעһ¸öÓòÃû¾ÍÄÜÏñËѺü¡¢ÍøÒ×Ò»Ñù½¨¶à¸ö×ÓÕ¾£¬¶øÇÒËæÒâ¿ØÖÆ¿Õ¼äµÄ´æ·ÅλÖÃ,ʹÄú³ÉΪÕâ¸öÓòµÄÕæÕýÓµÓÐÕß¡£
 
Ãâ·ÑÔùËÍÈý¸ö´Î¼¶ÓòÃû¡£ÕâÊÇÎÒ¹«Ë¾±¾ÔÂÍƳöµÄ¡°¾ø¶ÔÓŻݴóÐж¯¡±£¬×¢²á´øVDNS¹ú¼ÊÓòÃûÀúÊ·×îµÍ¼Û¡£
 
ÂíÉϵ½ÕâÀïÀ´×¢²áhttp://www.now.net.cn/register/  ÈÃÄú˲¼äʵÏÖ¹ú¼Ê´óÍøÕ¾µÄÃÎÏ룡£¡£¡ 
ÄúÏëÁ˽âʲô½ÐVDNSÇë·ÃÎÊ 
http://www.now.net.cn/control/VDNSFAQ.net 
http://www.now.net.cn/support/vdns.net 
¿ìÀ´¿ÉÒÔ´îÉÏÍøÂçµÄ¿ì³µ£¬³ÉΪ¡°ÍøÂçÒ»×塱¡£ 

¡îÈ«ÃæÖ§³ÖASP¡¢PHP ¡¢JSP¡¢Servlet¡¢PERL¡¢CGI£¬Êý¾Ý¿â (¼Û¸ñÈ«²¿Ïµ÷10%) 
¿Õ¼ä½µµ½ÀúÊ·×îµÍ¡£·þÎñ²»±ä£¬Ö§³ÖÈ«²¿½Å±¾£¡×âÓÿռäÏíÊܵͼÛ×¢²áÓòÃû£¡ 
¿Õ¼ä½µµ½ÀúÊ·×îµÍ¡ª¡ª(Ö§³ÖÊý¾Ý¿â£©¡£·þÎñ²»±ä£¨¿Õ¼äÓû§ ËͶà¸öÉÌÓÃPOPÕ˺Š
¡¢6¸ö´Î¼¶ÓòÃû£©£¬ 
Ö§³ÖÈ«²¿½Å±¾£¨CGI¡¢PERL¡¢PHP¡¢ASP¡¢JSPºÍÊý¾Ý¿âµÈ¶àÖÖÑ¡Ôñ£©£¡ a 
ÄãÏëµÃµ½×î±ãÒ˵Ŀռ䵽http://www.now.net.cnÀ´¡£ 



¡î¡°ÀúÊ·×îµÍ¼Û¡±ÏíÊÜÍøÒ³Ìײ͡£ 
2000ÔªÍê³É×Ô¼ºÆ·ÅƵÄÍƹ㣬±ÈÆðÆäËûÐû´«·½Ê½¸ü¼ÓÁ®¼Û£¬×ÊÁϿɾ­³£¸üУ¬Ð§¹û¸ü¼Ñ£¡ 


»¶Ó­ÄúÖÂÐÅToday's Network  [EMAIL PROTECTED] 
»¶Ó­Äú·ÃÎÊToday's Network  http://www.now.net.cn 


Ö麣Ì컥¿Æ¼¼ÓÐÏÞ¹«Ë¾ 
0756--2125583 2125593 2125523 2252872  
0756--2236575 2125594 2216376 
´«Õ棺 0756--2229669 


ÈçÄú²»ÏëÔÙÊÕµ½´ËÐÅÇëת·¢µ½[EMAIL PROTECTED]

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




[PHP-DEV] Bug #13266 Updated: Maybe not a PHP Library ?

2001-09-12 Thread atur

ID: 13266
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Dynamic loading
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:

Hi,

The module entry is in the source..
I am pasting header and source file for reference..

---
/* -- */
/* php_mymodule.h --- after removing comments */
/* -- */

#ifndef PHP_MYMODULE_H
#define PHP_MYMODULE_H

extern zend_module_entry mymodule_module_entry;
#define phpext_mymodule_ptr &mymodule_module_entry

#ifdef PHP_WIN32
#define PHP_MYMODULE_API __declspec(dllexport)
#else
#define PHP_MYMODULE_API
#endif

extern "C"
{
PHP_FUNCTION(confirm_mymodule_compiled);
}

#ifdef ZTS
#define MYMODULE_G(v) (mymodule_globals->v)
#define MYMODULE_LS_FETCH() zend_mymodule_globals *mymodule_globals = 
ts_resource(mymodule_globals_id)
#else
#define MYMODULE_G(v) (mymodule_globals.v)
#define MYMODULE_LS_FETCH()
#endif

#endif  /* PHP_MYMODULE_H */

/* -- */
/* mymodule.cpp --- after removing comments   */
/* -- */

#define DHAVE_APDEBUG 1 
#define DCOMPILE_DL_APDEBUG 1
#define ZTS 1

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#include 

extern "C"
{
#include "ext/standard/info.h"
#include "php_globals.h"
#include "php_ini.h"
#include "php_mymodule.h"
}

/* True global resources - no need for thread safety here */
static int le_mymodule;

/* Every user visible function must have an entry in mymodule_functions[]. */
function_entry mymodule_functions[] = {
PHP_FE(confirm_mymodule_compiled,NULL)
{NULL, NULL, NULL}  
};

zend_module_entry mymodule_module_entry = {
"mymodule",
mymodule_functions,
NULL,NULL,NULL,NULL,NULL,
STANDARD_MODULE_PROPERTIES
};

#ifdef COMPILE_DL_MYMODULE
extern "C"
{
ZEND_GET_MODULE(mymodule)
}
#endif

PHP_FUNCTION(confirm_mymodule_compiled)
{
zval **arg;
int len;
char string[256];

if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) 
{WRONG_PARAM_COUNT;}

convert_to_string_ex(arg);

len = sprintf(string, "Congratulations! You have successfully modified 
ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "mymodule", 
Z_STRVAL_PP(arg));
RETURN_STRINGL(string, len, 1);
}
---

Regards,

Atur Shah


Previous Comments:


[2001-09-12 12:26:30] [EMAIL PROTECTED]

Make sure your module entry is in the source

#ifdef COMPILE_DL_YOURMODULE
ZEND_GET_MODULE(yourmodule)
#endif

- Markus



[2001-09-12 11:51:17] [EMAIL PROTECTED]

support problem and most likely not a bug (at least not enough info to find out), 
please ask the phpdev mailing list (and give more info)



[2001-09-12 11:40:45] [EMAIL PROTECTED]

HI,

I am trying to load newly made PHP extension module (C++).
(e.g. mymodule.dll) using dl().

The error when accessing PHP file in browser with Apache Web Server is :

"Invalid Library (Maybe not a PHP Library) mymodule.dll"

I used these configurations :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

Comments Please.

Thanks.

Atur Shah.
([EMAIL PROTECTED])





Edit this bug report at http://bugs.php.net/?id=13266&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 #13266 Updated: Maybe not a PHP Library ?

2001-09-12 Thread hholzgra

ID: 13266
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Dynamic loading
Operating System: Windows NT 4.0
PHP Version: 4.0.6
New Comment:

once again: ask the phpdev mailing list, please

supscription information can be found
on http://php.net/support.php

Previous Comments:


[2001-09-13 01:43:30] [EMAIL PROTECTED]

Hi,

The module entry is in the source..
I am pasting header and source file for reference..

---
/* -- */
/* php_mymodule.h --- after removing comments */
/* -- */

#ifndef PHP_MYMODULE_H
#define PHP_MYMODULE_H

extern zend_module_entry mymodule_module_entry;
#define phpext_mymodule_ptr &mymodule_module_entry

#ifdef PHP_WIN32
#define PHP_MYMODULE_API __declspec(dllexport)
#else
#define PHP_MYMODULE_API
#endif

extern "C"
{
PHP_FUNCTION(confirm_mymodule_compiled);
}

#ifdef ZTS
#define MYMODULE_G(v) (mymodule_globals->v)
#define MYMODULE_LS_FETCH() zend_mymodule_globals *mymodule_globals = 
ts_resource(mymodule_globals_id)
#else
#define MYMODULE_G(v) (mymodule_globals.v)
#define MYMODULE_LS_FETCH()
#endif

#endif  /* PHP_MYMODULE_H */

/* -- */
/* mymodule.cpp --- after removing comments   */
/* -- */

#define DHAVE_APDEBUG 1 
#define DCOMPILE_DL_APDEBUG 1
#define ZTS 1

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#include 

extern "C"
{
#include "ext/standard/info.h"
#include "php_globals.h"
#include "php_ini.h"
#include "php_mymodule.h"
}

/* True global resources - no need for thread safety here */
static int le_mymodule;

/* Every user visible function must have an entry in mymodule_functions[]. */
function_entry mymodule_functions[] = {
PHP_FE(confirm_mymodule_compiled,NULL)
{NULL, NULL, NULL}  
};

zend_module_entry mymodule_module_entry = {
"mymodule",
mymodule_functions,
NULL,NULL,NULL,NULL,NULL,
STANDARD_MODULE_PROPERTIES
};

#ifdef COMPILE_DL_MYMODULE
extern "C"
{
ZEND_GET_MODULE(mymodule)
}
#endif

PHP_FUNCTION(confirm_mymodule_compiled)
{
zval **arg;
int len;
char string[256];

if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) 
{WRONG_PARAM_COUNT;}

convert_to_string_ex(arg);

len = sprintf(string, "Congratulations! You have successfully modified 
ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "mymodule", 
Z_STRVAL_PP(arg));
RETURN_STRINGL(string, len, 1);
}
---

Regards,

Atur Shah




[2001-09-12 12:26:30] [EMAIL PROTECTED]

Make sure your module entry is in the source

#ifdef COMPILE_DL_YOURMODULE
ZEND_GET_MODULE(yourmodule)
#endif

- Markus



[2001-09-12 11:51:17] [EMAIL PROTECTED]

support problem and most likely not a bug (at least not enough info to find out), 
please ask the phpdev mailing list (and give more info)



[2001-09-12 11:40:45] [EMAIL PROTECTED]

HI,

I am trying to load newly made PHP extension module (C++).
(e.g. mymodule.dll) using dl().

The error when accessing PHP file in browser with Apache Web Server is :

"Invalid Library (Maybe not a PHP Library) mymodule.dll"

I used these configurations :

PHP 4.0.6
Apache 1.3.20
Windows NT 4.0
Visual C++ 6.0

Comments Please.

Thanks.

Atur Shah.
([EMAIL PROTECTED])





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