[PHP-DEV] PHP 4.0 Bug #9694 Updated: module not found

2001-03-11 Thread rashdanmn

ID: 9694
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: IIS related
Description: module not found

Hai..

try to connect to mssql and got this error

Unable to load dynamic library `d:\php402/php_mssql70.dll'- The specified module could 
not be found.

Here are my configuration in php.ini

Path and directories;
...
extension_dir   =   d:\php402;./

Dynamic extension;
...

;Windows Extensions
;extension=php_nsmail.dll
;extension=php_calendar.dll
;extension=php_dbase.dll
;extension=php_filepro.dll
;extension=php_gd.dll
;extension=php_dbm.dll
;extension=php_mssql.dll
;extension=php_zlib.dll
;extension=php_filepro.dll
;extension=php_imap4r2.dll
;extension=php_ldap.dll
extension=php_mssql70.dll

;extension=php_crypt.dll
;extension=php_msql2.dll
;extension=php_odbc.dll



Previous Comments:
---

[2001-03-12 01:51:07] [EMAIL PROTECTED]
Hai..

Try to do a mssql connect and get this error 


Unable to load dynamic library 
`d:php402/php_mssql70.dll'.The specified module could not be found. 

Thanks.

---


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


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




Re: [PHP-DEV] php_ticks crash (+stack trace)

2001-03-11 Thread Rasmus Lerdorf

Doesn't happen on Linux.  Must be a Windows thing.

-Rasmus

On Mon, 12 Mar 2001, [ISO-8859-1] André Langhorst wrote:

> Hi,
> maybe you have more success patching this one...
>
> andré
>
>
>  function tryy()   {}
>
> register_tick_function('tryy');
>
> declare (ticks=1) {   ; }
> ?>
>
>
> === Stack Dump of Process Apache.exe:2240; Thread 2080
> php_tick_iterator( 0x01052EC8, 0x0138F9B0 ), php_ticks.c:64, 0xb675
> zend_llist_apply_with_argument( 0x01040B38, 0x0051B640, 0x0138F9B0 ),
> zend_llist.c:213, 0x00117450
> php_run_ticks( 1 (0x0001) ), php_ticks.c:71, 0xb613
> execute( 0x0104DDA0, 0x010328F8 ), zend_execute.c:2327, 0x00129c90
> zend_execute_scripts( 8 (0x0008), 0x01010DF0, 0x010328F8, 3
> (0x0003), Variable number of arguments - arguments not displayed ),
> zend.c:743, 0x00104c51
> php_execute_script( 0x0138FDF8  (_zend_file_handle), 0x01010DF0,
> 0x010328F8, 0x01040AA8 ), main.c:1197, 0x86a1
> apache_php_module_main( 0x004A8510, 0 (0x), 0x01010DF0,
> 0x010328F8, 0x01040AA8, 0x0100DF28 ), sapi_apache.c:89, 0x3c0a
> send_php( 0x004A8510, 0 (0x), 0x004A8ED0 ), mod_php4.c:521,
> 0x1a81
> send_parsed_php( NULL ), mod_php4.c:532, 0x1ec6
> ApacheCore.dll, 0x10004927
> !!! Process Apache.exe:2240 crashed
>
>
>
>
>
>
> --
> · André Langhorstt: +49 331 5811560 ·
> · [EMAIL PROTECTED]  m: +49 173 9558736 ·
> * PHP Quality Assurance  http://qa.php.net  *
>
>
> --
> 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] PHP 4.0 Bug #9695: memory leak when using fsockopen & fclose

2001-03-11 Thread pack

From: [EMAIL PROTECTED]
Operating system: FreeBSD + AOLServer3.2
PHP version:  4.0.4pl1
PHP Bug Type: Sockets related
Bug description:  memory leak when using fsockopen & fclose

When I using PHP4 in AOLSerevr3.2 at FreeBSD,
It seems to get memory leak when I using fsockopen() & fclose(),
and the memory usage is gettiing bigger & bigger
configure option --with libgcc.



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



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




[PHP-DEV] php_ticks crash (+stack trace)

2001-03-11 Thread André Langhorst

Hi,
maybe you have more success patching this one...

andré





=== Stack Dump of Process Apache.exe:2240; Thread 2080
php_tick_iterator( 0x01052EC8, 0x0138F9B0 ), php_ticks.c:64, 0xb675
zend_llist_apply_with_argument( 0x01040B38, 0x0051B640, 0x0138F9B0 ), 
zend_llist.c:213, 0x00117450
php_run_ticks( 1 (0x0001) ), php_ticks.c:71, 0xb613
execute( 0x0104DDA0, 0x010328F8 ), zend_execute.c:2327, 0x00129c90
zend_execute_scripts( 8 (0x0008), 0x01010DF0, 0x010328F8, 3 
(0x0003), Variable number of arguments - arguments not displayed ), 
zend.c:743, 0x00104c51
php_execute_script( 0x0138FDF8  (_zend_file_handle), 0x01010DF0, 
0x010328F8, 0x01040AA8 ), main.c:1197, 0x86a1
apache_php_module_main( 0x004A8510, 0 (0x), 0x01010DF0, 
0x010328F8, 0x01040AA8, 0x0100DF28 ), sapi_apache.c:89, 0x3c0a
send_php( 0x004A8510, 0 (0x), 0x004A8ED0 ), mod_php4.c:521, 
0x1a81
send_parsed_php( NULL ), mod_php4.c:532, 0x1ec6
ApacheCore.dll, 0x10004927
!!! Process Apache.exe:2240 crashed






-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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: PHP 4.0 Bug #9487 Updated: POST using HTTP/1.0 HTTP/1.1 mix makesPHP crash

2001-03-11 Thread Jaromír Dolecek

Bug Database wrote:
> Please provide that whole backtrace.

OK, will do.

Jaromir
-- 
Jaromir Dolecek <[EMAIL PROTECTED]>  http://www.ics.muni.cz/~dolecek/
 ---  Wanna a real operating system ? Go and get NetBSD, dammit!  ---

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




Re: [PHP-DEV] PHP 4.0 Bug #8856 Updated: gethostbyname returns hostname instead of adress

2001-03-11 Thread Stig Venaas

On Sun, Mar 11, 2001 at 10:28:00PM -0800, [EMAIL PROTECTED] wrote:
> > For at least some months, gethostbyname() in sockets.c has
> > been replaced by gethostbyname() in ext/standard/dns.c
> > which does
> 
> sockets.c in ext/sockets? That has been #if 0'd out ever since it was
> originally written in there (I wrote it, not noticing that there was
> already one in the standard base. Oops.)

I wrote at least, because I didn't bother to check older sources.
Makes me wonder how the report could point to gethostbyname in
sockets.c

Thanks for the clarification,

Stig

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




[PHP-DEV] PHP 4.0 Bug #9694: module not found

2001-03-11 Thread rashdanmn

From: [EMAIL PROTECTED]
Operating system: WinNT4
PHP version:  4.0.2
PHP Bug Type: IIS related
Bug description:  module not found

Hai..

Try to do a mssql connect and get this error 


Unable to load dynamic library 
`d:\php402/php_mssql70.dll'.The specified module could not be found. 

Thanks.


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



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




[PHP-DEV] PHP 4.0 Bug #9693: Killed persistent connections not recognized

2001-03-11 Thread jti

From: [EMAIL PROTECTED]
Operating system: Redhat 7.0
PHP version:  4.0.4pl1
PHP Bug Type: Sybase-ct (ctlib) related
Bug description:  Killed persistent connections not recognized

-- PHP-modules: 

'./configure' '--with-apxs' '--enable-calendar' '--with-mysql=/usr' 
'--with-sybase-ct=/opt/sybase-11.9.2' '--enable-dbase' '--with-imap=/usr/local'

-- Sybase version:

SQL anywhere 7.01

-- PHP.ini

Sybase-section unchanged

-- Additional info

Sybase disconnects active connections after
240min inactivity period

PHP tries to use those "dead" persistent connections and
does not return any errors.

Of course queries do not return any data :)




-- 
Edit Bug report at: http://bugs.php.net/?id=9693&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] cvs: Zend / zend_API.c zend_API.h

2001-03-11 Thread Sebastian Bergmann

Andrei Zmievski wrote:
> andrei  Mon Mar 12 05:08:29 2001 EDT
> 
>   Modified files:
> /Zend   zend_API.c zend_API.h
>   Log:
>   Improve zend_is_callable() to the point where it's actually useful.
>   Now it just needs to be invoked everywhere in PHP where a callback is
>   expected.

  This breaks the Win32 build:

zend_API.c
D:\Programme\MS Visual Studio\Projekte\php\php4\Zend\zend_API.c(958) :
warning C4013: 'snprintf' undefiniert; Annahme: extern mit Rueckgabetyp int

ZendTS.lib(zend_API.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
_snprintf
..\Release_TS_inline\php4ts.dll : fatal error LNK1120: 1 unaufgeloeste
externe Verweise

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application -> http://phpOpenTracker.de

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




[PHP-DEV] PHP 4.0 Bug #9644 Updated: File Upload eats all RAM and swap space

2001-03-11 Thread gerard

ID: 9644
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproduceable crash
Description: File Upload eats all RAM and swap space

I have never used gdb before, but I have a feeling that it is not working correctly.

Here are the results:

root@linux:/home/install/apps/apache/apache_1.3.19# gdb /usr/local/apache/bin/httpd
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Processing config directory: /usr/local/apache/conf/virtualhosts/magestudios.net/
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/cwolvie
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/eeno
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/ewang
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/ftp
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/g2
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/likwidx
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/mail
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/moscrop
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/mouthoff
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/pirachu
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/stats
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/web
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/www
 Processing config file: /usr/local/apache/conf/virtualhosts/magestudios.net/xtracool

Program received signal SIGINT, Interrupt.
0x4046c564 in read () from /lib/libc.so.6
(gdb) bt full
#0  0x4046c564 in read () from /lib/libc.so.6
No symbol table info available.
#1  0x81d2044 in ?? ()
No symbol table info available.
#2  0x8084bf5 in buff_read ()
No symbol table info available.
#3  0x8084b92 in saferead_guts ()
No symbol table info available.
#4  0x8083612 in read_with_errors ()
No symbol table info available.
#5  0x8083980 in ap_bgets ()
No symbol table info available.
#6  0x8093c1b in getline ()
No symbol table info available.
#7  0x8093efd in read_request_line ()
No symbol table info available.
#8  0x809459e in ap_read_request ()
No symbol table info available.
#9  0x8091104 in child_main ()
No symbol table info available.
#10 0x8091301 in make_child ()
No symbol table info available.
#11 0x809147c in startup_children ()
No symbol table info available.
#12 0x8091aec in standalone_main ()
No symbol table info available.
#13 0x809231c in main ()
No symbol table info available.
#14 0x403e4577 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
(gdb)




Previous Comments:
---

[2001-03-11 16:21:25] [EMAIL PROTECTED]
Try creating a GDB backtrace of that.

1. rm config.cache
2. Add --enable-debug to you php configure line
3. 'make clean ; make ; make install'
4. And same for apache (step 3.)
5. apachectl stop
6. gdb /path/to/httpd
7. (gdb) run -X
8. Then try that script I sent you.
9. When (if) it hangs, ctrl+c
10. (gdb) bt full
11. cut'n'paste that backtrace into this bug report.

And do all this using the LATEST CVS snapshot.

--Jani


---

[2001-03-11 04:25:06] [EMAIL PROTECTED]
I'm also getting the same problem with this script.

Any script, even those that work on other systems, are giving problems on my system.

---

[2001-03-10 20:04:10] [EMAIL PROTECTED]
I can't reproduce this. Please try the following script.

upload.php:









---

[2001-03-10 01:52:48] [EMAIL PROTECTED]
I have compiled the CVS snapshot, with the same configure options as before, and the 
problem still exists.  Have not compiled it with APC this time.

I have copied php.ini-dist to /usr/local/lib/php.ini



---

[2001-03-09 19:49:25] [EMAIL PROTECTED]
1. There is an entry for APC in your php.ini.. have you
tried this without APC? 

2. Please try the latest CVS snapshot fro

Re: [PHP-DEV] PHP 4.0 Bug #8856 Updated: gethostbyname returnshostname instead of adress

2001-03-11 Thread chrisv

> For at least some months, gethostbyname() in sockets.c has
> been replaced by gethostbyname() in ext/standard/dns.c
> which does

sockets.c in ext/sockets? That has been #if 0'd out ever since it was
originally written in there (I wrote it, not noticing that there was
already one in the standard base. Oops.)

Chris


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




[PHP-DEV] PHP 4.0 Bug #9692 Updated: Subtraction result below 100 yields wrong decimal output

2001-03-11 Thread bhavint

ID: 9692
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: Math related
Description: Subtraction result below 100 yields wrong decimal output

i dont think thats the same is it. Because all I am doing is a simple subtraction 
operation. 

Additionally the output comes perfect if the result is greater than 100 but does not 
come perfect if the output is lesser than 100

Previous Comments:
---

[2001-03-12 00:45:04] [EMAIL PROTECTED]
Check the last comment on bug: #9288

--Jani



---

[2001-03-12 00:41:11] [EMAIL PROTECTED]
Please check http://www.transecute.com/~kalpesh/check.php4

In case (1) I subtract a number from another which should output '0.9' but insted 
outputs '0.99'

In case (2) I subtract a number from another and it gives correct output

This behaviour has been noticed if the result of the subtraction is greater than 100. 
I have also published my PHPINFO output on the same page for your reference.

This bug is quite dangerous (especially for us when we are dealing with financial 
calculations for our payment gateway using PHP) since all our reports dont tally at 
the end of the day by tiny figures such as this.

---


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


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




[PHP-DEV] PHP 4.0 Bug #9692 Updated: Subtraction result below 100 yields wrong decimal output

2001-03-11 Thread sniper

ID: 9692
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Math related
Assigned To: 
Comments:

Check the last comment on bug: #9288

--Jani



Previous Comments:
---

[2001-03-12 00:41:11] [EMAIL PROTECTED]
Please check http://www.transecute.com/~kalpesh/check.php4

In case (1) I subtract a number from another which should output '0.9' but insted 
outputs '0.99'

In case (2) I subtract a number from another and it gives correct output

This behaviour has been noticed if the result of the subtraction is greater than 100. 
I have also published my PHPINFO output on the same page for your reference.

This bug is quite dangerous (especially for us when we are dealing with financial 
calculations for our payment gateway using PHP) since all our reports dont tally at 
the end of the day by tiny figures such as this.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9692&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9692: Subtraction result below 100 yields wrong decimal output

2001-03-11 Thread bhavint

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: Math related
Bug description:  Subtraction result below 100 yields wrong decimal output

Please check http://www.transecute.com/~kalpesh/check.php4

In case (1) I subtract a number from another which should output '0.9' but insted 
outputs '0.99'

In case (2) I subtract a number from another and it gives correct output

This behaviour has been noticed if the result of the subtraction is greater than 100. 
I have also published my PHPINFO output on the same page for your reference.

This bug is quite dangerous (especially for us when we are dealing with financial 
calculations for our payment gateway using PHP) since all our reports dont tally at 
the end of the day by tiny figures such as this.


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



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




[PHP-DEV] PHP 4.0 Bug #9691 Updated: date("T") Time Zone crashes PHP4.04+ on Win2K

2001-03-11 Thread sniper

ID: 9691
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Date/time related
Assigned To: 
Comments:

This is fixed in CVS. Try latest dev build from http://www.php4win.de/

--Jani


Previous Comments:
---

[2001-03-12 00:30:58] [EMAIL PROTECTED]


Win Binaries 4.04 & 4.04pl1

Default php.ini file

Displays "PHP has encountered an Access Violation at 0145C344" (or some other hex 
string).

50/50 chance that restarting IIS 5.0 works or have to reboot system.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9691&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9691: date("T") Time Zone crashes PHP4.04+ on Win2K

2001-03-11 Thread vendor

From: [EMAIL PROTECTED]
Operating system: Windows 2000 AS
PHP version:  4.0.4pl1
PHP Bug Type: Date/time related
Bug description:  date("T") Time Zone crashes PHP4.04+ on Win2K



Win Binaries 4.04 & 4.04pl1

Default php.ini file

Displays "PHP has encountered an Access Violation at 0145C344" (or some other hex 
string).

50/50 chance that restarting IIS 5.0 works or have to reboot system.


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



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




[PHP-DEV] PHP 4.0 Bug #9690: crazy docs

2001-03-11 Thread gabriel . barros

From: [EMAIL PROTECTED]
Operating system: unix
PHP version:  4.0.4pl1
PHP Bug Type: Documentation problem
Bug description:  crazy docs

theres no "webmaster email" in this site, so im sending it as a documentation bug 
report...

first, i went to the documentation section and downloaded the PDF version of the 
Brazillian portuguese documentation...and i received the english one! then it was for 
php 3 not version 4...

second, in the news of this site... theres a "PHP 3.0.18 Released" note that says it 
has "fixes for file uploads and a backported imagetypes() function from PHP 4.0".. how 
come a version have fix for another version ?!?!? im confuse

and since im here... any ideia why every time i uncoment the apache conf line that 
associate .php to php4  the browser stops to treat .php file as an html document and 
try to download it?

thanks
Gabriel



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



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




[PHP-DEV] PHP 4.0 Bug #9689: No session variables in IE 5

2001-03-11 Thread john

From: [EMAIL PROTECTED]
Operating system: MS Windows
PHP version:  4.0.4pl1
PHP Bug Type: *Session related
Bug description:  No session variables in IE 5

Basic script. The script uses sessions for login data. When you login, the password 
and login are stored as session variables. When you try anything else (without passing 
the login variables as arguments) the session variables are empty (completely) but the 
session ID still exists. The sessions work fine in Netscape Navigator. I did all the 
suggested things (turning off the cache, turning off AUTOCOMPLETE) to no avail.
Here's the code:

 $val";
}
# this is empty the second time...
while (list ($key, $val) = each ($HTTP_SESSION_VARS)) {
echo "$key => $val";
}
echo session_id();
include("config.php3");
if (!isset($login_message)) {$login_message="";}

echo $logged_in."X".$action.$password;

session_register("logged_in");
session_register("action");

if (isset($password))
$spassword=$password;

if (isset($email))
$semail=$email;


session_register("semail");
session_register("spassword");

if (!isset($logged_in)) { $logged_in=0;};

if (!isset($action)) {$action=1;};

echo "";

$logged_in=checkInfo($spassword,$semail);

if ($logged_in==0)
$action=0;

if ($action==3)
$logged_in=0;

if ($logged_in==1) {
if ($action==1||!isset($action)||$action==0)
include("mainmenu.php3");
else if ($action==2)
include("mod.php3");


}
else
include("login.php3");




#page_close();



function connectDB()
{
global $dbname,$dbpass,$dbhost,$dblogin;
$db=mysql_pconnect($dbhost,$dblogin,$dbpass);
return $db;
}



function checkInfo($password,$email)
{

global $login_message;
global $dbname;
global $password,$email;
 $db=connectDB();

 mysql_select_db($dbname,$db);
$logged_in=0;
$sql="SELECT * FROM Alumni where Email='$email' and Password='$password'";
$res=mysql_query($sql);
echo $sql;
   if (!$res||mysql_num_rows($res)==0) {
print mysql_error();
$login_message="Please check your password and login again.";
}
else
{
while ($myrow=mysql_fetch_array($res)) {
if ($myrow["Approved"]==1)
$logged_in=1;
if ($myrow["Approved"]==0) {
$login_message="Sorry, your account has not 
been approved yet.";

$logged_in=2;
}
}




-- 
Edit Bug report at: http://bugs.php.net/?id=9689&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] popen() spans >100 processes

2001-03-11 Thread Boian Bonev


> Encountered > 100 spanned cmd.exe + php.exe using win32 CGI, this does
> not happen using apachemod, my task manager was open by accident,
> otherwise I would not have noticed this...

sounds like the second php 'detects' CGI mode, reads script name from
environment vars then executes the same script again and again?

b.


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Assigned To: 
Comments:

--with-zlib=/path/to/libz/install/dir

--Jani


Previous Comments:
---

[2001-03-11 17:42:08] [EMAIL PROTECTED]
o well, it would have been to nice ...

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
gcc  -I. -I/home/family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/f
amily/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3
/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xm
ltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4
pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php-4.0.4pl1/libs -L/hom
e/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib  -R /home/family/libxml2-2.3.3
/lib -R /usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/l
ibmain.la regex/libregex.la ext/domxml/libdomxml.la ext/mysql/libmysql.la ext/pc
re/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libst
andard.la ext/xml/libxml.la TSRM/libtsrm.la -ldl -lmysqlclient -lz -lxml -lresol
v -lm -ldl -lcrypt -lnsl -lresolv -L/home/family/libxml2-2.3.3/lib -lz
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lz: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1

---

[2001-03-11 17:29:02] [EMAIL PROTECTED]
thanks, it seems to work (just compiling...)

---

[2001-03-11 17:03:39] [EMAIL PROTECTED]
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


---

[2001-03-11 17:03:02] [EMAIL PROTECTED]
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


---

[2001-03-11 16:57:34] [EMAIL PROTECTED]
sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9531&edit=2


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




[PHP-DEV] PHP 4.0 Bug #3733 Updated: Linking error when including DBase support

2001-03-11 Thread avsm

ID: 3733
Updated by: avsm
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: dBase related
Assigned To: 
Comments:

This bug no longer exists in PHP4/OpenBSD.  Look in /usr/ports/www/php4 and use the 
'dbase' flavor to compile it, under OpenBSD 2.8+

Previous Comments:
---

[2001-02-10 14:11:05] [EMAIL PROTECTED]
refiling as bug against 4.0.

---

[2000-03-27 13:33:52] [EMAIL PROTECTED]
OpenBSD has too much in its C library. 

Making this a feature request.

Possible solutions:

1.)  Allow to use system library
2.)  Prefix symbol names, so that PHP always uses its internal copy

---

[2000-03-05 12:12:14] [EMAIL PROTECTED]

I'm trying to compile PHP 3.0.15 (happen also with 3.0.14) on a Sun SPARC box running 
OpenBSD 2.6. I'd like to load PHP as an Apache 1.3.9 DSO module, and when I try to add 
the DBase support (--with-dbase), this is what I get (it works fine without that 
option):

$ ./configure --with-dbase --with-apxs=/usr/sbin/apxs 
--with-config-file-path=/var/www/conf --without-pcre-regex --with-xml 
--enable-track-vars --with-imap=/usr/src/local/imap-4.7a/c-client

[... some stuff removed ...]

(cd dbase; gmake libdbf.a)
gmake[1]: Entering directory `/usr/src/local/php-3.0.15/dbase'
gcc -I. -I. -g -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=204105 -DEAPI -DUSE_EXPAT 
-I../lib/expat-lite -O2   -c dbf_head.c -o dbf_head.o
gcc -I. -I. -g -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=204105 -DEAPI -DUSE_EXPAT 
-I../lib/expat-lite -O2   -c dbf_rec.c -o dbf_rec.o
gcc -I. -I. -g -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=204105 -DEAPI -DUSE_EXPAT 
-I../lib/expat-lite -O2   -c dbf_misc.c -o dbf_misc.o
gcc -I. -I. -g -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=204105 -DEAPI -DUSE_EXPAT 
-I../lib/expat-lite -O2   -c dbf_ndx.c -o dbf_ndx.o
rm -f libdbf.a
ar crv libdbf.a dbf_head.o dbf_rec.o dbf_misc.o dbf_ndx.o
a - dbf_head.o
a - dbf_rec.o
a - dbf_misc.o
a - dbf_ndx.o
ranlib libdbf.a
gmake[1]: Leaving directory `/usr/src/local/php-3.0.15/dbase'
ar rc libmodphp3-so.a language-parser.tab.o language-scanner.o main.o php3_hash.o 
operators.o variables.o token_cache.o stack.o internal_functions.o snprintf.o 
php3_sprintf.o alloc.o list.o highlight.o debugger.o configuration-parser.tab.o 
configuration-scanner.o request_info.o safe_mode.o fopen-wrappers.o constants.o 
php3_realpath.o alloca.o php_compat.o  functions/adabasd.o functions/aspell.o 
functions/apache.o functions/fhttpd.o functions/basic_functions.o functions/crypt.o 
functions/datetime.o functions/db.o functions/dbase.o functions/dir.o functions/dl.o 
functions/dns.o functions/exec.o functions/file.o functions/filepro.o 
functions/filestat.o functions/formatted_print.o functions/fsock.o functions/gd.o 
functions/head.o functions/html.o functions/image.o functions/imap.o 
functions/php3_mcal.o functions/php_ftp.o functions/ftp.o functions/imsp.o 
functions/link.o functions/mail.o functions/math.o functions/iptc.o functions/md5.o 
functions/microtime.o functions/mime.o functions/msql.o functions/mysql.o 
functions/oracle.o functions/oci8.o functions/pack.o functions/pageinfo.o 
functions/pgsql.o functions/magick.o functions/post.o functions/rand.o functions/reg.o 
functions/solid.o functions/soundex.o functions/string.o functions/syslog.o 
functions/type.o functions/uniqid.o functions/sybase.o functions/sybase-ct.o 
functions/url.o functions/base64.o functions/info.o functions/bcmath.o 
functions/number.o functions/xml.o functions/unified_odbc.o functions/ldap.o 
functions/browscap.o functions/velocis.o functions/gdttf.o functions/gdcache.o 
functions/zlib.o functions/COM.o functions/ifx.o functions/pdf.o functions/cpdf.o 
functions/hw.o functions/hg_comm.o functions/dlist.o functions/fdf.o functions/wddx.o 
functions/wddx_a.o functions/snmp.o functions/var.o functions/interbase.o 
functions/quot_print.o functions/cyr_convert.o functions/sysvsem.o functions/dav.o 
functions/sysvshm.o functions/gettext.o functions/php3_mckcrypt.o functions/yp.o 
functions/dba.o functions/dba_gdbm.o functions/dba_dbm.o functions/dba_ndbm.o 
functions/dba_cdb.o functions/mcrypt.o functions/dba_db2.o functions/mhash.o 
functions/pcre.o functions/posix.o functions/parsedate.o functions/lcg.o 
functions/recode.o  dbase/dbf_head.o dbase/dbf_rec.o dbase/dbf_misc.o dbase/dbf_ndx.o
ranlib libmodphp3-so.a
/usr/sbin/apxs -c -o libphp3.so  -I. -I.  ./mod_php3.c libmodphp3-so.a 
-L/usr/local/lib  /usr/src/local/imap-4.7a/c-client/lib/c-client.a 
 -L./dbase -ldbf  -lm  -lresolv  
gcc -DDEV_RANDOM=/dev/arandom -DMOD_SSL=204105 -DEAPI -DUSE_EXPAT -I../lib/expat-lite 
-fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I. -I.  -c ./mod_php3.c
ld -Bforcearchive -Bshareable -o libphp3.so ./mod_php3.o libmodphp3-so.a

[PHP-DEV] PHP 4.0 Bug #2976 Updated: odbc_execute miss-use SQLBindParameter

2001-03-11 Thread kalowsky

ID: 2976
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: ODBC related
Assigned To: 
Comments:

same as #6275

Previous Comments:
---

[2001-02-13 15:56:09] [EMAIL PROTECTED]
I've begun to investigate many of the ODBC windows bugs... I'll see if I can jump on 
this one as well... I miss FreeBSD already...

---

[2001-02-13 15:40:01] [EMAIL PROTECTED]
i've sent a msg to the reporter, it got back. seems like he doesn't work there 
anymore. anyone with MS Access willing to test the snippet?

---

[2000-07-23 02:59:17] [EMAIL PROTECTED]
I will do some testing and see if I can reproduce the error in a recent release.

---

[1999-12-14 22:40:29] [EMAIL PROTECTED]
while use odbc prepare, if query statment owns one more variables, odbc execute will 
result wrong parameter binding if these variables are not the same type. For example, 
in SQL Server 7, establish a table 'TABLE1' with two columns: name:char(10), age:int, 
then try to insert some records as follow : 

$conn = odbc_connect("SQL_7_DSN", "", "", SQL_CUR_DEFAULT) or die("Connect 
errorn");

$stmt = odbc_prepare($conn, "insert into TABLE1 (name,age) values(?,?)") or 
die("Prepare errorn");

#odbc_exec($conn, "insert into TABLE1 (name,age) values('abc',1)"); # odbc_exec 
works fine without error

for ($i=0; $i <= 10; $i++)
{   
odbc_execute($stmt, array("abc".$i, $i));
} 

odbc_close($conn);

But, if change "insert into TABLE1 (name,age) values (?,?)" to "insert into TABLE1 
(age,name) values (?,?)" and change odbc_execute($stmt, array("abc".$i, $i)) to 
odbc_execute($stmt, array($i, "abc".$i)), everything works fine in SQL Server. It 
seems odbc_execute did not bind right parameter to right variables. I suggest add some 
function like odbc_bindParameter(...) to set suitable type.

BTW, take MS Access as DSN, which one in the above will not works :(

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=2976&edit=2


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




[PHP-DEV] PHP 4.0 Bug #6843 Updated: Select from Array

2001-03-11 Thread kalowsky

ID: 6843
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: ODBC related
Assigned To: 
Comments:

no user feedback, considered fixed

Previous Comments:
---

[2001-01-17 09:37:02] [EMAIL PROTECTED]
Please try the latest release and see if this continues for you...

---

[2000-10-02 19:48:09] [EMAIL PROTECTED]
This used to work in PHP3 and I have checked that I am using the latest libraries.
Is it possible to get PHP not to check the syntax of the SQL statement but just to 
pass it on.


---

[2000-09-21 23:08:42] [EMAIL PROTECTED]

When I run an odbc_exec from PHP-4.0.2 which connects to a Progress 83C database in 
order to retreive an array field as follows:

select name,narrative@1 from customer

I get an SQL syntax error as follows:

Warning SQL Error [OpenLink][ODBC] Syntax error or access, SQL State 37000 in 
SQLExecDIRECT

This works if I connect to my Progress Database using odbctest.

I think I may be using an old version of the ODBC libraries linked into PHP4

Is this correct ?

It all used to work fine with PHP3 and Openlink ODBC.


Thanks

Aubrey


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6843&edit=2


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




[PHP-DEV] PHP 4.0 Bug #7653 Updated: openlink - query error

2001-03-11 Thread kalowsky

ID: 7653
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Assigned To: 
Comments:

does this still continue in the latest release?

Previous Comments:
---

[2001-01-17 09:39:26] [EMAIL PROTECTED]
Please try the latest PHP build as both of these issues have been (I believe) delt 
with in it.

---

[2000-11-05 21:50:19] [EMAIL PROTECTED]
Hi,

  I tried to install php-4.0.3pl1 with openlink and pdflib support. It seems that it 
can connect to the server but can't query it. Before the compilation, I modified 
something in php_odbc.c. I changed SQLINTEGER len; to SDWORD len; to successfully 
compile and install it. The pdflib on the other hand is working well.

OUTPUT#
connected to DSN: DSN=NIP

Warning: SQL error: [OpenLink][ODBC][Driver]General error, SQL state S1000 in 
SQLExecDirect in /usr/local/apache/htdocs/openlink.php on line 16
can not execute 'SELECT * FROM NIP.toa.NIP113' closing connection Resource id #1 

##SCRIPT

Sample Output

";
if($result=odbc_do($conn_id, $sql)) {
echo "executing '$sql'";
 echo "Results: ";
odbc_result_all($result,"border=1");
}
?>
 


CONFIGURE#
./configure --with-apxs=/usr/sbin/apxs 
--with-gd --with-pdflib=/usr/local 
--with-config-file-path=/usr/local/apache 
--with-zlib-dir=/usr --with-ttf=/usr/local/include 
--with-jpeg-dir=/usr --with-tiff-dir=/usr 
--with-system-regex=yes --enable-debug=no 
--enable-track-vars --with-openlink=/usr/local/openlink

#php.ini##
I just copied the php.ini-dist and never touched it.




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7653&edit=2


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




[PHP-DEV] PHP 4.0 Bug #6275 Updated: ODBC_Prepare/ODBC_Execute fails with parameters

2001-03-11 Thread kalowsky

ID: 6275
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: ODBC related
Assigned To: kalowsky
Comments:



Previous Comments:
---

[2001-02-14 08:20:41] [EMAIL PROTECTED]
starting to look into windows problems, only problem is I have only win98, so the 
winNT and 2k won't likely happen...

---

[2000-08-21 09:16:20] [EMAIL PROTECTED]
Hello,

My problem is odbc_execute fails with the following error message:

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect , 
SQL state 07001 in SQLExecute in d:Inetpubwwwrootphpadodbindex.php on line 77

The odbc_exec INSERT works fine. I am using a plain vanilla NorthWind MS Access 
database and am using the ISAPI version of PHP, with ODBC built in.

Sample code:

$conn = odbc_connect("nwind","","");
odbc_exec($conn,"drop table ADOXYZ"); 
odbc_exec($conn,"create table ADOXYZ (id int, firstname char(24), lastname 
char(24))"); 
odbc_exec($conn,"insert into ADOXYZ (id,firstname,lastname) values (0,'Zend','PHP')");
$stmt = odbc_prepare($conn,"insert into ADOXYZ (id,firstname,lastname) values 
(?,?,?)");
if ($stmt) {
print "Trying execute";
$stmt = odbc_execute($stmt,array(1,"John","Lim"));
}




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6275&edit=2


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




[PHP-DEV] PHP 4.0 Bug #6275 Updated: ODBC_Prepare/ODBC_Execute fails with parameters

2001-03-11 Thread kalowsky

ID: 6275
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Assigned To: kalowsky
Comments:

it seems the sample script provided is failing in the 
SQLBindParameter call.  Why?  The SQLError call tells us 
it's trying to bind a parameter of the wrong type.  

I've sent out an email on the PHP-DB list asking if anyone 
could try a small variation of this script, and only one 
person responded.  It seems to be a Microsoft Access 
specific issue only, but my only other comparision at this 
time is SQL Server...draw your own conclusions. 

Previous Comments:
---

[2001-02-14 08:20:41] [EMAIL PROTECTED]
starting to look into windows problems, only problem is I have only win98, so the 
winNT and 2k won't likely happen...

---

[2000-08-21 09:16:20] [EMAIL PROTECTED]
Hello,

My problem is odbc_execute fails with the following error message:

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect , 
SQL state 07001 in SQLExecute in d:Inetpubwwwrootphpadodbindex.php on line 77

The odbc_exec INSERT works fine. I am using a plain vanilla NorthWind MS Access 
database and am using the ISAPI version of PHP, with ODBC built in.

Sample code:

$conn = odbc_connect("nwind","","");
odbc_exec($conn,"drop table ADOXYZ"); 
odbc_exec($conn,"create table ADOXYZ (id int, firstname char(24), lastname 
char(24))"); 
odbc_exec($conn,"insert into ADOXYZ (id,firstname,lastname) values (0,'Zend','PHP')");
$stmt = odbc_prepare($conn,"insert into ADOXYZ (id,firstname,lastname) values 
(?,?,?)");
if ($stmt) {
print "Trying execute";
$stmt = odbc_execute($stmt,array(1,"John","Lim"));
}




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6275&edit=2


-- 
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] m4 buildconf error

2001-03-11 Thread Jon Parise

On Sun, Mar 11, 2001 at 12:17:05PM -0500, Jon Parise wrote:

> I just starting getting these from a current cvs checkout:

[snip]
 
> rebuilding configure
> NONE:0: /usr/local/bin/gm4: ERROR: EOF in string
> rebuilding acconfig.h
> rebuilding main/php_config.h.in
> NONE:0: /usr/local/bin/gm4: ERROR: EOF in string
 
Woops, this one was my own fault.  I was playing with one of the
extension's config.m4 files and ended up grunging it in the process.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

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




[PHP-DEV] PHP 4.0 Bug #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-03-11 Thread hellmarch

ID: 9666
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Graphics related
Description: Can't display image/pjpeg and image/gif in one sanme page

Yes,I use addslashes on the binary data.Didn't need to use this function?

Previous Comments:
---

[2001-03-11 05:35:11] [EMAIL PROTECTED]
If you inserted this with PHP also, did you use addslashes
on the binary data? IIRC that's required, or mysql 'll be kinda messy with the data..

-- Mathieu

---

[2001-03-11 00:04:12] [EMAIL PROTECTED]
Sorry,this page is not on web,it's on my intranet.I am a Chinese,I am not good at 
english.I mean one of the two types will not display on the first time that the page 
load,Must refresh can display togather.

---

[2001-03-10 14:07:36] [EMAIL PROTECTED]
Works for me just fine. What is the url to that page of 
yours? 

--Jani


---

[2001-03-10 03:19:26] [EMAIL PROTECTED]
I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode 
to record a gif or jpg binary data stream,when i read them out and display them in one 
same page,gif or jpg will not display on page at the first time i load the page.Must 
refresh the page,the two type can be displayed.
I don't know if this is a bug or not,so,thanx a lot.
Attach,my program:



---


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


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




[PHP-DEV] PHP 4.0 Bug #9584 Updated: NSAPI PHP eating up all memory on server

2001-03-11 Thread wongh

ID: 9584
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Web Server problem
Description: NSAPI PHP eating up all memory on server

Seems that case has worsen since I last posted this problem.
On my development server which has max of 256MB has already used up to around 90MB for 
simply serving php pages using NES. I have other servers running on similar config 
running jsp/cgi and they only use to a max of around 80MB.

On the production server where we have 10CPUS + 10GB Ram. My other server are still 
running at max of 80MB but the PHP NES configuration has jumped to an enormous 350MB!

It seems that the amount of memory PHP consumes and NOT release is directly 
proportional to the Max Ram available.

I will need to implement a fix to force release of ran memory. Performance CAN be 
sacrificied for the force release of memory (running a PHP CGI method is not an option)

Previous Comments:
---

[2001-03-06 12:48:18] [EMAIL PROTECTED]
I have NSAPI PHP module installed with my Netscape Iplanet Web server 4.1SP3. It can 
run fine with all pages but then I checked memory usage thru "top" command, and it 
seems that the Memory used by the scripts are not returned after completing the 
script. This problem also happened when i used NSAPI PHP for Netscape Enterprise 
Server 3.63, but the problem was not as signifcant then.

After a few runs of php pages with database + ldap:
1) For NES 3.63 PHP NSAPI, it jumped from 20MB to 34MB
2) For NES 4.1SP3 PHP NSAPI, it jumped from 30MB to 65MB

Is there a memory leak for PHP NSAPI or is there a way to force PHP to release its 
memory? I have already set the memory limit to limit each script. (IT works), but 
still the 1-2MB memory I Allocate to the PHP is not freed up after use.

I am running it under an enterprise server and I can't have PHP eat up all the memory. 
It is imperative that i force php to relase it back for use, I know restarting 
webserver works, but I can't possibly reboot a production server frequently

---


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


-- 
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-03-11 Thread CVS Account Request

Full name: Steph Fox
Email: [EMAIL PROTECTED]
ID: sfox
Purpose: assisting with php-gtk manual

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




[PHP-DEV] PHP 4.0 Bug #9688: FTP_PUT / FOPEN

2001-03-11 Thread ivarness

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.4
PHP Bug Type: IIS related
Bug description:  FTP_PUT / FOPEN

I'm working against a IIS web server with PHP 4.0.4
It seems that both ftp_up and fopen causes the same
problem, not allowing you to upload files.
On the attempt to open sourcefile/submited file 
I get following errors;

with ftp_up:
Warning: error opening G:\\mysite\\mysite\\gfx\\icon_editor_url.gif in ftp.php on line 
19

with fopen:
Warning: fopen("G:\\mysite\\mysite\\gfx\\icon_editor_list.gif","rb") - No such file or 
directory in uploadfile.php on line 7

hence under linux, I have tested the fopen with php4.0.b3
and it seems to work. Question me for samplecode if needed.

Regards,
IN.





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



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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread php

ID: 9531
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

o well, it would have been to nice ...

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
gcc  -I. -I/home/family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/f
amily/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3
/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xm
ltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4
pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php-4.0.4pl1/libs -L/hom
e/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib  -R /home/family/libxml2-2.3.3
/lib -R /usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/l
ibmain.la regex/libregex.la ext/domxml/libdomxml.la ext/mysql/libmysql.la ext/pc
re/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libst
andard.la ext/xml/libxml.la TSRM/libtsrm.la -ldl -lmysqlclient -lz -lxml -lresol
v -lm -ldl -lcrypt -lnsl -lresolv -L/home/family/libxml2-2.3.3/lib -lz
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lz: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1

Previous Comments:
---

[2001-03-11 17:29:02] [EMAIL PROTECTED]
thanks, it seems to work (just compiling...)

---

[2001-03-11 17:03:39] [EMAIL PROTECTED]
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


---

[2001-03-11 17:03:02] [EMAIL PROTECTED]
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


---

[2001-03-11 16:57:34] [EMAIL PROTECTED]
sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



---

[2001-03-11 16:27:18] [EMAIL PROTECTED]
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

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


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread php

ID: 9531
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

thanks, it seems to work (just compiling...)

Previous Comments:
---

[2001-03-11 17:03:39] [EMAIL PROTECTED]
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


---

[2001-03-11 17:03:02] [EMAIL PROTECTED]
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


---

[2001-03-11 16:57:34] [EMAIL PROTECTED]
sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



---

[2001-03-11 16:27:18] [EMAIL PROTECTED]
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


---

[2001-03-11 16:26:34] [EMAIL PROTECTED]
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

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


-- 
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] CVS Account Request

2001-03-11 Thread James Moore


> Full name: Steph Fox
> Email: [EMAIL PROTECTED]
> ID: sfox
> Purpose: Working on php-gtk manual

Can someone please add steph and give her karama for php-gtk/docs as shes
been helping with parts of the manual (mainly correcting my terrible
english.. ;0)

Cheers,

James
--
James Moore
[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] Re: PHP 4.0 Bug #9684 Updated: apache cannot start

2001-03-11 Thread z

thanks for the prompt response. however, after i downloaded the latest
version and compiled  and run apache, it still says  the same thing;;


cannot load /usr/local/apache_1.3.19/libexec/libphp4.so into  server
/usr/local/apache_1.3.19/libexec/libphp4.so  undefined symbol :
uncompress

if i uncommant  LoadModule, apache can start ok.  the odd thing is that
i have installed two other linux machines with exact the same compiling
process and they all work fine

please instruct

thanks again

z



-- 
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-03-11 Thread CVS Account Request

Full name: Steph Fox
Email: [EMAIL PROTECTED]
ID: sfox
Purpose: Working on php-gtk manual

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




[PHP-DEV] PHP 4.0 Bug #9687: x-httpd-source fails with zero length

2001-03-11 Thread markhers

From: [EMAIL PROTECTED]
Operating system: RedHat 7.0
PHP version:  4.0 Latest CVS (11/03/2001)
PHP Bug Type: PHP options/info functions
Bug description:  x-httpd-source fails with zero length

For a while, I have been experiencing an irksome problem since about 4.0.4, but I 
can't pinpoint when exactly it started.

On RedHat 7.0, I have the following webserver running:

Apache/1.3.19 (Unix) PHP/4.0.5-dev mod_ssl/2.8.1 OpenSSL/0.9.5a

on a 500 Mhz P3 with 240 MB of RAM.

The PHP DSO module is built from the CVS pull from about 12pm PDT today (3/11/2001).

Anyway, whenever I try to access a pretty colored source code version of any of my 
files via .phps (where .phps is one of the extensions setup as an 
application/x-httpd-source type), I get a "zero data" message from my browser.

The physical configruation line shows:

AddType application/x-httpd-php-source .phps .inc

I compiled PHP as a CGI version to see if it was an Apache issue, and the same thing 
happens.

The Apache child processes aren't dying, either. And the logs show a content legth of 
0 and a successful request, so i don't have any idea what's really going on.

I'm willing to assist anyone in determining the cause of the problem, but I haven't 
seen it listed anywhere else.

I have the following PHP configuration:

'./configure' '--with-apxs=/opt/apache/sbin/apxs' '--enable-track-vars' 
'--enable-inline-optimizations' '--enable-trans-sid' '--with-mysql' 
'--with-pgsql=/usr/local/pgsql' '--with-curl=/usr/local/curl' '--with-gd' 
'--with-t1lib-dir=/usr/local/t1lib' '--with-ttf' '--enable-pcre' 
'--with-bz2=/usr/local/bzip2' '--with-zlib' '--with-zlib-dir=/usr' '--enable-wddx' 
'--with-dom=/usr/local/libxml'

Any help or pointers to provide more help is welcome.


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



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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Compile Failure
Assigned To: 
Comments:

And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


Previous Comments:
---

[2001-03-11 17:03:02] [EMAIL PROTECTED]
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


---

[2001-03-11 16:57:34] [EMAIL PROTECTED]
sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



---

[2001-03-11 16:27:18] [EMAIL PROTECTED]
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


---

[2001-03-11 16:26:34] [EMAIL PROTECTED]
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

---

[2001-03-11 06:07:33] [EMAIL PROTECTED]
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9531&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Assigned To: 
Comments:

Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


Previous Comments:
---

[2001-03-11 16:57:34] [EMAIL PROTECTED]
sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



---

[2001-03-11 16:27:18] [EMAIL PROTECTED]
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


---

[2001-03-11 16:26:34] [EMAIL PROTECTED]
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

---

[2001-03-11 06:07:33] [EMAIL PROTECTED]
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

---

[2001-03-03 17:25:39] [EMAIL PROTECTED]
Try compiling sablot / expat from sources too.

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9531&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread php

ID: 9531
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

sorry, it didn't help

[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr

[root@e-smith php-4.0.4pl1]# make



/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1



Previous Comments:
---

[2001-03-11 16:27:18] [EMAIL PROTECTED]
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


---

[2001-03-11 16:26:34] [EMAIL PROTECTED]
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

---

[2001-03-11 06:07:33] [EMAIL PROTECTED]
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

---

[2001-03-03 17:25:39] [EMAIL PROTECTED]
Try compiling sablot / expat from sources too.

--Jani


---

[2001-03-03 08:04:56] [EMAIL PROTECTED]
sorry, but the bug persists

Making all in .
make[1]: Entering directory `/home/family/php4-200103030345'
gcc  -I. -I/home/family/php4-200103030345/ -I/home/family/php4-200103030345/main
 -I/home/family/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/
family/libxml2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/
home/family/php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030
345/ext/xml/expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8
 -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php4-200103030345/libs -L/ho
me/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib -L/usr/local/lib  -R /home/fa
mily/libxml2-2.3.3/lib -R /usr/local/mysql/lib -R /usr/local/lib stub.lo  Zend/l
ibZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/domxml/libdo
mxml.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/sabl
ot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/li
bxml.la TSRM/libtsrm.la -ldl -lxmltok -lxmlparse -lsablot -lmysqlclient -lz -lxm
l -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lz
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit

[PHP-DEV] CVS Account Request

2001-03-11 Thread CVS Account Request

Full name: Celestino Roberto Alejandro
Email: [EMAIL PROTECTED]
ID: rcelestino
Purpose: Tk/GDI extension after the stabled development of GTK+ extension.

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




[PHP-DEV] PHP 4.0 Bug #9686: IIS says "module not found"

2001-03-11 Thread moritz . moeller

From: [EMAIL PROTECTED]
Operating system: W2K Pro & Server
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  IIS says "module not found"

I installed PHP 4.0.4pl1 as ISAPI on IIS5 (W2K). When i try to open a php page, i get 
the error "module not found". i checked the entries at the application mappings, and 
they are correct (ext: ".php", script module: yes, filexists: no, cgi: 
c:\php\sapi\php4isapi.dll).


-- 
Edit Bug report at: http://bugs.php.net/?id=9686&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] My own PHP/Zend Cache in devlopment..

2001-03-11 Thread Stephen Waits


Hi all,

I've begun patching PHP404pl1 to support caching.  My caching has the
following pros/cons as compared to the Zend Cache:

Pros:
* free
* similar performance

Cons:
* still in development; only partially working
* no support
* no pretty web-based admin or stats package
* does not handle include's (elegantly)

Remaining TODO (somewhat prioritized):
* serialize zend_op_array.static_variables
* serialize 2 or 3 other zend_op_array members who are not yet
understood
* serialize CG()'s and EG()'s, etc. where necessary (reverse engineering
is most painful here)
* add time/datestamp check to caching
* add all parameters to ".ini" system
* add statistics data capturing
* ensure portability
* publish and merge into PHP codebase (if allowed)

I love PHP, and I think it's primary authors deserve to make a buck, so
I don't intend my patch to ever exceed Zend Cache in feature set.  On
some level too, I hope Zend Cache might come down in price so us
hobbyists could purchase it (which is what prompted me to do this
myself); for $1500/CPU is out of control ridiculous.

I have achieved first functionality with my system (yes it actually
works), but, could use an experienced PHP hacker's assistance on
completing it.  My current stumbling block is the serialization of
several (HashTable*)'s.

If you think you can and want to help out, please send me a message!  I
only really need one more person's help to wrap this baby up.  The PHP
community as a whole will certainly be grateful for a Free Cache..

Thanks,
Steve ([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] PHP 4.0 Bug #9678 Updated: multipart/form POSTS corrupted

2001-03-11 Thread sniper

ID: 9678
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

It's the same bug. And it's fixed. Please try the 
latest CVS snapshot from http://snaps.php.net/

--Jani


Previous Comments:
---

[2001-03-11 07:23:32] [EMAIL PROTECTED]
This is NOT submitted twice.

This is similar (and maybe related) to a bug I reported where file uploads (which have 
to use multipart/form) are corrupted. But this is DIFFERENT.

This bug refers to the corruption of simple text-fields in the POST as well.

Text fields have line returns added to them, so that for example a field submitted 
with contents "picturename.jpg" winds up as "nnpicturename.jpg" when it becomes a 
variable

---

[2001-03-11 00:14:35] [EMAIL PROTECTED]
Submitted twice. (#9677)


---

[2001-03-11 00:11:23] [EMAIL PROTECTED]
Ever since 4.0.4pl1, any fields posted with a form using enctype=multipart/form are 
currupted.

One or two line feed seem to be added to text fields when the come as variables in the 
receiving PHP script.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9678&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Compile Failure
Assigned To: 
Comments:

Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani


Previous Comments:
---

[2001-03-11 16:26:34] [EMAIL PROTECTED]
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

---

[2001-03-11 06:07:33] [EMAIL PROTECTED]
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

---

[2001-03-03 17:25:39] [EMAIL PROTECTED]
Try compiling sablot / expat from sources too.

--Jani


---

[2001-03-03 08:04:56] [EMAIL PROTECTED]
sorry, but the bug persists

Making all in .
make[1]: Entering directory `/home/family/php4-200103030345'
gcc  -I. -I/home/family/php4-200103030345/ -I/home/family/php4-200103030345/main
 -I/home/family/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/
family/libxml2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/
home/family/php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030
345/ext/xml/expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8
 -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php4-200103030345/libs -L/ho
me/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib -L/usr/local/lib  -R /home/fa
mily/libxml2-2.3.3/lib -R /usr/local/mysql/lib -R /usr/local/lib stub.lo  Zend/l
ibZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/domxml/libdo
mxml.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/sabl
ot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/li
bxml.la TSRM/libtsrm.la -ldl -lxmltok -lxmlparse -lsablot -lmysqlclient -lz -lxm
l -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lz
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php4-200103030345'
make: *** [all-recursive] Error 1

---

[2001-03-02 19:18:17] [EMAIL PROTECTED]
AFAIK this is fixed in CVS. CAn you try the latest CVS version, or a snapshot from 
snaps.php.net and see it the problem persists?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9531&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Assigned To: 
Comments:

I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)

This configure option is only in the CVS version but 
it will be in 4.0.5. 

Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.

--Jani
 

Previous Comments:
---

[2001-03-11 06:07:33] [EMAIL PROTECTED]
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

---

[2001-03-03 17:25:39] [EMAIL PROTECTED]
Try compiling sablot / expat from sources too.

--Jani


---

[2001-03-03 08:04:56] [EMAIL PROTECTED]
sorry, but the bug persists

Making all in .
make[1]: Entering directory `/home/family/php4-200103030345'
gcc  -I. -I/home/family/php4-200103030345/ -I/home/family/php4-200103030345/main
 -I/home/family/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/
family/libxml2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/
home/family/php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030
345/ext/xml/expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8
 -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php4-200103030345/libs -L/ho
me/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib -L/usr/local/lib  -R /home/fa
mily/libxml2-2.3.3/lib -R /usr/local/mysql/lib -R /usr/local/lib stub.lo  Zend/l
ibZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/domxml/libdo
mxml.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/sabl
ot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/li
bxml.la TSRM/libtsrm.la -ldl -lxmltok -lxmlparse -lsablot -lmysqlclient -lz -lxm
l -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lz
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php4-200103030345'
make: *** [all-recursive] Error 1

---

[2001-03-02 19:18:17] [EMAIL PROTECTED]
AFAIK this is fixed in CVS. CAn you try the latest CVS version, or a snapshot from 
snaps.php.net and see it the problem persists?

---

[2001-03-02 16:48:33] [EMAIL PROTECTED]
installed Sablot-0.51-0.i386.rpm
installed expat-1.95.0-1.i386.rpm
installed libxml2-2.3.3.tar.gz
installed mysql-3.23.33-pc-linux-gnu-i686.tar.gz

./configure --with-dom=/home/family/libxml2-2.3.3 --with-mysql=/usr/local/mysql 
--with-sablot
make

(everything goes well until:)

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynam

[PHP-DEV] PHP 4.0 Bug #9685: Error message from Windows: Apache has caused an error in MSVCRT.DLL

2001-03-11 Thread jamaz

From: [EMAIL PROTECTED]
Operating system: Windows ME
PHP version:  4.0.3pl1
PHP Bug Type: Arrays related
Bug description:  Error message from Windows: Apache has caused an error in MSVCRT.DLL

I think that problem is in row marked in script with "ERROR LINE? =>"

This script causes error if $GLOBALS is passed as first argument. I didn't experienced 
the problem with any other variable.

SCRIPT:
\nArray ".$key."\n";
 echo_array_self($a,$key,$l);
 echo "\n";
}
function echo_array_self($a,$key="",$l=1)
{while(list($k,$v)=each($a))
 {for($i=0;$i<$l;$i++){echo " |";}
  echo " +";
  if(is_array($v)):
   echo " + ".$key."[".$k."] - array()\n";
ERROR LINE? => if($v!=$GLOBALS):
echo_array_self($v,$key."[".$k."]",$x=$l+1);
   endif;
  else:
   echo " - ".$key."[".$k."]=";
   if(is_string($v)):
echo "'$v'\n";
   else:
echo $v."\n";
   endif;
  endif;
 }
}
?>
I can't give you any other informations.


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



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




[PHP-DEV] PHP 4.0 Bug #9644 Updated: File Upload eats all RAM and swap space

2001-03-11 Thread sniper

ID: 9644
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Try creating a GDB backtrace of that.

1. rm config.cache
2. Add --enable-debug to you php configure line
3. 'make clean ; make ; make install'
4. And same for apache (step 3.)
5. apachectl stop
6. gdb /path/to/httpd
7. (gdb) run -X
8. Then try that script I sent you.
9. When (if) it hangs, ctrl+c
10. (gdb) bt full
11. cut'n'paste that backtrace into this bug report.

And do all this using the LATEST CVS snapshot.

--Jani


Previous Comments:
---

[2001-03-11 04:25:06] [EMAIL PROTECTED]
I'm also getting the same problem with this script.

Any script, even those that work on other systems, are giving problems on my system.

---

[2001-03-10 20:04:10] [EMAIL PROTECTED]
I can't reproduce this. Please try the following script.

upload.php:









---

[2001-03-10 01:52:48] [EMAIL PROTECTED]
I have compiled the CVS snapshot, with the same configure options as before, and the 
problem still exists.  Have not compiled it with APC this time.

I have copied php.ini-dist to /usr/local/lib/php.ini



---

[2001-03-09 19:49:25] [EMAIL PROTECTED]
1. There is an entry for APC in your php.ini.. have you
tried this without APC? 

2. Please try the latest CVS snapshot from http://snaps.php.net/

--Jani


---

[2001-03-09 01:10:31] [EMAIL PROTECTED]
Hi!

I'm using PHP to create a file upload script for a website.  When a user uploads a 
large file (>1Mb) my server always starts to use all the available RAM(I have 160Mb 
installed), and also uses up all the swap space(256Mb).  This happens for any upload 
script written in PHP, even scripts that work on other servers.  I can upload files to 
scripts written in PERL, without a problem.  To resolve this problem, my only option 
is to completely kill apache with 'apachectl stop' and then start it back 'apachectl 
start'

Server software:
Apache 1.3.19 (also happened while I was running 1.3.17)
PHP 4.0.4pl1
Linux 2.4.1 (originally slackware 7.1 distro)

Server specs:
Intel Pentium 133Mhz
160Mb RAM
10Gb HDD

Here is the script that I'm using:
Trying something?";
} else {
if ($userfile_size) {
$target = $xdir.'/'.$userfile_name;
if (!copy ($userfile,$target)) {
echo 'Error copying file! Please try again!Press the back button in your 
browser!';
} else {
header ("Location: 
http://mouthoff.magestudios.net/admin/filemanager/?path=".urlencode($path));
exit;
}
} else {
?>

Upload this file: 






I'm a PHP newbie, so please excuse any bad coding =)

Here's a copy of php.ini:
[PHP]

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

[PHP-DEV] Karma Request

2001-03-11 Thread Sebastian Bergmann

  Could someone give 

Thomas Fromm (tfromm) and
Thomas Weinert (subjective)

  the appropriate Karma for PEAR?

  Thanks,
Sebastian

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application -> http://phpOpenTracker.de

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




Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Lars Torben Wilson

Jani Taskinen writes:
> On Sun, 11 Mar 2001, Lars Torben Wilson wrote:
> 
> >Now, it's Sunday morning, I just crawled out of my nice warm bed, and
> >I haven't finished my first cup of bad coffee yet--but if
> 
> Have that cup of coffee first.. :)
> 
> >  Duplicate == Repeated information, and
> >  Repeated Information == Useless Bug Report, and
> >  Useless Bug Report == Bogus,
> 
> This is why I added the bogus status. Duplicate != useless.
> Sometimes duplicates add more info to the original report,
> e.g. better gdb backtraces.
> 
> >does not, therefore:
> >
> >  Duplicate == Bogus?
> >And both Duplicate and Bogus mean that the bug report is dead and
> >shouldn't be touched (I tend to agree with Stas on this one):
> 
> Duplicate: Same bug but from different submitter.
>They have also the right to know if bug is fixed.
> 
> Bogus: e.g. A report submitted (accidently) twice. Or some
>empty report without enough info..spam..etc.

OK, that makes a lot more sense, thanks. 
 
> >Just wondering...and this is just an addled early-morning
> >thought...what would be the downside of have a very simple Open/Closed
> >flag field for each report, along with a status modifier field of
> >Duplicate, Analyzed, Bogus, etc.
> 
> Well..we are currently designing the new bug system. And it will
> be more powerful than the current one. And it'll be much easier
> to modify and add new features than the current one is.. :)
> 
> --Jani

Wicked. Lemme know if you need someone to write the docs for it.


-- 
++
|Torben Wilson <[EMAIL PROTECTED]>Adcore Finland|
|http://www.coastnet.com/~torbenhttp://www.adcore.com|
|Ph: 1.604.709.0506 [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] PHP 4.0 Bug #9684 Updated: apache cannot start

2001-03-11 Thread sniper

ID: 9684
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Apache related
Assigned To: 
Comments:

This is fixed in CVS. Try latest CVS snapshot from http://snaps.php.net/ OR add 
--with-zlib into you configure
line.

--Jani


Previous Comments:
---

[2001-03-11 15:40:15] [EMAIL PROTECTED]
after compiling and config httpd. the apache(1.3.19) cannot start. it says cannot load 
libphp4.so uncompressed.

please instruct

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9684&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9682 Updated: Input types of image from HTML forms are not stored in $HTTP_XXXX_VARS

2001-03-11 Thread sniper

ID: 9682
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *General Issues
Assigned To: 
Comments:

the .'s are translated to _'s.

$HTTP_POST_VARS["newcustomer_x"]

and

$HTTP_POST_VARS["newcustomer_y"]

--Jani


Previous Comments:
---

[2001-03-11 13:06:36] [EMAIL PROTECTED]
AFAIK it should be in imagename_x (not .x, but _x). Can you check this?

---

[2001-03-11 12:20:13] [EMAIL PROTECTED]
I have a php file containing a form which utilisies an image as a submit button in the 
following format.



When the button is clicked, the form posts back to the same page and some checks are 
made to determine if
the button was the cause of the post as shown below...

if(isset($HTTP_POST_VARS["newcustomer.x"])) {
$editmode = true;
$customerid = -1;
} else {
 $editmode = false;
  }

When the above code is executed, $editmode always comes out as false. However, on 
outputing the value of the 
POST array for 'newcustomer.x' nothing is displayed. I have also tried to use GET as 
the form method and printed out the contents of the GET array for 'newcustomer.x' and 
it is also blank. 

To follow this up I have also tried to make requests to a generic PHP file which 
prints out the contents of the $HTTP_GET_VARS array and can always reproduce the fact 
that any parameter containing a '.' within the name
are never stored.

Its possible that this problem could lie in the array structure itself rather than the 
request processing, but I am not sure.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9682&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9684: apache cannot start

2001-03-11 Thread z

From: [EMAIL PROTECTED]
Operating system: redhat6.2
PHP version:  4.0.4pl1
PHP Bug Type: Apache related
Bug description:  apache cannot start

after compiling and config httpd. the apache(1.3.19) cannot start. it says cannot load 
libphp4.so uncompressed.

please instruct


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



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




Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Jani Taskinen

On Sun, 11 Mar 2001, Lars Torben Wilson wrote:

>Now, it's Sunday morning, I just crawled out of my nice warm bed, and
>I haven't finished my first cup of bad coffee yet--but if

Have that cup of coffee first.. :)

>  Duplicate == Repeated information, and
>  Repeated Information == Useless Bug Report, and
>  Useless Bug Report == Bogus,

This is why I added the bogus status. Duplicate != useless.
Sometimes duplicates add more info to the original report,
e.g. better gdb backtraces.

>does not, therefore:
>
>  Duplicate == Bogus?
>And both Duplicate and Bogus mean that the bug report is dead and
>shouldn't be touched (I tend to agree with Stas on this one):

Duplicate: Same bug but from different submitter.
   They have also the right to know if bug is fixed.

Bogus: e.g. A report submitted (accidently) twice. Or some
   empty report without enough info..spam..etc.

>Just wondering...and this is just an addled early-morning
>thought...what would be the downside of have a very simple Open/Closed
>flag field for each report, along with a status modifier field of
>Duplicate, Analyzed, Bogus, etc.

Well..we are currently designing the new bug system. And it will
be more powerful than the current one. And it'll be much easier
to modify and add new features than the current one is.. :)

--Jani



-- 
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] SIGFPE, FreeBSD and some PHP math functions

2001-03-11 Thread Andi Gutmans

Did you see the #ifdef __FreeBSD__ in zend.c?
It prevents the SIGFPE if I remember correctly, when we lose precision on 
FreeBSD. Maybe this mask can also fix the problems you have of not crashing.
I can't check out the man page right now beause I don't have access to 
FreeBSD but it might be doable and would prevent us from searching through 
all of the source code.

Andi

At 04:22 PM 3/11/2001 +0200, Alexander Feldman wrote:
>Hello,
>
>There is a bunch of mathematical functions that can generate core dump on
>FreeBSD 3.4 (and on a whole group of other UNIX clones). Take for example
>the following PHP script:
>
> log(0);
>?>
>
>or
>
> asin(2);
>?>
>
>and so on...
>
>Obviously we should fix this behavior as there should not be a way for a
>PHP script to crash the process. Here is the question how to do this. One
>approach is to check for out of range value in the PHP functions before
>calling the underlying math procedures. Another approach is to ignore the
>signal (on FreeBSD that is SIGFPE) and manually in the appropriate PHP
>functions to check if an exception flag is raised. Perhaps, there are
>other decisions as well.
>
>Are there any volunteers to write the code or I should take this?
>
>-- Alex
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Lars Torben Wilson

Jani Taskinen writes:
> On Sun, 11 Mar 2001, Stanislav Malyshev wrote:
> 
> >JT>> Uhm..I have always closed the duplicates after the original (which they
> >JT>> refer to) was closed. Any opinions about this? As the current bug system
> >
> >I thought "Duplicate" itself is a closed status. Like, work continues on
> >the original and the duplicate is officialy dead from now, nobody tocuhes
> >it anymore.
> 
> If that bug system was smart enough, it would close childs too when the
> parent is closed. But it isn't. So you should always close also the
> duplicates when the original is fixed. This way the ones who submitted
> the duplicates know also that it's fixed.
> 
> Bogus == Dead. :)
> 
> --Jani

Now, it's Sunday morning, I just crawled out of my nice warm bed, and
I haven't finished my first cup of bad coffee yet--but if 

  Duplicate == Repeated information, and
  Repeated Information == Useless Bug Report, and
  Useless Bug Report == Bogus, 

does not, therefore:

  Duplicate == Bogus?

And both Duplicate and Bogus mean that the bug report is dead and
shouldn't be touched (I tend to agree with Stas on this one):

Just wondering...and this is just an addled early-morning
thought...what would be the downside of have a very simple Open/Closed
flag field for each report, along with a status modifier field of
Duplicate, Analyzed, Bogus, etc.



-- 
++
|Torben Wilson <[EMAIL PROTECTED]>Adcore Finland|
|http://www.coastnet.com/~torbenhttp://www.adcore.com|
|Ph: 1.604.709.0506 [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]




Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Jani Taskinen

On Sun, 11 Mar 2001, Stanislav Malyshev wrote:

>JT>> Uhm..I have always closed the duplicates after the original (which they
>JT>> refer to) was closed. Any opinions about this? As the current bug system
>
>I thought "Duplicate" itself is a closed status. Like, work continues on
>the original and the duplicate is officialy dead from now, nobody tocuhes
>it anymore.

If that bug system was smart enough, it would close childs too when the
parent is closed. But it isn't. So you should always close also the
duplicates when the original is fixed. This way the ones who submitted
the duplicates know also that it's fixed.

Bogus == Dead. :)

--Jani



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




[PHP-DEV] PHP 4.0 Bug #9683: XML DOM memory leak w/ libxml 2.3.3

2001-03-11 Thread bryan

From: [EMAIL PROTECTED]
Operating system: Linux (Mandrake 7.2)
PHP version:  4.0.4pl1
PHP Bug Type: DOM XML related
Bug description:  XML DOM memory leak w/ libxml 2.3.3


Environment:
Linux (Mandrake 7.2)
Apache

Behavior:
I tested with both libxml 2.2.7 and libxml 2.3.4.  I have 
seen reports of this elsewhere.  I am not familiar with 
how to verify memory leaks.  When using libxml 2.3.4, 
apache processes increased in size until the apache locked 
up and become inaccessible.  Can't reproduce this using 
apache 2.2.7.




-- 
Edit Bug report at: http://bugs.php.net/?id=9683&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] Need home improvement money? -wxpqt

2001-03-11 Thread patmac
Title: Where Smart People Shop for Mortgages






  
  

  


  
  

  Fill out this short form or
call
888-418-2575.  If your loan request is to purchase a
home
click here.


  
  
* All fields are
required;
  please enter N/A in those fields which do not apply to your
circumstances.
  


  First
and Last Name
  




  Co-Applicant's Name
  




  City
  




  State 
  

  AL
  AK
  AZ
  AR
  CA
  CO
  CT
  DE
  DC
  FL
  GA
  HI
  ID
  IL
  IN
  IA
  KS
  KY
  LA
  ME
  MD
  MA
  MI
  MN
  MS
  MO
  MT
  NE
  NV
  NH
  NJ
  NM
  NY
  NC
  ND
  OH
  OK
  OR
  PA
  RI
  SC
  SD
  TN
  TX
  UT
  VT
  VI
  VA
  WA
  WV
  WI
  WY

(where the home is located)
We do not have lenders that make loans
outside
the USA.


  Street

Address
  




  Zip
  




  Work
Phone
000-000-
  




  Home
Phone
000-000-
  




  Type
of
House Owned 
  

  Single Family
  Condo
  Townhouse
  Multi-Family




  Current
Value  
  


(enter numbers only, i.e. 7)


  Purchase
Price
  


(enter numbers only, i.e. 5)


  Total
Mortgage
Balance
  


(enter numbers only i.e. 45000, if you owe zero enter
1)


  Interest
Rate
  




  Fixed
or
Adjustable?
  

  Fixed
  Adjustable
  Not sure




  Monthly
Payment
  




  Behind

on Payments?
  

  Yes
  No




  How Would Your Rate Your Credit?
  

  Poor
  Fair
  Good
  Excellent

   

Re: [PHP-DEV] 4.0.5RC1 - Sunday evening, GMT

2001-03-11 Thread Alexander Bokovoy

On Sat, Mar 10, 2001 at 07:00:19PM +0200, Zeev Suraski wrote:
> Unless someone says something I'm going to branch away 4.0.5 and package 
> 4.0.5RC1 tomorrow evening.  It's lingering for too long...
I've spent several days exploiting bugs in PHP4 build environment.
There are many little problems there but I've found biggest one:
for self contained extensions any check for PHP_ARG_WITH resulted
in 'yes' even if such check failed due absence of additional library
needed to compile.

This code snippet from configure for IMAP module shows problem:

echo $ac_n "checking for Kerberos support in IMAP""... $ac_c" 1>&6
echo "configure:980: checking for Kerberos support in IMAP" >&5
# Check whether --with-kerberos or --without-kerberos was given.
if test "${with_kerberos+set}" = set; then
  withval="$with_kerberos"
  PHP_KERBEROS=$withval
else
  PHP_KERBEROS=no
fi

[. skipped .]

if test "$php_always_shared" = "yes"; then
  ext_output="yes, shared"
  ext_shared=yes
  test "$PHP_KERBEROS" = "no" && PHP_KERBEROS=yes
fi
---

So, even if I have no kerberos libraries on the system, PHP_KERBEROS
will be defined to 'yes' resulting in errors in module creation.

There are bunch of modules which rely on such multiple PHP_ARG_WITH
in config.m4.

Even more worse situation is in the Readline extension:
(config.m4 from ext/readline)
PHP_ARG_WITH(libedit,for libedit readline replacement, 
[  --with-libedit[=DIR]Include libedit readline replacement.])

PHP_ARG_WITH(readline,for readline support,
[  --with-readline[=DIR]   Include readline support.  DIR is the readline
  install directory.])

So after phpize and configure calls both HAVE_LIBEDIT and HAVE_READLINE
will be defined to 1 resulting in errors in code.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |Aurora R&D team 
Minsk Linux Users Group |www.minsk-lug.net|  www.aurora-linux.com  
ALT Linux Team  |www.alt-linux.org| Architecte Open Source
-- If you fool around with something long enough, it will eventually break.

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

2001-03-11 Thread Alexander Bokovoy

On Mon, Mar 12, 2001 at 01:22:31AM +1000, Cameron wrote:
> are there any know bugs in it currently? i just went to compile it into
> php and got a heap of warnings and then it spat it, is this a BDB
> problem or PHP problem???
I had no problems with DB 3.2.9, patched with two additional patches
from previous versions in order to make correct transactions support
for MySQL 3.23.33. Latest PHP from CVS compiles with it like a breeze.
-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |Aurora R&D team 
Minsk Linux Users Group |www.minsk-lug.net|  www.aurora-linux.com  
ALT Linux Team  |www.alt-linux.org| Architecte Open Source
-- If you fool around with something long enough, it will eventually break.

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




[PHP-DEV] PHP 4.0 Bug #9682 Updated: Input types of image from HTML forms are not stored in $HTTP_XXXX_VARS

2001-03-11 Thread derick

ID: 9682
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *General Issues
Assigned To: 
Comments:

AFAIK it should be in imagename_x (not .x, but _x). Can you check this?

Previous Comments:
---

[2001-03-11 12:20:13] [EMAIL PROTECTED]
I have a php file containing a form which utilisies an image as a submit button in the 
following format.



When the button is clicked, the form posts back to the same page and some checks are 
made to determine if
the button was the cause of the post as shown below...

if(isset($HTTP_POST_VARS["newcustomer.x"])) {
$editmode = true;
$customerid = -1;
} else {
 $editmode = false;
  }

When the above code is executed, $editmode always comes out as false. However, on 
outputing the value of the 
POST array for 'newcustomer.x' nothing is displayed. I have also tried to use GET as 
the form method and printed out the contents of the GET array for 'newcustomer.x' and 
it is also blank. 

To follow this up I have also tried to make requests to a generic PHP file which 
prints out the contents of the $HTTP_GET_VARS array and can always reproduce the fact 
that any parameter containing a '.' within the name
are never stored.

Its possible that this problem could lie in the array structure itself rather than the 
request processing, but I am not sure.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9682&edit=2


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




[PHP-DEV] PHP 4.0 Bug #9682: Input types of image from HTML forms are not stored in $HTTP_XXXX_VARS

2001-03-11 Thread karln

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0 (Service Pack 6)
PHP version:  4.0.4pl1
PHP Bug Type: *General Issues
Bug description:  Input types of image from HTML forms are not stored in 
$HTTP__VARS

I have a php file containing a form which utilisies an image as a submit button in the 
following format.



When the button is clicked, the form posts back to the same page and some checks are 
made to determine if
the button was the cause of the post as shown below...

if(isset($HTTP_POST_VARS["newcustomer.x"])) {
$editmode = true;
$customerid = -1;
} else {
 $editmode = false;
  }

When the above code is executed, $editmode always comes out as false. However, on 
outputing the value of the 
POST array for 'newcustomer.x' nothing is displayed. I have also tried to use GET as 
the form method and printed out the contents of the GET array for 'newcustomer.x' and 
it is also blank. 

To follow this up I have also tried to make requests to a generic PHP file which 
prints out the contents of the $HTTP_GET_VARS array and can always reproduce the fact 
that any parameter containing a '.' within the name
are never stored.

Its possible that this problem could lie in the array structure itself rather than the 
request processing, but I am not sure.


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

2001-03-11 Thread Jon Parise

I just starting getting these from a current cvs checkout:

(void) [php4]$ ./buildconf 
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.3.4 (ok)
rebuilding Makefile templates
override r-xr-xr-x  jcptch/staff for ltconfig? (y/n [n]) y
override r--r--r--  jcptch/staff for ltmain.sh? (y/n [n]) y
override r-xr-xr-x  jcptch/staff for config.guess? (y/n [n]) y
override r-xr-xr-x  jcptch/staff for config.sub? (y/n [n]) y
rebuilding configure
NONE:0: /usr/local/bin/gm4: ERROR: EOF in string
rebuilding acconfig.h
rebuilding main/php_config.h.in
NONE:0: /usr/local/bin/gm4: ERROR: EOF in string

(void) [php4]$ gm4 --version
GNU m4 1.4

(void) [php4]$ uname -a
FreeBSD void.rit.edu 4.2-STABLE FreeBSD 4.2-STABLE #0: Mon Jan  8 20:43:10 EST 2001
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/VOID i386

Any ideas?

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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: PHP 4.0 Bug #8557 Updated: apache fails to start after compiling PHP - "can't load libphp4.so"

2001-03-11 Thread Zachary Hamm


No, it didn't.  I still have not gotten PHP to compile properly with
informix.  I've given up, basically, since every method I've tried has
failed.  I'd be glad to try again and send you the output error messages if
you like.

Zack

> -Original Message-
> From: Bug Database [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 9:21 PM
> To: [EMAIL PROTECTED]
> Subject: PHP 4.0 Bug #8557 Updated: apache fails to start after
> compiling PHP - "can't load libphp4.so"
>
>
> ID: 8557
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: Reproduceable crash
> Assigned To:
> Comments:
>
> Did the fix in #4630 help?
>
> --Jani
>
>
> Previous Comments:
> --
> -
>
> [2001-01-07 19:08:05] [EMAIL PROTECTED]
> Please try the workaround found in bug report #4630.
>
> --Jani
>
> --
> -
>
> [2001-01-04 17:11:12] [EMAIL PROTECTED]
> Configured PHP 4.0.4 on AIX 4.3.3 using IBM C for AIX v.5
> Apache 1.3.9 in /usr/local/etc/apache
>
> Installed via the following:
> export CC='cc -Dinline= -ma'
> ./configure --with-apxs=/usr/local/etc/apache/bin/apxs
> --with-mysql=/usr/local --with-gd=/usr/local --with-ttf
> --with-informix
> make; make install
>
> everything appears to run fine (with the exception of some
> small errors about unrecognized suffixes), but when I start
> apache, I get:
>
> [root@p140 php-4.0.4]# /usr/local/etc/apache/bin/apachectl start
> Syntax error on line 208 of /usr/local/etc/apache/conf/httpd.conf:
> Cannot load /usr/local/etc/apache/libexec/libphp4.so into
> server: dlopen: /usr/local/etc/apache/libexec/libphp4.so: No
> such file or directory /usr/local/etc/apache/bin/apachectl
> start: httpd could not be started
>
> If I run configure with ONLY the --with-apxs and --with-mysql
> options, it compiles and installs, and apache runs fine.  If
> I remove --with-informix, same thing.  If I remove the
> --with-gd and related, same thing.
>
> I've set INFORMIXDIR appropriately, and have the informix SDK
> installed (I've built this module successfully in Linux).
>
> I've installed the gd,zlib,libjpeg,and freetype from bull.de,
> and manually built them as well.  No difference.
>
> Apache modules installed:
>
> [root@p140 local]# /usr/local/etc/apache/bin/httpd -l
> Compiled-in modules:
>   http_core.c
>   mod_env.c
>   mod_log_config.c
>   mod_mime.c
>   mod_negotiation.c
>   mod_status.c
>   mod_include.c
>   mod_autoindex.c
>   mod_dir.c
>   mod_cgi.c
>   mod_asis.c
>   mod_imap.c
>   mod_actions.c
>   mod_userdir.c
>   mod_alias.c
>   mod_access.c
>   mod_auth.c
>   mod_so.c
>   mod_setenvif.c
>
>
>
> --
> -
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=8557&edit=2
>


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

2001-03-11 Thread Cameron

are there any know bugs in it currently? i just went to compile it into
php and got a heap of warnings and then it spat it, is this a BDB
problem or PHP problem???


Cameron


-- 
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] SIGFPE, FreeBSD and some PHP math functions

2001-03-11 Thread Alexander Feldman

Hello,

There is a bunch of mathematical functions that can generate core dump on
FreeBSD 3.4 (and on a whole group of other UNIX clones). Take for example
the following PHP script:



or



and so on...

Obviously we should fix this behavior as there should not be a way for a
PHP script to crash the process. Here is the question how to do this. One
approach is to check for out of range value in the PHP functions before
calling the underlying math procedures. Another approach is to ignore the
signal (on FreeBSD that is SIGFPE) and manually in the appropriate PHP
functions to check if an exception flag is raised. Perhaps, there are
other decisions as well.

Are there any volunteers to write the code or I should take this?

-- Alex


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




[PHP-DEV] PHP 4.0 Bug #9681: can't use interbase functions in user defined sessions

2001-03-11 Thread olivier

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.17  i686 unknown
PHP version:  4.0.4pl1
PHP Bug Type: *Session related
Bug description:  can't use interbase functions in user defined sessions

I wrote my own session handlers, for use with interbase. Logging is done to a file 
that is truncated by the open function, and then a line appended by each other session 
function.

When I start with the example session handler from the manual, everything works ok. 
Then I start adding interbase functions. Session reading works. BUT, when I add 
interbase functions to writing, that function is not called anymore (it doesn't write 
it's entry in the logfile anymore). The same for adding ibase_commit() or 
ibase_close() to the close function, it doesn't write it's log entry anymore.

I tested the queries, and they _do_ work.

A working write function:
function ibs_write($key, $val) {
global $ibs_local_key, $ibs_db_id;
$fd = fopen('/home/pkedu/olivier/nwuser/log.out', 'a');
$dbkey = addslashes($key.$ibs_local_key);
$val = addslashes($val);
$now = time();
$query = "update user_info set session_data='$val' where user_id = (select 
user_id from user_session where session_key='$dbkey')";
//  $ret = ibase_query($ibs_db_id, $query);
fputs($fd, $query."\n");
fclose($fd);
}

This is the same function where it doesn't work anymore, only thje comment is removed, 
and now the query is not written to the logfile anymore:

function ibs_write($key, $val) {
global $ibs_local_key, $ibs_db_id;
$fd = fopen('/home/pkedu/olivier/nwuser/log.out', 'a');
$dbkey = addslashes($key.$ibs_local_key);
$val = addslashes($val);
$now = time();
$query = "update user_info set session_data='$val' where user_id = (select 
user_id from user_session where session_key='$dbkey')";
$ret = ibase_query($ibs_db_id, $query);
fputs($fd, $query."\n");
fclose($fd);
}

The system does not have any other problems with interbase or sessions, I tried normal 
and persistant database connections, PHP does not crash (no reports in the apache 
error_log). Apache is Apache/1.3.9 from Debian Potato. Please contact me for any 
missing information.



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



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




[PHP-DEV] PHP 4.0 Bug #9678 Updated: multipart/form POSTS corrupted

2001-03-11 Thread carl

ID: 9678
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Unknown/Other Function
Description: multipart/form POSTS corrupted

This is NOT submitted twice.

This is similar (and maybe related) to a bug I reported where file uploads (which have 
to use multipart/form) are corrupted. But this is DIFFERENT.

This bug refers to the corruption of simple text-fields in the POST as well.

Text fields have line returns added to them, so that for example a field submitted 
with contents "picturename.jpg" winds up as "\n\npicturename.jpg" when it becomes a 
variable

Previous Comments:
---

[2001-03-11 00:14:35] [EMAIL PROTECTED]
Submitted twice. (#9677)


---

[2001-03-11 00:11:23] [EMAIL PROTECTED]
Ever since 4.0.4pl1, any fields posted with a form using enctype=multipart/form are 
currupted.

One or two line feed seem to be added to text fields when the come as variables in the 
receiving PHP script.

---


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


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




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-11 Thread php

ID: 9531
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how 
people get the libraries, or one will need a step-by-step instruction to avoid such 
annoying waste of time. After all, I don't think I'm the only one who wants to use 
sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?

Previous Comments:
---

[2001-03-03 17:25:39] [EMAIL PROTECTED]
Try compiling sablot / expat from sources too.

--Jani


---

[2001-03-03 08:04:56] [EMAIL PROTECTED]
sorry, but the bug persists

Making all in .
make[1]: Entering directory `/home/family/php4-200103030345'
gcc  -I. -I/home/family/php4-200103030345/ -I/home/family/php4-200103030345/main
 -I/home/family/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/
family/libxml2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/
home/family/php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030
345/ext/xml/expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8
 -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php4-200103030345/libs -L/ho
me/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib -L/usr/local/lib  -R /home/fa
mily/libxml2-2.3.3/lib -R /usr/local/mysql/lib -R /usr/local/lib stub.lo  Zend/l
ibZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/domxml/libdo
mxml.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/sabl
ot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/li
bxml.la TSRM/libtsrm.la -ldl -lxmltok -lxmlparse -lsablot -lmysqlclient -lz -lxm
l -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lz
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php4-200103030345'
make: *** [all-recursive] Error 1

---

[2001-03-02 19:18:17] [EMAIL PROTECTED]
AFAIK this is fixed in CVS. CAn you try the latest CVS version, or a snapshot from 
snaps.php.net and see it the problem persists?

---

[2001-03-02 16:48:33] [EMAIL PROTECTED]
installed Sablot-0.51-0.i386.rpm
installed expat-1.95.0-1.i386.rpm
installed libxml2-2.3.3.tar.gz
installed mysql-3.23.33-pc-linux-gnu-i686.tar.gz

./configure --with-dom=/home/family/libxml2-2.3.3 --with-mysql=/usr/local/mysql 
--with-sablot
make

(everything goes well until:)

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamicstub.lo
 libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1

---


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


-- 
PHP Development Mailing List 

[PHP-DEV] PHP 4.0 Bug #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-03-11 Thread mathieu

ID: 9666
Updated by: mathieu
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *Graphics related
Assigned To: 
Comments:

If you inserted this with PHP also, did you use addslashes
on the binary data? IIRC that's required, or mysql 'll be kinda messy with the data..

-- Mathieu

Previous Comments:
---

[2001-03-11 00:04:12] [EMAIL PROTECTED]
Sorry,this page is not on web,it's on my intranet.I am a Chinese,I am not good at 
english.I mean one of the two types will not display on the first time that the page 
load,Must refresh can display togather.

---

[2001-03-10 14:07:36] [EMAIL PROTECTED]
Works for me just fine. What is the url to that page of 
yours? 

--Jani


---

[2001-03-10 03:19:26] [EMAIL PROTECTED]
I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode 
to record a gif or jpg binary data stream,when i read them out and display them in one 
same page,gif or jpg will not display on page at the first time i load the page.Must 
refresh the page,the two type can be displayed.
I don't know if this is a bug or not,so,thanx a lot.
Attach,my program:



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9666&edit=2


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




Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Stanislav Malyshev

JT>> Uhm..I have always closed the duplicates after the original (which they
JT>> refer to) was closed. Any opinions about this? As the current bug system

I thought "Duplicate" itself is a closed status. Like, work continues on
the original and the duplicate is officialy dead from now, nobody tocuhes
it anymore.

-- 
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115



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




[PHP-DEV] PHP 4.0 Bug #9644 Updated: File Upload eats all RAM and swap space

2001-03-11 Thread gerard

ID: 9644
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproduceable crash
Description: File Upload eats all RAM and swap space

I'm also getting the same problem with this script.

Any script, even those that work on other systems, are giving problems on my system.

Previous Comments:
---

[2001-03-10 20:04:10] [EMAIL PROTECTED]
I can't reproduce this. Please try the following script.

upload.php:









---

[2001-03-10 01:52:48] [EMAIL PROTECTED]
I have compiled the CVS snapshot, with the same configure options as before, and the 
problem still exists.  Have not compiled it with APC this time.

I have copied php.ini-dist to /usr/local/lib/php.ini



---

[2001-03-09 19:49:25] [EMAIL PROTECTED]
1. There is an entry for APC in your php.ini.. have you
tried this without APC? 

2. Please try the latest CVS snapshot from http://snaps.php.net/

--Jani


---

[2001-03-09 01:10:31] [EMAIL PROTECTED]
Hi!

I'm using PHP to create a file upload script for a website.  When a user uploads a 
large file (>1Mb) my server always starts to use all the available RAM(I have 160Mb 
installed), and also uses up all the swap space(256Mb).  This happens for any upload 
script written in PHP, even scripts that work on other servers.  I can upload files to 
scripts written in PERL, without a problem.  To resolve this problem, my only option 
is to completely kill apache with 'apachectl stop' and then start it back 'apachectl 
start'

Server software:
Apache 1.3.19 (also happened while I was running 1.3.17)
PHP 4.0.4pl1
Linux 2.4.1 (originally slackware 7.1 distro)

Server specs:
Intel Pentium 133Mhz
160Mb RAM
10Gb HDD

Here is the script that I'm using:
Trying something?";
} else {
if ($userfile_size) {
$target = $xdir.'/'.$userfile_name;
if (!copy ($userfile,$target)) {
echo 'Error copying file! Please try again!Press the back button in your 
browser!';
} else {
header ("Location: 
http://mouthoff.magestudios.net/admin/filemanager/?path=".urlencode($path));
exit;
}
} else {
?>

Upload this file: 






I'm a PHP newbie, so please excuse any bad coding =)

Here's a copy of php.ini:
[PHP]

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



; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_op

[PHP-DEV] PHP 4.0 Bug #9680: Segmentation fault

2001-03-11 Thread techno-matic

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.14-5
PHP version:  4.0.4pl1
PHP Bug Type: Dynamic loading
Bug description:  Segmentation fault

PHP 4.04pl1
Apache 1.3.12
MySQL 3.23.32
Linux 2.2.14-5mdk

I just downloaded PHP 4.04pl1 and compiled it as module: --withmysql --with-apxs 
--enable-versioning

First i had some problems compiling with mysql (due to the -lz at the linking) but it 
worked for me, then it appears to compile all fine, but when i loaded the php4 module 
with Apache the following happens:

The .PHP files are shown as source files (i just see the entire code)
The HTML files aren't shown, and the error logs report this:

[notice] child pid x exit signal Segmentation fault (11)

Some idea??

pd. I do added the:
LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php4

lines...



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