#24641 [Opn-Fbk]: Displaying Warnning While Destroying Registered Session.

2003-07-14 Thread sniper
 ID:   24641
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ashish1_sharma at rediffmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Advance Server 2000
 PHP Version:  4.3.2
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.



Previous Comments:


[2003-07-14 00:24:36] ashish1_sharma at rediffmail dot com

Description:

I tried several times to use session_destroy() in Windows NT
environment , Using Advance Server 2000
with  IIS4  but it displaying  the warning
message Session object destruction failed (but It works perfectly in
Linux environment).

Please help me out !!!






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



#23685 [Fbk-Opn]: fake values returned when OID value is an empty string

2003-07-14 Thread s dot zagrodzki at net dot icm dot edu dot pl
 ID:   23685
 User updated by:  s dot zagrodzki at net dot icm dot edu dot pl
 Reported By:  s dot zagrodzki at net dot icm dot edu dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: SNMP related
 Operating System: Linux 2.2
 PHP Version:  4.3.2RC4-dev
 New Comment:

this is a part of tcpdump of snmpwalk query:
...
GetResponse(50)  .1.3.6.1.2.1.31.1.1.1.18.3=lacze do Obs. Astr.
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.3
GetResponse(31)  .1.3.6.1.2.1.31.1.1.1.18.4=
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.4
GetResponse(59)  .1.3.6.1.2.1.31.1.1.1.18.5=: lacze do Wydz.
Zarzadzania
...
as you can see, snmp agent returns empty value, response length is also
correct. And snmpwalk utility also gives
correct results.


Previous Comments:


[2003-07-13 14:49:20] [EMAIL PROTECTED]

I tried this with other variables (I do not have an 
SNMP agent implementing the ifXTable) and cannot 
reproduce it.

Therefore I am thinking that it maybe the SNMP agent
which returns these values and as a result they
show up in PHP. Could you confirm that this is not a
problem with the SNMP agent/router.



[2003-07-13 00:11:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Some changes have been made lately.




[2003-05-19 04:30:19] s dot zagrodzki at net dot icm dot edu dot pl

I've copied ext/snmp directory from this snapshot into my php source
tree (when I tried to compile the snap as it is, it complained about
too old db3 library). It didn't help.



[2003-05-18 16:57:47] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-05-18 15:47:25] s dot zagrodzki at net dot icm dot edu dot pl

PHP with snmp module. Sample piece of output from snmpwalk utility from
ucd-snmp:
$ snmpwalk router community
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias
...
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3 = lacze do Obs. Astr.
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.4 =
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.5 = : lacze do Wydz.
Zarzadzania
...
(value of ifAlias.4 is an empty string).
Sample script:
?
$ifAlias = snmprealwalk(router, community,
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias);
print_r($ifAlias);
?

Output of sample script:
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3] = lacze do Obs.
Astr.
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.4] = lacze do Obs.
Astr.
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.5] = : lacze do
Wydz. Zarzadz
(ifAlias.4 is now the same as ifAlias.3, not an empty string).

ucd-snmp 4.2.6
router is Cisco 2511 with IOS 11.1(5) (don't suppose it matters, but
just in case...)





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



#23685 [Opn]: fake values returned when OID value is an empty string

2003-07-14 Thread s dot zagrodzki at net dot icm dot edu dot pl
 ID:   23685
 User updated by:  s dot zagrodzki at net dot icm dot edu dot pl
 Reported By:  s dot zagrodzki at net dot icm dot edu dot pl
 Status:   Open
 Bug Type: SNMP related
 Operating System: Linux 2.2
 PHP Version:  4.3.2RC4-dev
 New Comment:

I tried using snmp module from 20030714 snapshot - didn't help.


Previous Comments:


[2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl

this is a part of tcpdump of snmpwalk query:
...
GetResponse(50)  .1.3.6.1.2.1.31.1.1.1.18.3=lacze do Obs. Astr.
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.3
GetResponse(31)  .1.3.6.1.2.1.31.1.1.1.18.4=
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.4
GetResponse(59)  .1.3.6.1.2.1.31.1.1.1.18.5=: lacze do Wydz.
Zarzadzania
...
as you can see, snmp agent returns empty value, response length is also
correct. And snmpwalk utility also gives
correct results.



[2003-07-13 14:49:20] [EMAIL PROTECTED]

I tried this with other variables (I do not have an 
SNMP agent implementing the ifXTable) and cannot 
reproduce it.

Therefore I am thinking that it maybe the SNMP agent
which returns these values and as a result they
show up in PHP. Could you confirm that this is not a
problem with the SNMP agent/router.



[2003-07-13 00:11:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Some changes have been made lately.




[2003-05-19 04:30:19] s dot zagrodzki at net dot icm dot edu dot pl

I've copied ext/snmp directory from this snapshot into my php source
tree (when I tried to compile the snap as it is, it complained about
too old db3 library). It didn't help.



[2003-05-18 16:57:47] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

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



#24612 [Fbk-Opn]: Getimagesize fails on IM 5.4.6 created jpegs

2003-07-14 Thread pekka at studio-on-the dot net
 ID:   24612
 User updated by:  pekka at studio-on-the dot net
 Reported By:  pekka at studio-on-the dot net
-Status:   Feedback
+Status:   Open
 Bug Type: GetImageSize related
 Operating System: Windows XP Professional SP1
 PHP Version:  4.3.2
 New Comment:

The url on demo is url for obvious reasons. On my localhost with local
files I get bitten by this bug. One thing to note is that in Windows
when you do NOT add second parameter to getimagesize then it always
works. But I need that second parameter too, so...
Must be something Bill has messed up.
Thanks anyway.


Previous Comments:


[2003-07-13 22:00:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Works just fine. Not even 10'000 tries produce any false result. It's
propably just some network thing, as you're accessing the image
remotely. Try it locally. (drop the url)





[2003-07-11 15:51:58] pekka at studio-on-the dot net

it should be of course 

Actual result:
--
e.g. (in Windows):
try 433: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|



[2003-07-11 15:33:22] pekka at studio-on-the dot net

Description:

Code snippet http://www.exhibitserver.com/getimagesizetest.php works
perfectly on Linux/apache (PHP 4.2.2), but in Windows XP/Apache/PHP
4.3.2 even 1000 times is not always enough to get some data back from
the function. Mostly it needs between 0 and 200 retries before it gets
some data into array.

I have found that this happens and has something to do ONLY with
ImageMagick Mogrify created JPGS (Version: @(#)ImageMagick 5.4.6
06/01/02 Q:8). See aforementioned demo for test image url.



Reproduce code:
---
http://www.exhibitserver.com/getimagesizetest.php

Expected result:

try 0: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|

Actual result:
--
nothing, 

or

try 0: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|





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



#24639 [Fbk-Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: linux
-PHP Version:  4.3.2
+PHP Version:  php4-stable-latest
 New Comment:

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to http://www.domain.com/banner.php cuase no trouble.


Previous Comments:


[2003-07-13 21:52:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And if you can reproduce this with latest CVS, provide
us a short but _complete_ example script. Some part of some
huge app is useless to us.




[2003-07-13 19:14:56] nospam at rshell dot org

Description:

when someone access an old forum page (modify old phpbb version), we
get segmentation fault in apache error log and the user get a blank
page. The funny thing is that when I try with --enable-debug the forum
loads.

php compiled with:
--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp
--with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr
--with-xpm-dir=/usr/X11R6 --with-mcrypt --with-mysql=/usr/local/mysql
--with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf
--with-gettext --with-mhash --with-imap --with-kerberos
--enable-inline-optimization --with-zlib-dir --with-openssl --with-pear
--enable-sockets --enable-track-vars --enable-magic-quotes --with-curl


here is the backtrace (no debug info, see above)

Program received signal SIGSEGV, Segmentation fault.
0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
#1  0x2c84ed24 in free () from /lib/i686/libc.so.6
#2  0x2cbd22dc in _efree (ptr=0x88a1814)
at /home/rcs/php-4.3.2/Zend/zend_alloc.c:265
#3  0x2cbe99c2 in zend_restore_ini_entry_cb (ini_entry=0x831f7d8,
stage=8)
at /home/rcs/php-4.3.2/Zend/zend_ini.c:53
#4  0x2cbe55bb in zend_hash_apply_with_argument (ht=0x82bd798,
apply_func=0x2cbe997c zend_restore_ini_entry_cb, argument=0x8)
at /home/rcs/php-4.3.2/Zend/zend_hash.c:707
#5  0x2cbe9aa0 in zend_ini_deactivate ()
at /home/rcs/php-4.3.2/Zend/zend_ini.c:87
#6  0x2cbe0bb0 in zend_deactivate () at
/home/rcs/php-4.3.2/Zend/zend.c:656
#7  0x2cbb8bff in php_request_shutdown (dummy=0x0)
at /home/rcs/php-4.3.2/main/main.c:985
#8  0x2cbfabb5 in apache_php_module_main (r=0x82258cc,
display_source_mode=0)
#9  0x2cbfb732 in send_php (r=0x82258cc, display_source_mode=0,
filename=0x0)
at /home/rcs/php-4.3.2/sapi/apache/mod_php4.c:617
#10 0x2cbfb786 in send_parsed_php (r=0x82258cc)
at /home/rcs/php-4.3.2/sapi/apache/mod_php4.c:632
#11 0x080546d3 in ap_invoke_handler ()
#12 0x08069b57 in process_request_internal ()
#13 0x08069f8f in ap_internal_redirect ()
#14 0x2c954dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#15 0x080546d3 in ap_invoke_handler ()
#16 0x08069b57 in process_request_internal ()
#17 0x08069bb8 in ap_process_request ()

strace output:

read(9, ?php\nfunction draw_menubox_head..., 4096) = 702
_llseek(9, 702, [702], SEEK_SET)= 0
ioctl(9, SNDCTL_TMR_TIMEBASE, 0x5e399740) = -1 ENOTTY (Inappropriate
ioctl for device)
read(9, , 4096)   = 0
read(9, , 8192)   = 0
ioctl(9, SNDCTL_TMR_TIMEBASE, 0x5e398700) = -1 ENOTTY (Inappropriate
ioctl for device)
close(9)= 0
munmap(0x21731000, 4096)= 0
time(NULL)  = 1058141468
write(22, [Mon Jul 14 03:11:08 2003] [erro..., 270) = 270
chdir(/)  = 0
munmap(0x217f8000, 81920)   = 0
munmap(0x217ae000, 303104)  = 0
close(8)= 0
munmap(0x2173d000, 8192)= 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(6, 0x86c4c80, 8192)= -1 EAGAIN (Resource
temporarily unavailable)
fcntl64(6, F_SETFL, O_RDWR) = 0
write(6, \1\0\0\0\1, 5)   = 5
shutdown(6, 2 /* send and receive */)   = 0
close(6)= 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
--- SIGSEGV (Segmentation fault) ---

Cheers
-J

Reproduce code:
---
?php
function draw_menubox_header($titel){
$string = 'table...' . $titel .
   '...' .
  '/table' ;
return($string);
}
?








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



#22566 [Fbk-Opn]: imap_mail hang the script

2003-07-14 Thread lmstudio at 1system dot ru
 ID:   22566
 User updated by:  lmstudio at 1system dot ru
 Reported By:  lmstudio at 1system dot ru
-Status:   Feedback
+Status:   Open
 Bug Type: IMAP related
 Operating System: Windows 2000 Pro
 PHP Version:  4.3.2-dev
 New Comment:

I'll try to use mail function.


Previous Comments:


[2003-07-12 23:47:37] [EMAIL PROTECTED]

Does mail() work..?




[2003-03-13 00:54:31] lmstudio at 1system dot ru

Sorry for delay.
I installed new version - my prombler still present.

On http://www.lmstudio.arctel.ru/mail_output.html
now you can find the whole PHP script for testing.



[2003-03-11 20:17:20] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2003-03-06 12:54:36] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-03-06 04:18:01] lmstudio at 1system dot ru

The whole content for the 4-th param. for imap_mail can be found at
http://www.lmstudio.arctel.ru/mail_output.html



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

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



#22566 [Opn]: imap_mail hang the script

2003-07-14 Thread lmstudio at 1system dot ru
 ID:   22566
 User updated by:  lmstudio at 1system dot ru
 Reported By:  lmstudio at 1system dot ru
 Status:   Open
 Bug Type: IMAP related
 Operating System: Windows 2000 Pro
-PHP Version:  4.3.2-dev
+PHP Version:  4.3.3-dev
 New Comment:

In new version (4.3.3-dev) problem is still remain: mail function can't
send mail with big attachments (for example 250Kb)


Previous Comments:


[2003-07-14 05:02:34] lmstudio at 1system dot ru

I'll try to use mail function.



[2003-07-12 23:47:37] [EMAIL PROTECTED]

Does mail() work..?




[2003-03-13 00:54:31] lmstudio at 1system dot ru

Sorry for delay.
I installed new version - my prombler still present.

On http://www.lmstudio.arctel.ru/mail_output.html
now you can find the whole PHP script for testing.



[2003-03-11 20:17:20] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2003-03-06 12:54:36] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

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



#24639 [Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: linux
 PHP Version:  php4-stable-latest
 New Comment:

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6


Previous Comments:


[2003-07-14 04:52:50] nospam at rshell dot org

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to http://www.domain.com/banner.php cuase no trouble.



[2003-07-13 21:52:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And if you can reproduce this with latest CVS, provide
us a short but _complete_ example script. Some part of some
huge app is useless to us.




[2003-07-13 19:14:56] nospam at rshell dot org

Description:

when someone access an old forum page (modify old phpbb version), we
get segmentation fault in apache error log and the user get a blank
page. The funny thing is that when I try with --enable-debug the forum
loads.

php compiled with:
--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp
--with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr
--with-xpm-dir=/usr/X11R6 --with-mcrypt --with-mysql=/usr/local/mysql
--with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf
--with-gettext --with-mhash --with-imap --with-kerberos
--enable-inline-optimization --with-zlib-dir --with-openssl --with-pear
--enable-sockets --enable-track-vars --enable-magic-quotes --with-curl


here is the backtrace (no debug info, see above)

Program received signal SIGSEGV, Segmentation fault.
0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
#1  0x2c84ed24 in free () from /lib/i686/libc.so.6
#2  0x2cbd22dc in _efree (ptr=0x88a1814)
at /home/rcs/php-4.3.2/Zend/zend_alloc.c:265
#3  0x2cbe99c2 in zend_restore_ini_entry_cb (ini_entry=0x831f7d8,
stage=8)
at /home/rcs/php-4.3.2/Zend/zend_ini.c:53
#4  0x2cbe55bb in zend_hash_apply_with_argument (ht=0x82bd798,
apply_func=0x2cbe997c zend_restore_ini_entry_cb, argument=0x8)
at /home/rcs/php-4.3.2/Zend/zend_hash.c:707
#5  0x2cbe9aa0 in zend_ini_deactivate ()
at /home/rcs/php-4.3.2/Zend/zend_ini.c:87
#6  0x2cbe0bb0 in zend_deactivate () at
/home/rcs/php-4.3.2/Zend/zend.c:656
#7  0x2cbb8bff in php_request_shutdown (dummy=0x0)
at /home/rcs/php-4.3.2/main/main.c:985
#8  0x2cbfabb5 in apache_php_module_main (r=0x82258cc,
display_source_mode=0)
#9  0x2cbfb732 in send_php (r=0x82258cc, display_source_mode=0,
filename=0x0)
at /home/rcs/php-4.3.2/sapi/apache/mod_php4.c:617
#10 0x2cbfb786 in send_parsed_php (r=0x82258cc)
at /home/rcs/php-4.3.2/sapi/apache/mod_php4.c:632
#11 0x080546d3 in ap_invoke_handler ()
#12 0x08069b57 in process_request_internal ()
#13 0x08069f8f in ap_internal_redirect ()
#14 0x2c954dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#15 0x080546d3 in ap_invoke_handler ()
#16 0x08069b57 in process_request_internal ()
#17 0x08069bb8 in ap_process_request ()

strace output:

read(9, 

#24639 [Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: linux
 PHP Version:  php4-stable-latest
 New Comment:

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6


Previous Comments:


[2003-07-14 05:33:56] nospam at rshell dot org

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 04:52:50] nospam at rshell dot org

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to http://www.domain.com/banner.php cuase no trouble.



[2003-07-13 21:52:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And if you can reproduce this with latest CVS, provide
us a short but _complete_ example script. Some part of some
huge app is useless to us.




[2003-07-13 19:14:56] nospam at rshell dot org

Description:

when someone access an old forum page (modify old phpbb version), we
get segmentation fault in apache error log and the user get a blank
page. The funny thing is that when I try with --enable-debug the forum
loads.

php compiled with:
--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp
--with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr
--with-xpm-dir=/usr/X11R6 --with-mcrypt --with-mysql=/usr/local/mysql
--with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf
--with-gettext --with-mhash --with-imap --with-kerberos
--enable-inline-optimization --with-zlib-dir --with-openssl --with-pear
--enable-sockets --enable-track-vars --enable-magic-quotes --with-curl


here is the backtrace (no debug info, see above)

Program received signal SIGSEGV, Segmentation fault.
0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x2c84ef76 in chunk_free () from /lib/i686/libc.so.6
#1  0x2c84ed24 in free () from /lib/i686/libc.so.6
#2  0x2cbd22dc in _efree (ptr=0x88a1814)
at /home/rcs/php-4.3.2/Zend/zend_alloc.c:265

#21973 [Asn]: 'configure' script can't find libpng.(a|so), openldap, libjava...

2003-07-14 Thread j-devenish at users dot sourceforge dot net
 ID:   21973
 User updated by:  j-devenish at users dot sourceforge dot net
 Reported By:  j-devenish at users dot sourceforge dot net
 Status:   Assigned
 Bug Type: *Configuration Issues
 Operating System: Solaris 8
 PHP Version:  4.3.3RC2-dev
 Assigned To:  sniper
 New Comment:

 I'll look into adding the macro to make the configure
 be a bit friendlier.

Thank you for looking into this and suggesting something that would
let
users to work around the brain-dead ./configure design. It will be
helpful if the problem and its solution are obvious to people (e.g. if
it is possible to generate good error messages).

At the time of my original submission, PHP was just using a stupid
library detection method. This was with regard to PNG and JPEG support
-- which almost all other software (maybe not xpdf -- I can't recall)
seems to be able to find by itself. Presumably this is because such
software uses the linker to carry out the tests. Perhaps PHP has some
new requirement that prevents it from carrying out a conventional
test?

It would have made more sense if PHP only fell back to its brute-force
file matching if a linker test failed. In fact, I think my solution to
PHP's behaviour was to delete out a few 'exit' statements -- no actual
practical problem existed. I think that it got worse with 4.3.2
because
the faulty configuration motif occurred multiple times within
./configure.

 Sparc64:

 */lib/sparcv9/

PHP seems to be in an exclusive club of software that requires this
extensive hand holding.

Problems that are not solved by this workaround:
 - PHP needs to be taught about every different distro,
 - PHP needs to be told about each different site.

For example, Solaris on UltraSPARC supports multiple ABIs (and
presumably Mac OS X and Linux now do, too). A particular *site* may
choose to compile PHP for a 32-bit OR a 64-bit ABI (or both, though
that
is only likely to occur when there are site-specific constraints that
require it). Thus PHP can't be shipped with this prior knowledge -- it
needs to be told on a site-by-site basis. In my scope of activities,
the
only other software requiring this much ABI knowledge is that which
uses
assembly code (e.g. OpenSSL).


Previous Comments:


[2003-07-12 23:12:51] [EMAIL PROTECTED]

We can add a new macro to the configure, which is used 
always for the direct search of a library files. Now the list of common
paths are:

/usr/local/lib /usr/lib

With 64bit linux distros:

/usr/lib/lib64/

(not sure if if e.g. /usr/local/lib64 can exist too?)

Sparc64:

*/lib/sparcv9/

I'll look into adding the macro to make the configure
be a bit friendlier. :)




[2003-01-31 05:28:14] [EMAIL PROTECTED]

If you want support your environment we would have to change all
configure files. We would have to change all
lines of the form .../lib/... with ../$LIB_DIR/... and
add some configure magic to determine what $LIB_DIR should be (in your
case it would be sparcv9).



[2003-01-31 03:34:09] j-devenish at users dot sourceforge dot net

In response to (1):

This makes no difference. I'm not sure if we're on the same
planet. I'm not quite sure what the patch was meant to
achieve (and thus I don't understand what I was supposed
to do to take advantage of it once configure was
regenerated). I think the loop that fails to find libpng
is indeed the one you've provided the patch for, so you
and I are possibly within the same universe.

In response to (2):

 Since you obviated a system immanent feature...

Hey, I'm really confused now. I'm not at all sure what
nuance you're implying with those words. I really
don't understand why you said it at all. Can I try
saying this to you:

/usr/local/include/libpng/png.h (for both arch)
/usr/local/include/libpng/pngconf.h (for both arch)
/usr/local/lib/libpng12.so (32-bit)
/usr/local/lib/sparcv9/libpng12.so (64-bit)

PHP needs to use the files in /usr/local/include/libpng
and /usr/local/lib/sparcv9. The library path is already
known by the compiler, linker, and loader.



[2003-01-30 18:42:42] j-devenish at users dot sourceforge dot net

./configure from the 4.3.0 release contains constructs like:

for i in /usr /usr/local $PHP_PNG_DIR; do
   test -f $i/lib/libpng.$SHLIB_SUFFIX_NAME -o -f \
  $i/lib/libpng.a  GD_PNG_DIR=$i
done

The 'lib/libpng.' bit is hard-coded. But my libpng is at
/usr/local/lib/sparcv9/libpng.so

The end of configure's output is:

checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... yes
checking whether to enable truetype string function in GD... yes
checking for fabsf... no

#24592 [Fbk-Opn]: exit signal Segmentation fault (11)

2003-07-14 Thread jhuston at cs dot umn dot edu
 ID:   24592
 User updated by:  jhuston at cs dot umn dot edu
 Reported By:  jhuston at cs dot umn dot edu
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Sparc Solaris 9
 PHP Version:  4.3.3RC2-dev
 New Comment:

register_globals is off.


Previous Comments:


[2003-07-13 22:49:15] [EMAIL PROTECTED]

Do you have register_globals ON or OFF ?




[2003-07-10 14:23:19] jhuston at cs dot umn dot edu

I downloaded the CVS snapshot and compiled it with same configure
options.  It is still getting the same bus error as described earlier. 
I ran a test on test.php (same code as i posted earlier).

[EMAIL PROTECTED] gradebook]% php -v
PHP 4.3.3RC2-dev (cli) (built: Jul 10 2003 13:24:53)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] gradebook]% php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.
Bus error

Then I ran it on gdb again and it still produced same error message as
mentioned earlier.

[EMAIL PROTECTED] gradebook]% gdb php
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 sparc-sun-solaris2.8...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.

Program received signal SIGSEGV, Segmentation fault.
0x135170 in _efree (ptr=0x2c42a0)
at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
259 /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c: No such
file or directory.
(gdb) where
#0  0x135170 in _efree (ptr=0x2c42a0)
at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
#1  0x94e98 in migrate_global (ht=0x332228, pos=0x1)
at /home/src/php4-STABLE-200307101730/ext/session/session.c:640
#2  0x94fb8 in php_session_save_current_state ()
at /home/src/php4-STABLE-200307101730/ext/session/session.c:670
#3  0x97b24 in php_session_flush ()
at /home/src/php4-STABLE-200307101730/ext/session/session.c:1593
#4  0x97b54 in zm_deactivate_session (type=0, module_number=4)
at /home/src/php4-STABLE-200307101730/ext/session/session.c:1607
#5  0x148d7c in module_registry_cleanup (module=0x2f0ba8)
at /home/src/php4-STABLE-200307101730/Zend/zend_API.c:1167
#6  0x14b044 in zend_hash_apply (ht=0x2c57a4, 
apply_func=0x148d40 module_registry_cleanup)
at /home/src/php4-STABLE-200307101730/Zend/zend_hash.c:688
#7  0x145b28 in zend_deactivate_modules ()
at /home/src/php4-STABLE-200307101730/Zend/zend.c:651
#8  0x11600c in php_request_shutdown (dummy=0x0)
at /home/src/php4-STABLE-200307101730/main/main.c:981
#9  0x1616e8 in main (argc=2, argv=0xffbff674)
at /home/src/php4-STABLE-200307101730/sapi/cli/php_cli.c:874



[2003-07-10 12:13:08] jhuston at cs dot umn dot edu

During the course of writing a shorter script, I discovered a possible
cause of bus error or segmentation fault.  When assigning $_SESSION
variable to an undefined variable, it puked.  I would like to add that
I was able to reproduce the same behavior under 4.3.2 source tree on
Solaris.  It worked fine under 4.2.3 until I upgraded it to 4.3.2 and
the problem surfaced.

Here's the short and sweet script that caused bus error:

---
? 

session_name(unclesam);

#24644 [NEW]: Fata error because of private method

2003-07-14 Thread Bertrand dot Willm at laposte dot net
From: Bertrand dot Willm at laposte dot net
Operating system: Windows XP
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: XML related
Bug description:  Fata error because of private method

Description:

I make a class to parse XML.
The element handler functions are private methods.
I tried to call a private method from the StartElement handler.
There is a fatal error.
This should not be the case as all these functions are declared in the
same class.
In a class, private function should have access to the other private
functions of the class.


Reproduce code:
---
class CBaseClass {
   var $name;
   function Parse() {
  $parser = xml_parser_create();
  xml_set_object($parser, $this);
  xml_set_element_handler($parser, 'StartElement', 'EndElement');
  xml_parse($parser, 'xmlnode//xml', true);
  xml_parser_free($parser);
   }
   
   private function StartElement() {
  $this-PrivateFunction();
   }

   private function EndElement() {
   }

   private function PrivateFunction() {
   }
}

class CExtClass extends CBaseClass {
}

$ExtObject = new CExtClass();
$ExtObject-Parse();


Expected result:

no error

Actual result:
--
Fatal error: Call to private method cbaseclass::PrivateFunction() from
context 'cextclass' in c:\sitesweb\www\test.php5 on line 14

-- 
Edit bug report at http://bugs.php.net/?id=24644edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24644r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24644r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24644r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24644r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24644r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24644r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24644r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24644r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24644r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24644r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24644r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24644r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24644r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24644r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24644r=gnused



#24645 [NEW]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
From: nek at capsule dot org
Operating system: Linux
PHP version:  4.3.2
PHP Bug Type: Regexps related
Bug description:  ereg_replace fails to strtolower replaced string

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the matching
string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A

-- 
Edit bug report at http://bugs.php.net/?id=24645edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24645r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24645r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24645r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24645r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24645r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24645r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24645r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24645r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24645r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24645r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24645r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24645r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24645r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24645r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24645r=gnused



#24645 [Opn]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
 ID:   24645
 User updated by:  nek at capsule dot org
 Reported By:  nek at capsule dot org
 Status:   Open
 Bug Type: Regexps related
 Operating System: Linux
-PHP Version:  4.3.2
+PHP Version:  4.3.1
 New Comment:

sorry, it's php 4.3.1 and not 4.3.2


Previous Comments:


[2003-07-14 08:37:18] nek at capsule dot org

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered
equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the
matching string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A





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



#19683 [Fbk-NoF]: I can't configure php+Solaris 2.6+iplanet ldap.

2003-07-14 Thread thetaphi
 ID:   19683
 Updated by:   [EMAIL PROTECTED]
 Reported By:  piya at oga dot co dot th
-Status:   Feedback
+Status:   No Feedback
 Bug Type: iPlanet related
 Operating System: Solaris 2.6
 PHP Version:  4.2.3
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.




Previous Comments:


[2003-07-10 21:09:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2002-11-22 05:10:34] piya at oga dot co dot th

Server on my server are contains :

Sun[tm] ONE Web Server 6.0 Service Pack 4 (WEB SERVER)
http://wwws.sun.com/software/download/download/5289.html

Sun[tm] ONE Messaging Server 5.2 (MAIL SERVER)
http://wwws.sun.com/software/download/download/5179.html

Sun[tm] ONE Directory Server 4.6 (LDAP SERVER)



[2002-11-08 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2002-10-20 23:27:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2002-10-03 18:34:38] [EMAIL PROTECTED]

Exactly what version of iplanet is this? And where can we find some
information about it? (quick google search got me to www.iplanet.com
where it was said that it's now Sun's thing..and again renamed...)

http://wwws.sun.com/software/download/app_dev.html#sdks

Is any of those mentioned in the bottom of the list something you have
installed?




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

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



#24645 [Com]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread b_ulrich at t-online dot de
 ID:   24645
 Comment by:   b_ulrich at t-online dot de
 Reported By:  nek at capsule dot org
 Status:   Open
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.


Previous Comments:


[2003-07-14 08:39:01] nek at capsule dot org

sorry, it's php 4.3.1 and not 4.3.2



[2003-07-14 08:37:18] nek at capsule dot org

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered
equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the
matching string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A





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



#24645 [Opn]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
 ID:   24645
 User updated by:  nek at capsule dot org
 Reported By:  nek at capsule dot org
 Status:   Open
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?


Previous Comments:


[2003-07-14 09:09:01] b_ulrich at t-online dot de

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.



[2003-07-14 08:39:01] nek at capsule dot org

sorry, it's php 4.3.1 and not 4.3.2



[2003-07-14 08:37:18] nek at capsule dot org

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered
equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the
matching string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A





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



#24645 [Opn-Bgs]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread jay
 ID:   24645
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nek at capsule dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

That's correct, so this is bogus. Try using 
ereg()/preg_match() with the optional registers used in 
the third argument to get the results you're looking for. 
 
J 


Previous Comments:


[2003-07-14 09:19:55] nek at capsule dot org

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?



[2003-07-14 09:09:01] b_ulrich at t-online dot de

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.



[2003-07-14 08:39:01] nek at capsule dot org

sorry, it's php 4.3.1 and not 4.3.2



[2003-07-14 08:37:18] nek at capsule dot org

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered
equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the
matching string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A





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



#24645 [Bgs]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
 ID:   24645
 User updated by:  nek at capsule dot org
 Reported By:  nek at capsule dot org
 Status:   Bogus
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

you mean something like :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++)

print $newsaff;
?


Previous Comments:


[2003-07-14 09:21:06] [EMAIL PROTECTED]

That's correct, so this is bogus. Try using 
ereg()/preg_match() with the optional registers used in 
the third argument to get the results you're looking for. 
 
J 



[2003-07-14 09:19:55] nek at capsule dot org

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?



[2003-07-14 09:09:01] b_ulrich at t-online dot de

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.



[2003-07-14 08:39:01] nek at capsule dot org

sorry, it's php 4.3.1 and not 4.3.2



[2003-07-14 08:37:18] nek at capsule dot org

Description:

Hi,

i'm trying to replace a portion of string by its strtolowered
equivalent

see reproduce code and results below : it should give
href=javascript:comment() but only HREF is lowered, not the
matching string \1



Reproduce code:
---
?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg_replace(HREF=\([^\]+)\,strtolower(HREF=\\\1\),$newsaff);

print $newsaff;
?

Expected result:

A href=javascript:comment()THIS IS A TEST LINK/A

Actual result:
--
A href=JAVASCRIPT:COMMENT()THIS IS A TEST LINK/A





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



#24646 [NEW]: foreach doesnt work well inside recursive functions

2003-07-14 Thread sagi at boom dot org dot il
From: sagi at boom dot org dot il
Operating system: Linux
PHP version:  4CVS-2003-07-14 (stable)
PHP Bug Type: Arrays related
Bug description:  foreach doesnt work well inside recursive functions

Description:

I'm trying to write a recursive function that uses foreach() on the same
array couple of times simultaneously.

However it looks like when going back to the original function foreach
doesn't continue where it stopped, but just continues running the code
after the foreach.

I tried the same with for() and it works right. in the attached code there
are the 2 lines that you can comment out to see how it works with for()
(comment foreach if you do).



Reproduce code:
---
?php
$cats = array(
1 = array(0, 'parent 1'),
2 = array(0, 'parent 2'),
3 = array(0, 'parent 3'),
4 = array(1, 'sub1 of parent 1'),
5 = array(1, 'sub2 of parent 1'),
6 = array(2, 'sub1 of parent 2'),
7 = array(2, 'sub2 of parent 2'),
8 = array(1, 'sub3 of parent 1'),
9 = array(5, 'sub1 of parent 5'),
10 = array(2, 'sub3 of parent 2')
);

function showit($parent, $level)
{
global $cats;

foreach ($cats as $id = $category) {
//  for ($id=1; $id = count($cats); $id++) {
//  $category = $cats[$id];
if ($category[0] == $parent) {
print str_repeat(\t,$level).'('.$id.')
'.$category[1].\n;

showit($id, $level+1);
}
}

}

showit(0, 0);

?


Expected result:

(1) parent 1
(4) sub1 of parent 1
(5) sub2 of parent 1
(9) sub1 of parent 5
(8) sub3 of parent 1
(2) parent 2
(6) sub1 of parent 2
(7) sub2 of parent 2
(10) sub3 of parent 2
(3) parent 3


Actual result:
--
(1) parent 1
(4) sub1 of parent 1


-- 
Edit bug report at http://bugs.php.net/?id=24646edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24646r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24646r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24646r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24646r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24646r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24646r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24646r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24646r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24646r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24646r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24646r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24646r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24646r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24646r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24646r=gnused



#24645 [Bgs]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
 ID:   24645
 User updated by:  nek at capsule dot org
 Reported By:  nek at capsule dot org
 Status:   Bogus
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

doh... tab then return = submit form.. sorry

i said :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++) {
 $newsaff =
str_replace($newreplace[$i],strtolower($newreplace[$i]),$newsaff);
 }

print $newsaff;
?

maybe there's a simplier solution, that's coded from scratch ;)

but yes indeed, that's complicated and a non bogus ereg_replace would
be from great help :)

thanks


Previous Comments:


[2003-07-14 09:39:50] nek at capsule dot org

you mean something like :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++)

print $newsaff;
?



[2003-07-14 09:21:06] [EMAIL PROTECTED]

That's correct, so this is bogus. Try using 
ereg()/preg_match() with the optional registers used in 
the third argument to get the results you're looking for. 
 
J 



[2003-07-14 09:19:55] nek at capsule dot org

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?



[2003-07-14 09:09:01] b_ulrich at t-online dot de

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.



[2003-07-14 08:39:01] nek at capsule dot org

sorry, it's php 4.3.1 and not 4.3.2



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

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



#23685 [Opn]: fake values returned when OID value is an empty string

2003-07-14 Thread s dot zagrodzki at net dot icm dot edu dot pl
 ID:   23685
 User updated by:  s dot zagrodzki at net dot icm dot edu dot pl
 Reported By:  s dot zagrodzki at net dot icm dot edu dot pl
 Status:   Open
 Bug Type: SNMP related
 Operating System: Linux 2.2
 PHP Version:  4.3.2RC4-dev
 New Comment:

this issue was also mentioned by javierb at gmx dot net in user
contributed notes to snmpget() function manual:
http://www.php.net/manual/en/function.snmpget.php


Previous Comments:


[2003-07-14 03:38:00] s dot zagrodzki at net dot icm dot edu dot pl

I tried using snmp module from 20030714 snapshot - didn't help.



[2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl

this is a part of tcpdump of snmpwalk query:
...
GetResponse(50)  .1.3.6.1.2.1.31.1.1.1.18.3=lacze do Obs. Astr.
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.3
GetResponse(31)  .1.3.6.1.2.1.31.1.1.1.18.4=
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.4
GetResponse(59)  .1.3.6.1.2.1.31.1.1.1.18.5=: lacze do Wydz.
Zarzadzania
...
as you can see, snmp agent returns empty value, response length is also
correct. And snmpwalk utility also gives
correct results.



[2003-07-13 14:49:20] [EMAIL PROTECTED]

I tried this with other variables (I do not have an 
SNMP agent implementing the ifXTable) and cannot 
reproduce it.

Therefore I am thinking that it maybe the SNMP agent
which returns these values and as a result they
show up in PHP. Could you confirm that this is not a
problem with the SNMP agent/router.



[2003-07-13 00:11:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Some changes have been made lately.




[2003-05-19 04:30:19] s dot zagrodzki at net dot icm dot edu dot pl

I've copied ext/snmp directory from this snapshot into my php source
tree (when I tried to compile the snap as it is, it complained about
too old db3 library). It didn't help.



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

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



#24645 [Bgs]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread jay
 ID:   24645
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nek at capsule dot org
 Status:   Bogus
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

ereg_replace() is working exactly as expected. The 
inner-most functions are processed first, so strtolower() 
gets processed before ereg_replace(). Therefore, 
HREF=\\\1\ is being sent through strtolower(), not A 
HREF=\JAVASCRIPT:COMMENT()\. strtolower() has no idea 
what \1 means other than \1. This is totally expected 
behaviour.  
 
Try doing something writing like foo(bar($s)) and write 
your own functions for foo() and bar(). bar() is always 
performed first. Same thing in this case.  
 
The behaviour you're proposing is just not the expected 
bevariour, hence the bogusness. 
 
J 


Previous Comments:


[2003-07-14 09:43:11] nek at capsule dot org

doh... tab then return = submit form.. sorry

i said :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++) {
 $newsaff =
str_replace($newreplace[$i],strtolower($newreplace[$i]),$newsaff);
 }

print $newsaff;
?

maybe there's a simplier solution, that's coded from scratch ;)

but yes indeed, that's complicated and a non bogus ereg_replace would
be from great help :)

thanks



[2003-07-14 09:39:50] nek at capsule dot org

you mean something like :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++)

print $newsaff;
?



[2003-07-14 09:21:06] [EMAIL PROTECTED]

That's correct, so this is bogus. Try using 
ereg()/preg_match() with the optional registers used in 
the third argument to get the results you're looking for. 
 
J 



[2003-07-14 09:19:55] nek at capsule dot org

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?



[2003-07-14 09:09:01] b_ulrich at t-online dot de

Using strtolower(HREF=\\\1\) as parameter is like using
href=\\\1\ directly.
First the strtolower is processed and then that result is used as
parameter.

You have to change your search/replace pattern to get what you want.

The function works correct.



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

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



#24639 [Opn-Fbk]: segmentation fault with old code

2003-07-14 Thread sniper
 ID:   24639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nospam at rshell dot org
-Status:   Open
+Status:   Feedback
-Bug Type: Reproducible crash
+Bug Type: Apache related
 Operating System: linux
-PHP Version:  php4-stable-latest
+PHP Version:  4.3.3RC2-dev
 New Comment:

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?



Previous Comments:


[2003-07-14 05:42:08] nospam at rshell dot org

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 05:33:56] nospam at rshell dot org

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 04:52:50] nospam at rshell dot org

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to http://www.domain.com/banner.php cuase no trouble.



[2003-07-13 21:52:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And if you can reproduce this with latest CVS, provide
us a short but _complete_ example script. Some part of some
huge app is useless to us.




[2003-07-13 19:14:56] nospam at rshell dot org

Description:

when someone access an old forum page (modify old phpbb version), we
get segmentation fault in apache error log and the user get a blank
page. The funny thing is that when I try with --enable-debug the forum
loads.

php compiled with:
--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-ftp
--with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr
--with-xpm-dir=/usr/X11R6 --with-mcrypt --with-mysql=/usr/local/mysql
--with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf
--with-gettext --with-mhash --with-imap --with-kerberos
--enable-inline-optimization --with-zlib-dir --with-openssl --with-pear
--enable-sockets --enable-track-vars --enable-magic-quotes --with-curl


here is the 

#24474 [Sus-WFx]: domxml and threading issues

2003-07-14 Thread rrichards
 ID:   24474
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grest at interia dot pl
-Status:   Suspended
+Status:   Wont fix
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

This is not an issue with the new xml extensions in PHP5 where domxml
is replaced by the dom and xsl extensions


Previous Comments:


[2003-07-11 06:14:04] [EMAIL PROTECTED]

Changed summary as this is just a symptom of threading issues.

When running in a multi-threaded environment AND libxml is using
threads, the extensions behavior can not be predicted when using
functions involving libxml globals. This includes functions not working
as expected, inconsistent function behavior and possible crashes.

Workaround: Run under CGI mode or use libxml without thread support.

Suspending this for now



[2003-07-10 06:09:04] [EMAIL PROTECTED]

can you provide the output from phpinfo either as a link to it or via
email. Make sure it is run under apache and run from the same directory
as your example is.



[2003-07-09 18:19:52] grest at interia dot pl

When I use in XSL file(filmy.xsl) just  
xsl:variable name=out select=document('today.xml')/
it works fine. 
I needn`t to insert a full path('d:\www\grugar\today.xml')

In XML it doesn`t work.
I use:
!DOCTYPE LIST SYSTEM filmy.dtd
or 
!DOCTYPE LIST SYSTEM d:/www/grugar/filmy.dtd

and always when I use get_element_by_id, I get a NULL!
I`m sure that XML is not validated with filmy.dtd.
I tested XML with two identical id (without error while loading!) or
insert a mistakes into filmy.dtd and the domxml_open_file($fileName,
DOMXML_LOAD_VALIDATING)does NOT return any errors or warnings.
Conclusion: filmy.dtd is not loaded.
Earlier, in similar case domxml_open_file returns error.



[2003-07-09 14:55:10] [EMAIL PROTECTED]

Works fine using syntax: d:/www/grugar/filmy.dtd or just filmy.dtd.
 Looks like some pathing got fixed with apache 2.

Unless you give full path for the save location, your output file will
end up in Apache root directory.

Are you sure that you are getting NULL back from get_element_by_id or
is the problem that you just dont get your output file?



[2003-07-09 14:07:46] grest at interia dot pl

Little mistake in line 5. Once again:
I try various path in filmy.xml to dtd file, like:
!DOCTYPE LIST SYSTEM D:\WWW\grugar\filmy.dtd
!DOCTYPE LIST SYSTEM D:/WWW/grugar/filmy.dtd
!DOCTYPE LIST SYSTEM \\Serwer\WWW\grugar\filmy.dtd
!DOCTYPE LIST SYSTEM d:/www/grugar/filmy.dtd
and none of them works !!
How should this path look?!
For example the path in XSL file (filmy.xsl) works:
filmy.xsl
...
xsl:variable name=out
select=document('d:/www/grugar/today.xml')/
...



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

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



#24647 [NEW]: Mysql Extension WON'T load

2003-07-14 Thread alantan at tagnetwork dot net
From: alantan at tagnetwork dot net
Operating system: Windows 2000 Server SP4
PHP version:  5CVS-2003-07-14 (dev)
PHP Bug Type: MySQL related
Bug description:  Mysql Extension WON'T load

Description:

Now after reading all those people saying that you needed to load a MySQL
extension using a CVS build I set out to do that, and upon loading the
extension php_MySQL.dll immediately php complains with the following:

php.exe - Entry Point Not Found

The procedure entry point mysql_create_db could not be located in the
dynamic link library LIBMYSQL.dll.

Reproduce code:
---
This occured during php startup, no matter which execuable I use.


Expected result:

mysql_connect should work instead of showing undefined function

Actual result:
--
Shows mysql functions as undefined functions and cannot load mysql
extension

-- 
Edit bug report at http://bugs.php.net/?id=24647edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24647r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24647r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24647r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24647r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24647r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24647r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24647r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24647r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24647r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24647r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24647r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24647r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24647r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24647r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24647r=gnused



#24647 [Opn-Bgs]: Mysql Extension WON'T load

2003-07-14 Thread sniper
 ID:   24647
 Updated by:   [EMAIL PROTECTED]
 Reported By:  alantan at tagnetwork dot net
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: Windows 2000 Server SP4
 PHP Version:  5CVS-2003-07-14 (dev)
 New Comment:

Copy that libmySQL.dll from dlls/ folder in the zip package to correct
place and it will work.



Previous Comments:


[2003-07-14 11:02:43] alantan at tagnetwork dot net

Description:

Now after reading all those people saying that you needed to load a
MySQL extension using a CVS build I set out to do that, and upon
loading the extension php_MySQL.dll immediately php complains with the
following:

php.exe - Entry Point Not Found

The procedure entry point mysql_create_db could not be located in the
dynamic link library LIBMYSQL.dll.

Reproduce code:
---
This occured during php startup, no matter which execuable I use.


Expected result:

mysql_connect should work instead of showing undefined function

Actual result:
--
Shows mysql functions as undefined functions and cannot load mysql
extension





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



#24639 [Fbk-Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.


Previous Comments:


[2003-07-14 10:33:38] [EMAIL PROTECTED]

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?




[2003-07-14 05:42:08] nospam at rshell dot org

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 05:33:56] nospam at rshell dot org

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 04:52:50] nospam at rshell dot org

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to http://www.domain.com/banner.php cuase no trouble.



[2003-07-13 21:52:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  

#24645 [Bgs]: ereg_replace fails to strtolower replaced string

2003-07-14 Thread nek at capsule dot org
 ID:   24645
 User updated by:  nek at capsule dot org
 Reported By:  nek at capsule dot org
 Status:   Bogus
 Bug Type: Regexps related
 Operating System: Linux
 PHP Version:  4.3.1
 New Comment:

oups,

sorry, i realize now that \1 will be replaced by ereg_replace, but is
not yet replaced inside the function

show get some sleep or vitamin i guess


Previous Comments:


[2003-07-14 10:10:15] [EMAIL PROTECTED]

ereg_replace() is working exactly as expected. The 
inner-most functions are processed first, so strtolower() 
gets processed before ereg_replace(). Therefore, 
HREF=\\\1\ is being sent through strtolower(), not A 
HREF=\JAVASCRIPT:COMMENT()\. strtolower() has no idea 
what \1 means other than \1. This is totally expected 
behaviour.  
 
Try doing something writing like foo(bar($s)) and write 
your own functions for foo() and bar(). bar() is always 
performed first. Same thing in this case.  
 
The behaviour you're proposing is just not the expected 
bevariour, hence the bogusness. 
 
J 



[2003-07-14 09:43:11] nek at capsule dot org

doh... tab then return = submit form.. sorry

i said :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++) {
 $newsaff =
str_replace($newreplace[$i],strtolower($newreplace[$i]),$newsaff);
 }

print $newsaff;
?

maybe there's a simplier solution, that's coded from scratch ;)

but yes indeed, that's complicated and a non bogus ereg_replace would
be from great help :)

thanks



[2003-07-14 09:39:50] nek at capsule dot org

you mean something like :

?php
$newsaff = A HREF=\JAVASCRIPT:COMMENT()\THIS IS A TEST LINK/A;

$newsaff =
ereg(HREF=\([^\]+)\,$newsaff,$newsreplace);

for ($i=1;$isizeof($newreplace);$i++)

print $newsaff;
?



[2003-07-14 09:21:06] [EMAIL PROTECTED]

That's correct, so this is bogus. Try using 
ereg()/preg_match() with the optional registers used in 
the third argument to get the results you're looking for. 
 
J 



[2003-07-14 09:19:55] nek at capsule dot org

well,

maybe the matching string should be considered as a normal one, so we
can use some functions on it.

this would render ereg_replace function even more powerfull, isn't it ?



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

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



#24612 [Opn-Fbk]: getimagesize('test.jpg', $info) fails (only when 2nd parameter is used)

2003-07-14 Thread sniper
 ID:   24612
 Updated by:   [EMAIL PROTECTED]
-Summary:  Getimagesize fails on IM 5.4.6 created jpegs
 Reported By:  pekka at studio-on-the dot net
-Status:   Open
+Status:   Feedback
 Bug Type: GetImageSize related
 Operating System: Windows XP Professional SP1
 PHP Version:  4.3.2
 New Comment:

Did you try with the snapshot?



Previous Comments:


[2003-07-14 04:02:12] pekka at studio-on-the dot net

The url on demo is url for obvious reasons. On my localhost with local
files I get bitten by this bug. One thing to note is that in Windows
when you do NOT add second parameter to getimagesize then it always
works. But I need that second parameter too, so...
Must be something Bill has messed up.
Thanks anyway.



[2003-07-13 22:00:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Works just fine. Not even 10'000 tries produce any false result. It's
propably just some network thing, as you're accessing the image
remotely. Try it locally. (drop the url)





[2003-07-11 15:51:58] pekka at studio-on-the dot net

it should be of course 

Actual result:
--
e.g. (in Windows):
try 433: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|



[2003-07-11 15:33:22] pekka at studio-on-the dot net

Description:

Code snippet http://www.exhibitserver.com/getimagesizetest.php works
perfectly on Linux/apache (PHP 4.2.2), but in Windows XP/Apache/PHP
4.3.2 even 1000 times is not always enough to get some data back from
the function. Mostly it needs between 0 and 200 retries before it gets
some data into array.

I have found that this happens and has something to do ONLY with
ImageMagick Mogrify created JPGS (Version: @(#)ImageMagick 5.4.6
06/01/02 Q:8). See aforementioned demo for test image url.



Reproduce code:
---
http://www.exhibitserver.com/getimagesizetest.php

Expected result:

try 0: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|

Actual result:
--
nothing, 

or

try 0: | 0:110 | 1: 73 | 2: 2 | 3: width=110 height=73|





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



#24594 [Ver]: IMG_COLOR_TILED and imagefill not working with all images

2003-07-14 Thread jakmania at libertysurf dot fr
 ID:   24594
 User updated by:  jakmania at libertysurf dot fr
 Reported By:  jakmania at libertysurf dot fr
 Status:   Verified
 Bug Type: GD related
 Operating System: All
 PHP Version:  4.3.3RC2-dev
 New Comment:

Hi Pierre,
Here are two images I've got the bug with:

http://www.bantu.ovh.org/images/basic.png
http://www.bantu.ovh.org/images/tile.png
sometimes my host is down :(, so try later in case

And the code is:

?php
header (Content-type: image/png);
$im = imagecreatefrompng(basic.png); /* 150 x 150 */
$tily = imagecreatefrompng(tile.png); /* 10 x 10 */
imagesettile($im, $tily);
imagefill($im,100,75,IMG_COLOR_TILED);
imagepng($im);
imagedestroy($im);
?

I just get a dotted line (y=75)
Waiting for better news. Thanks

Jack


Previous Comments:


[2003-07-13 15:22:19] [EMAIL PROTECTED]

I cannot reproduce it here, using the RC or the head. Do you have a
link with the 2 used images?

thanks

pierre



[2003-07-12 02:35:33] jakmania at libertysurf dot fr

It's a GD bug, not a PHP one, 'cause I've got the same wrong result in
perl :(((



[2003-07-10 16:07:37] jakmania at libertysurf dot fr

Well, It should work with imagefill() just like it does with other
functions (imagefilledrectangle...) I mean, just filling  with the
tile, not only drawing a 'kind' of line or just doing nothing.
Someone should check GD. If this problem doesn't occur with the C
version itself, or with a Perl interface, then it's a PHP bug,
otherwise it's a GD bug.



[2003-07-10 12:21:31] [EMAIL PROTECTED]

Here's my test script:

?php
header (Content-type: image/png);
$im = imagecreatefrompng(basic.png); /* 200 x 200 */
$tile = imagecreatefrompng(tile.png); /* 10 x 10 */
imagesettile($im, $tile);
// imagefilledpolygon ($im, array(0,0,200,0,200,200,0,200), 4,
IMG_COLOR_TILED); // Works
// imagefilledrectangle ($im, 10,10,190,190, IMG_COLOR_TILED); //
Works
imagefill($im,10,10,IMG_COLOR_TILED); // Does not work?
imagepng($im);
?

But when I used imagefill(), it only draw one line in the top with the
tile and the tile image was somewhat scaled down..(I'm not sure if it's
supposed to work like this? :)

# file tile.png 
tile.png: PNG image data, 10 x 10, 8-bit/color RGB, non-interlaced
# file basic.png 
basic.png: PNG image data, 200 x 200, 8-bit/color RGB, non-interlaced





[2003-07-10 11:59:16] jakmania at libertysurf dot fr

Description:

If you imagesettile on an image created through imagecreate then
use imagefill and IMG_COLOR_TILED as color as explained in the
documentation, it's fine. But if the basic image is not created on the
fly, eg. it is imported through imagecreatefromXXX then your tile
image won't be apply on that image :-)
NB: any version of GD, even the bundled one.
See an example of NOT working code below.
Thanx

Reproduce code:
---
?php
header (Content-type: image/png);
$im = imagecreatefrompng(basic.png); /* 200 x 200 */
$im = imagecreatefrompng(tile.png); /* 10 x 10 */
imagesettile($im, $tily);
imagefill($im,110,90,IMG_COLOR_TILED);
imagepng($im);
imagedestroy($im);
?

Expected result:

basic.png (a map in fact) tiled on a delimited area (a country).

Actual result:
--
Just the basic image (basic.png), not tiled at all.





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



#22566 [Opn-Fbk]: imap_mail hang the script

2003-07-14 Thread sniper
 ID:   22566
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lmstudio at 1system dot ru
-Status:   Open
+Status:   Feedback
 Bug Type: IMAP related
 Operating System: Windows 2000 Pro
 PHP Version:  4.3.3RC2-dev
 New Comment:

Please provide a short but complete example script that uses mail()
function.



Previous Comments:


[2003-07-14 05:17:25] lmstudio at 1system dot ru

In new version (4.3.3-dev) problem is still remain: mail function can't
send mail with big attachments (for example 250Kb)



[2003-07-14 05:02:34] lmstudio at 1system dot ru

I'll try to use mail function.



[2003-07-12 23:47:37] [EMAIL PROTECTED]

Does mail() work..?




[2003-03-11 20:17:20] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2003-03-06 12:54:36] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

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



#24639 [Opn-Fbk]: segmentation fault with old code

2003-07-14 Thread sniper
 ID:   24639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nospam at rshell dot org
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

If you remove all those php_admin_value settings, does it still
segfault?



Previous Comments:


[2003-07-14 11:33:00] nospam at rshell dot org

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.



[2003-07-14 10:33:38] [EMAIL PROTECTED]

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?




[2003-07-14 05:42:08] nospam at rshell dot org

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 05:33:56] nospam at rshell dot org

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 04:52:50] nospam at rshell dot org

This happen with the snap also.

tracing it down in the code, it curshs when it gets to
this line: ?php include('http://www.domain.com/banner.php')

access directly to 

#24594 [Ver-Asn]: IMG_COLOR_TILED and imagefill not working with all images

2003-07-14 Thread sniper
 ID:   24594
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jakmania at libertysurf dot fr
-Status:   Verified
+Status:   Assigned
 Bug Type: GD related
 Operating System: All
 PHP Version:  4.3.3RC2-dev
-Assigned To:  
+Assigned To:  pajoye
 New Comment:

Assigning to Pierre who already has some fix for this too.



Previous Comments:


[2003-07-14 12:27:50] jakmania at libertysurf dot fr

Hi Pierre,
Here are two images I've got the bug with:

http://www.bantu.ovh.org/images/basic.png
http://www.bantu.ovh.org/images/tile.png
sometimes my host is down :(, so try later in case

And the code is:

?php
header (Content-type: image/png);
$im = imagecreatefrompng(basic.png); /* 150 x 150 */
$tily = imagecreatefrompng(tile.png); /* 10 x 10 */
imagesettile($im, $tily);
imagefill($im,100,75,IMG_COLOR_TILED);
imagepng($im);
imagedestroy($im);
?

I just get a dotted line (y=75)
Waiting for better news. Thanks

Jack



[2003-07-13 15:22:19] [EMAIL PROTECTED]

I cannot reproduce it here, using the RC or the head. Do you have a
link with the 2 used images?

thanks

pierre



[2003-07-12 02:35:33] jakmania at libertysurf dot fr

It's a GD bug, not a PHP one, 'cause I've got the same wrong result in
perl :(((



[2003-07-10 16:07:37] jakmania at libertysurf dot fr

Well, It should work with imagefill() just like it does with other
functions (imagefilledrectangle...) I mean, just filling  with the
tile, not only drawing a 'kind' of line or just doing nothing.
Someone should check GD. If this problem doesn't occur with the C
version itself, or with a Perl interface, then it's a PHP bug,
otherwise it's a GD bug.



[2003-07-10 12:21:31] [EMAIL PROTECTED]

Here's my test script:

?php
header (Content-type: image/png);
$im = imagecreatefrompng(basic.png); /* 200 x 200 */
$tile = imagecreatefrompng(tile.png); /* 10 x 10 */
imagesettile($im, $tile);
// imagefilledpolygon ($im, array(0,0,200,0,200,200,0,200), 4,
IMG_COLOR_TILED); // Works
// imagefilledrectangle ($im, 10,10,190,190, IMG_COLOR_TILED); //
Works
imagefill($im,10,10,IMG_COLOR_TILED); // Does not work?
imagepng($im);
?

But when I used imagefill(), it only draw one line in the top with the
tile and the tile image was somewhat scaled down..(I'm not sure if it's
supposed to work like this? :)

# file tile.png 
tile.png: PNG image data, 10 x 10, 8-bit/color RGB, non-interlaced
# file basic.png 
basic.png: PNG image data, 200 x 200, 8-bit/color RGB, non-interlaced





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

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



#24639 [Fbk-Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

yes


Previous Comments:


[2003-07-14 12:32:39] [EMAIL PROTECTED]

If you remove all those php_admin_value settings, does it still
segfault?




[2003-07-14 11:33:00] nospam at rshell dot org

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.



[2003-07-14 10:33:38] [EMAIL PROTECTED]

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?




[2003-07-14 05:42:08] nospam at rshell dot org

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



[2003-07-14 05:33:56] nospam at rshell dot org

here's another backtrace:
#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2ddfd8bf in _emalloc (size=12)
at /home/rcs/php4-STABLE-200307140730/Zend/zend_alloc.c:158
#3  0x2ddecc73 in php_default_treat_data (arg=2, str=0x0,
destArray=0x0)
at /home/rcs/php4-STABLE-200307140730/main/php_variables.c:227
#4  0x2dde4e23 in php_hash_environment ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:1417
#5  0x2dde408c in php_request_startup ()
at /home/rcs/php4-STABLE-200307140730/main/main.c:935
#6  0x2de26274 in apache_php_module_main (r=0x817a1bc,
display_source_mode=0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/sapi_apache.c:33
#7  0x2de26ed6 in send_php (r=0x817a1bc, display_source_mode=0,
filename=0x0)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:620
#8  0x2de26f2a in send_parsed_php (r=0x817a1bc)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:635
#9  0x080546d3 in ap_invoke_handler ()
#10 0x08069b57 in process_request_internal ()
#11 0x08069f8f in ap_internal_redirect ()
#12 0x2db67dea in handle_dir () from
/usr/local/apache/libexec/mod_dir.so
#13 0x080546d3 in ap_invoke_handler ()
#14 0x08069b57 in process_request_internal ()
#15 0x08069bb8 in ap_process_request ()
#16 0x08060929 in child_main ()
#17 0x08060bbb in make_child ()
#18 0x08060c6c in startup_children ()
#19 0x080612e4 in standalone_main ()
#20 0x08061b63 in main ()
#21 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



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

#24639 [Opn-Fbk]: segmentation fault with old code

2003-07-14 Thread sniper
 ID:   24639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nospam at rshell dot org
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

Ok. Then provide us complete testcase scripts.



Previous Comments:


[2003-07-14 12:43:27] nospam at rshell dot org

yes



[2003-07-14 12:32:39] [EMAIL PROTECTED]

If you remove all those php_admin_value settings, does it still
segfault?




[2003-07-14 11:33:00] nospam at rshell dot org

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.



[2003-07-14 10:33:38] [EMAIL PROTECTED]

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?




[2003-07-14 05:42:08] nospam at rshell dot org

here's another. Please let me know if you need more info

#0  0x2da7535a in chunk_alloc () from /lib/i686/libc.so.6
#1  0x2da75158 in malloc () from /lib/i686/libc.so.6
#2  0x2de27175 in php_apache_value_handler_ex (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7, mode=2)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:754
#3  0x2de271f9 in php_apache_value_handler (cmd=0x58b200d0,
conf=0x858a228,
arg1=0x817a3ec error_reporting, arg2=0x817a404 7)
at /home/rcs/php4-STABLE-200307140730/sapi/apache/mod_php4.c:771
#4  0x08054f00 in invoke_cmd ()
#5  0x080558c6 in ap_handle_command ()
#6  0x08055959 in ap_srm_command_loop ()
#7  0x08056307 in ap_parse_htaccess ()
#8  0x08068415 in directory_walk ()
#9  0x08069730 in process_request_internal ()
#10 0x08069bb8 in ap_process_request ()
#11 0x08060929 in child_main ()
#12 0x08060bbb in make_child ()
#13 0x08060f38 in perform_idle_server_maintenance ()
#14 0x0806150d in standalone_main ()
#15 0x08061b63 in main ()
#16 0x2da12589 in __libc_start_main () from /lib/i686/libc.so.6



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

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



#24646 [Opn-Bgs]: foreach doesnt work well inside recursive functions

2003-07-14 Thread sniper
 ID:   24646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sagi at boom dot org dot il
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux
 PHP Version:  4CVS-2003-07-14 (stable)
 New Comment:

Please read the Note:'s from http://www.php.net/foreach
as this is not any bug.



Previous Comments:


[2003-07-14 09:42:30] sagi at boom dot org dot il

Description:

I'm trying to write a recursive function that uses foreach() on the
same array couple of times simultaneously.

However it looks like when going back to the original function foreach
doesn't continue where it stopped, but just continues running the code
after the foreach.

I tried the same with for() and it works right. in the attached code
there are the 2 lines that you can comment out to see how it works with
for() (comment foreach if you do).



Reproduce code:
---
?php
$cats = array(
1 = array(0, 'parent 1'),
2 = array(0, 'parent 2'),
3 = array(0, 'parent 3'),
4 = array(1, 'sub1 of parent 1'),
5 = array(1, 'sub2 of parent 1'),
6 = array(2, 'sub1 of parent 2'),
7 = array(2, 'sub2 of parent 2'),
8 = array(1, 'sub3 of parent 1'),
9 = array(5, 'sub1 of parent 5'),
10 = array(2, 'sub3 of parent 2')
);

function showit($parent, $level)
{
global $cats;

foreach ($cats as $id = $category) {
//  for ($id=1; $id = count($cats); $id++) {
//  $category = $cats[$id];
if ($category[0] == $parent) {
print str_repeat(\t,$level).'('.$id.')
'.$category[1].\n;

showit($id, $level+1);
}
}

}

showit(0, 0);

?


Expected result:

(1) parent 1
(4) sub1 of parent 1
(5) sub2 of parent 1
(9) sub1 of parent 5
(8) sub3 of parent 1
(2) parent 2
(6) sub1 of parent 2
(7) sub2 of parent 2
(10) sub3 of parent 2
(3) parent 3


Actual result:
--
(1) parent 1
(4) sub1 of parent 1






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



#24648 [NEW]: apache_1.3.26 php-4.3.2

2003-07-14 Thread bergansk at daac dot gsfc dot nasa dot gov
From: bergansk at daac dot gsfc dot nasa dot gov
Operating system: IRIX 6.5.18
PHP version:  4.3.2
PHP Bug Type: Apache related
Bug description:  apache_1.3.26  php-4.3.2

Description:

Installing on an SGI IRIX 6.5.18
apache was already on the system working

-- the php-4.3.2 was built and installed
now recompiling apache_1.3.26 with php module

I ran 
BASELINE=dev
CC=cc -o32 ./configure --prefix=/usr/LOCAL/etc/httpd-$BASELINE
--enable-module=auth_db --enable-module=auth_dbm --server-uid=wwwuser
--server-gid=wwwuser --mandir=/usr/local/man 
--activate-module=src/modules/perl/libperl.a  --enable-module=rewrite
--activate-module=src/modules/php4/libphp4.a

then I ran make  and got the following errors

Starting errors
: libperl.a
=== src/modules/perl
=== src/modules/php4
cc -o32 -c -I../.. -I/usr/local/lib/perl5/5.6.0/IP27-irix/CORE
-I../../os/unix -I../../include   -DIRIX -DMOD_PERL -DUSE_PERL_SSI
-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,1184,1552
-OPT:Olimit=0:space=ON -I/usr/local/include -DLANGUAGE_C -DUSE_EXPAT
-I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` -DIRIX -DMOD_PERL
-DUSE_PERL_SSI -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,1184,1552
-OPT:Olimit=0:space=ON -I/usr/local/include -DLANGUAGE_C
-I/usr/local/src/php-4.3.2/main -I/usr/local/src/php-4.3.2/Zend
-I/usr/local/src/php-4.3.2/TSRM -I/usr/local/src/php-4.3.2
-I/usr/local/src/php-4.3.2/sapi/apache -I/usr/local/src/php-4.3.2/main
-I/usr/local/src/php-4.3.2/Zend -I/usr/local/src/php-4.3.2/TSRM
mod_php4.c
cc: Warning: -OPT options are ignored
cc: Warning: -OPT options are ignored
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 192: Syntax
Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 196: Syntax
Error
while (arKey  arEnd) {
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 197:
Empty declaration
h += (h  5);
-^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 198:
Empty declaration
h ^= (ulong) *arKey++;
-^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 200: Empty
declaration specifiers
return h;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 42:
Syntax Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 44:
Empty declaration specifiers
stack-elements = (void **) _erealloc((stack-elements),
( (sizeof(void *) * (stack-max *= 2 ))), 0) ;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 45:
Syntax Error
stack-top_element = stack-elements+stack-top;
-^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 45:
Empty declaration specifiers
stack-top_element = stack-elements+stack-top;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 46:
Syntax Error
}
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
47: Empty declaration
stack-top++;
^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 48:
Syntax Error
*(stack-top_element++) = ptr;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 48:
Empty declaration specifiers
*(stack-top_element++) = ptr;
--^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 52:
Syntax Error
 {
 ^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
53: Empty declaration
stack-top--;
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
54: Empty declaration
return *(--stack-top_element);
--^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 62:
Syntax Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 68:
Syntax Error
if (!length) {
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line
69: Empty declaration
return 0;
^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 73:
Syntax Error
if (length=2  str[0]=='0'  (str[1]=='x' || str[1]=='X')) {
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 73:
Syntax Error
if (length=2  str[0]=='0'  (str[1]=='x' || str[1]=='X')) {
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 73:
Syntax Error
if (length=2  str[0]=='0'  (str[1]=='x' || str[1]=='X')) {
--^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 74:
Empty declaration specifiers
conv_base=16;
^
cfe: 

#24639 [Fbk-Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

what does that mean complete testcase script?


Previous Comments:


[2003-07-14 12:55:58] [EMAIL PROTECTED]

Ok. Then provide us complete testcase scripts.




[2003-07-14 12:43:27] nospam at rshell dot org

yes



[2003-07-14 12:32:39] [EMAIL PROTECTED]

If you remove all those php_admin_value settings, does it still
segfault?




[2003-07-14 11:33:00] nospam at rshell dot org

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.



[2003-07-14 10:33:38] [EMAIL PROTECTED]

How exactly is your virtualhost setup?
Where is that script located which has that include() ?
What is in that .htaccess file involved?




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

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



#24588 [Opn-Bgs]: SQLite version

2003-07-14 Thread helly
 ID:   24588
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dariuszbz at wp dot pl
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: windows 2003
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

We will do as soon as we find time or need it our self. If you really
need it yourself you can always pay us maoney or send us a patch :-)


Previous Comments:


[2003-07-10 08:59:42] dariuszbz at wp dot pl

Description:

You shoud compile new php5 with newes version of sqlite (The latest
SQLite version is 2.8.4 )






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



#6584 [Opn-Csd]: SNMP get-next function is missing

2003-07-14 Thread harrie
 ID:   6584
 Updated by:   [EMAIL PROTECTED]
 Reported By:  maziero at ppgia dot pucpr dot br
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: Linux
 PHP Version:  4.0.2
 New Comment:

This feature is added now and will be in the release 
from PHP 5.x onwards.


Previous Comments:


[2000-09-06 17:44:39] maziero at ppgia dot pucpr dot br

It seems that a SNMP get-next function (snmpgetnext)
would be very useful. It is provided in the SNMP
protocol, in order to make easy for managers to access table structures
in an efficient way. Without this function, the PHP page should know
exactly the table structure in the MIB. Also, using the snmpwalk 
function, much more data should be processed in the 
PHP page in order to parse the data and rebuild the 
table structure.






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



#24637 [Opn-Bgs]: __destruct not called

2003-07-14 Thread helly
 ID:   24637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bertrand dot Willm at laposte dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Class/Object related
 Operating System: Windows XP
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The instance is destructed of course after script termination if the
script doesn't destroy it itself. And when a derived class has no
specialized destructor then of course the inherited destructor is to be
called.


Previous Comments:


[2003-07-13 15:33:01] Bertrand dot Willm at laposte dot net

Description:

There is no recursive call to __destruct when it is not defined in a
derived class.
There is not this problem with __construct.
This can be dangerous be cause if a destructor is declared, all the
derived clas have to declare a __destruct to be sure that the
destruction is done.
In other way __destruct is obligatory not to have problem, but this is
not flexible.

Reproduce code:
---
class CBaseClass {
   var $name;
   function __construct($name) {
  $this-name = $name;
  echo $this-name-gt;CBaseClass::__construct()br;
   }
   
   function __destruct() {
  echo $this-name-gt;CBaseClass::__destruct()br;
   }
}

class CExtClass extends CBaseClass {
}

echo 'Creation of ExtObjectbr';
$ExtObject = new CExtClass('ExtObject');

echo 'End of scriptbr';


Expected result:

Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script


Actual result:
--
Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script
ExtObject-CBaseClass::__destruct()






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



#24644 [Opn-Fbk]: Fata error because of private method

2003-07-14 Thread helly
 ID:   24644
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bertrand dot Willm at laposte dot net
-Status:   Open
+Status:   Feedback
 Bug Type: XML related
 Operating System: Windows XP
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

The only interesting part here is that the error message should say
that private method StartElement() was called.

The problem is that by the call to xml_parse() the connection to the
instance gets lost. you should use array($this,'method_name')
instead. Try that please.


Previous Comments:


[2003-07-14 08:27:23] Bertrand dot Willm at laposte dot net

Description:

I make a class to parse XML.
The element handler functions are private methods.
I tried to call a private method from the StartElement handler.
There is a fatal error.
This should not be the case as all these functions are declared in the
same class.
In a class, private function should have access to the other private
functions of the class.


Reproduce code:
---
class CBaseClass {
   var $name;
   function Parse() {
  $parser = xml_parser_create();
  xml_set_object($parser, $this);
  xml_set_element_handler($parser, 'StartElement', 'EndElement');
  xml_parse($parser, 'xmlnode//xml', true);
  xml_parser_free($parser);
   }
   
   private function StartElement() {
  $this-PrivateFunction();
   }

   private function EndElement() {
   }

   private function PrivateFunction() {
   }
}

class CExtClass extends CBaseClass {
}

$ExtObject = new CExtClass();
$ExtObject-Parse();


Expected result:

no error

Actual result:
--
Fatal error: Call to private method cbaseclass::PrivateFunction() from
context 'cextclass' in c:\sitesweb\www\test.php5 on line 14





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



#24639 [Opn-Fbk]: segmentation fault with old code

2003-07-14 Thread sniper
 ID:   24639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nospam at rshell dot org
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

We need to have short example scripts which we can use ourselves to try
and reproduce this segfault, otherwise we can't fix it.



Previous Comments:


[2003-07-14 13:41:44] nospam at rshell dot org

what does that mean complete testcase script?



[2003-07-14 12:55:58] [EMAIL PROTECTED]

Ok. Then provide us complete testcase scripts.




[2003-07-14 12:43:27] nospam at rshell dot org

yes



[2003-07-14 12:32:39] [EMAIL PROTECTED]

If you remove all those php_admin_value settings, does it still
segfault?




[2003-07-14 11:33:00] nospam at rshell dot org

this is the virttualhost:
VirtualHost xx.xxx.xx.xx:80
ServerAdmin [EMAIL PROTECTED]
ServerName domain.com
ServerAlias www.domain.com
User domain
Group domain
DocumentRoot /var/www/html/domain
php_admin_value safe_mode 1
php_admin_value open_basedir /var/www/html/domain/
php_admin_value upload_tmp_dir /var/www/html/domain/tmp
php_admin_value file_uploads 1
php_admin_value safe_mode_exec_dir /dev/null
php_admin_value safe_mode_include_dir
/var/www/html/domain/public_html/
/VirtualHost

The site in question is www.pctip.co.il.
when you login, note the header. That's the file in question, and on
the right side there's a banner. Thats the include() line. now click
the forum, you will see the same header but with no banner (you'll see
the works banner on the right). I've edited that to stop the seg
faults. The include line was there, when you access that header file
from the forum dir, and only from the forum dir, you get segmentaion
fault.

As for .htaccess, there's no .htaccess anywhere in the path
of the forum dir, or the includes dir, and up to /.



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

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



#24648 [Opn-Fbk]: Compile failure with apache_1.3.26 php-4.3.2 (static build)

2003-07-14 Thread sniper
 ID:   24648
 Updated by:   [EMAIL PROTECTED]
-Summary:  apache_1.3.26  php-4.3.2
 Reported By:  bergansk at daac dot gsfc dot nasa dot gov
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: IRIX 6.5.18
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2003-07-14 13:25:18] bergansk at daac dot gsfc dot nasa dot gov

Description:

Installing on an SGI IRIX 6.5.18
apache was already on the system working

-- the php-4.3.2 was built and installed
now recompiling apache_1.3.26 with php module

I ran 
BASELINE=dev
CC=cc -o32 ./configure --prefix=/usr/LOCAL/etc/httpd-$BASELINE
--enable-module=auth_db --enable-module=auth_dbm --server-uid=wwwuser
--server-gid=wwwuser --mandir=/usr/local/man 
--activate-module=src/modules/perl/libperl.a  --enable-module=rewrite
--activate-module=src/modules/php4/libphp4.a

then I ran make  and got the following errors

Starting errors
: libperl.a
=== src/modules/perl
=== src/modules/php4
cc -o32 -c -I../.. -I/usr/local/lib/perl5/5.6.0/IP27-irix/CORE
-I../../os/unix -I../../include   -DIRIX -DMOD_PERL -DUSE_PERL_SSI
-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,1184,1552
-OPT:Olimit=0:space=ON -I/usr/local/include -DLANGUAGE_C -DUSE_EXPAT
-I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` -DIRIX -DMOD_PERL
-DUSE_PERL_SSI -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,1184,1552
-OPT:Olimit=0:space=ON -I/usr/local/include -DLANGUAGE_C
-I/usr/local/src/php-4.3.2/main -I/usr/local/src/php-4.3.2/Zend
-I/usr/local/src/php-4.3.2/TSRM -I/usr/local/src/php-4.3.2
-I/usr/local/src/php-4.3.2/sapi/apache -I/usr/local/src/php-4.3.2/main
-I/usr/local/src/php-4.3.2/Zend -I/usr/local/src/php-4.3.2/TSRM
mod_php4.c
cc: Warning: -OPT options are ignored
cc: Warning: -OPT options are ignored
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 192:
Syntax
Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 196:
Syntax
Error
while (arKey  arEnd) {
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 197:
Empty declaration
h += (h  5);
-^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 198:
Empty declaration
h ^= (ulong) *arKey++;
-^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_hash.h, line 200: Empty
declaration specifiers
return h;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 42:
Syntax Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 44:
Empty declaration specifiers
stack-elements = (void **)
_erealloc((stack-elements),
( (sizeof(void *) * (stack-max *= 2 ))), 0) ;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 45:
Syntax Error
stack-top_element = stack-elements+stack-top;
-^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 45:
Empty declaration specifiers
stack-top_element = stack-elements+stack-top;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 46:
Syntax Error
}
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
47: Empty declaration
stack-top++;
^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 48:
Syntax Error
*(stack-top_element++) = ptr;
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 48:
Empty declaration specifiers
*(stack-top_element++) = ptr;
--^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line 52:
Syntax Error
 {
 ^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
53: Empty declaration
stack-top--;
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_ptr_stack.h, line
54: Empty declaration
return *(--stack-top_element);
--^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 62:
Syntax Error
 {
 ^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 68:
Syntax Error
if (!length) {
^
cfe: Warning 625: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line
69: Empty declaration
return 0;
^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 73:
Syntax Error
if (length=2  str[0]=='0'  (str[1]=='x' || str[1]=='X'))
{
---^
cfe: Error: /usr/local/src/php-4.3.2/Zend/zend_operators.h, line 73:
Syntax Error
if (length=2  

#24639 [Fbk-Opn]: segmentation fault with old code

2003-07-14 Thread nospam at rshell dot org
 ID:   24639
 User updated by:  nospam at rshell dot org
 Reported By:  nospam at rshell dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

I can't write a script that will reproduce the error, best I can do is
get you more backtraces, they are all caused by accessing the forum dir
and getting the banner, but each is different.


Previous Comments:


[2003-07-14 14:32:56] [EMAIL PROTECTED]

We need to have short example scripts which we can use ourselves to try
and reproduce this segfault, otherwise we can't fix it.




[2003-07-14 13:41:44] nospam at rshell dot org

what does that mean complete testcase script?



[2003-07-14 12:55:58] [EMAIL PROTECTED]

Ok. Then provide us complete testcase scripts.




[2003-07-14 12:43:27] nospam at rshell dot org

yes



[2003-07-14 12:32:39] [EMAIL PROTECTED]

If you remove all those php_admin_value settings, does it still
segfault?




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

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



#23685 [Opn]: fake values returned when OID value is an empty string

2003-07-14 Thread harrie
 ID:   23685
 Updated by:   [EMAIL PROTECTED]
 Reported By:  s dot zagrodzki at net dot icm dot edu dot pl
 Status:   Open
 Bug Type: SNMP related
 Operating System: Linux 2.2
 PHP Version:  4.3.2RC4-dev
 New Comment:

Attempted in various ways, but I cannot reproduce this.
Maybe it is a Linux problem, since I do PHP development
on a CYGWIN system.
Neither do I get the same results as the 'user 
contributed note' on snmpget.


Previous Comments:


[2003-07-14 09:44:57] s dot zagrodzki at net dot icm dot edu dot pl

this issue was also mentioned by javierb at gmx dot net in user
contributed notes to snmpget() function manual:
http://www.php.net/manual/en/function.snmpget.php



[2003-07-14 03:38:00] s dot zagrodzki at net dot icm dot edu dot pl

I tried using snmp module from 20030714 snapshot - didn't help.



[2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl

this is a part of tcpdump of snmpwalk query:
...
GetResponse(50)  .1.3.6.1.2.1.31.1.1.1.18.3=lacze do Obs. Astr.
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.3
GetResponse(31)  .1.3.6.1.2.1.31.1.1.1.18.4=
GetNextRequest(31)  .1.3.6.1.2.1.31.1.1.1.18.4
GetResponse(59)  .1.3.6.1.2.1.31.1.1.1.18.5=: lacze do Wydz.
Zarzadzania
...
as you can see, snmp agent returns empty value, response length is also
correct. And snmpwalk utility also gives
correct results.



[2003-07-13 14:49:20] [EMAIL PROTECTED]

I tried this with other variables (I do not have an 
SNMP agent implementing the ifXTable) and cannot 
reproduce it.

Therefore I am thinking that it maybe the SNMP agent
which returns these values and as a result they
show up in PHP. Could you confirm that this is not a
problem with the SNMP agent/router.



[2003-07-13 00:11:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Some changes have been made lately.




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

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



#24637 [Bgs]: __destruct not called

2003-07-14 Thread Bertrand dot Willm at laposte dot net
 ID:   24637
 User updated by:  Bertrand dot Willm at laposte dot net
 Reported By:  Bertrand dot Willm at laposte dot net
 Status:   Bogus
 Bug Type: Class/Object related
 Operating System: Windows XP
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

I probably make an error entering the bug.
What should be read is:

Actual result:
--
Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script

Expected result:

Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script
ExtObject-CBaseClass::__destruct()


Previous Comments:


[2003-07-14 14:20:04] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The instance is destructed of course after script termination if the
script doesn't destroy it itself. And when a derived class has no
specialized destructor then of course the inherited destructor is to be
called.



[2003-07-13 15:33:01] Bertrand dot Willm at laposte dot net

Description:

There is no recursive call to __destruct when it is not defined in a
derived class.
There is not this problem with __construct.
This can be dangerous be cause if a destructor is declared, all the
derived clas have to declare a __destruct to be sure that the
destruction is done.
In other way __destruct is obligatory not to have problem, but this is
not flexible.

Reproduce code:
---
class CBaseClass {
   var $name;
   function __construct($name) {
  $this-name = $name;
  echo $this-name-gt;CBaseClass::__construct()br;
   }
   
   function __destruct() {
  echo $this-name-gt;CBaseClass::__destruct()br;
   }
}

class CExtClass extends CBaseClass {
}

echo 'Creation of ExtObjectbr';
$ExtObject = new CExtClass('ExtObject');

echo 'End of scriptbr';


Expected result:

Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script


Actual result:
--
Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script
ExtObject-CBaseClass::__destruct()






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



#24637 [Bgs-Fbk]: __destruct not called

2003-07-14 Thread helly
 ID:   24637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bertrand dot Willm at laposte dot net
-Status:   Bogus
+Status:   Feedback
 Bug Type: Class/Object related
 Operating System: Windows XP
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:


[2003-07-14 15:24:40] Bertrand dot Willm at laposte dot net

I probably make an error entering the bug.
What should be read is:

Actual result:
--
Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script

Expected result:

Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script
ExtObject-CBaseClass::__destruct()



[2003-07-14 14:20:04] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The instance is destructed of course after script termination if the
script doesn't destroy it itself. And when a derived class has no
specialized destructor then of course the inherited destructor is to be
called.



[2003-07-13 15:33:01] Bertrand dot Willm at laposte dot net

Description:

There is no recursive call to __destruct when it is not defined in a
derived class.
There is not this problem with __construct.
This can be dangerous be cause if a destructor is declared, all the
derived clas have to declare a __destruct to be sure that the
destruction is done.
In other way __destruct is obligatory not to have problem, but this is
not flexible.

Reproduce code:
---
class CBaseClass {
   var $name;
   function __construct($name) {
  $this-name = $name;
  echo $this-name-gt;CBaseClass::__construct()br;
   }
   
   function __destruct() {
  echo $this-name-gt;CBaseClass::__destruct()br;
   }
}

class CExtClass extends CBaseClass {
}

echo 'Creation of ExtObjectbr';
$ExtObject = new CExtClass('ExtObject');

echo 'End of scriptbr';


Expected result:

Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script


Actual result:
--
Creation of ExtObject
ExtObject-CBaseClass::__construct()
End of script
ExtObject-CBaseClass::__destruct()






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



#15052 [Com]: Reserved Variable Name id ?

2003-07-14 Thread mikea at gb-im dot com
 ID:   15052
 Comment by:   mikea at gb-im dot com
 Reported By:  rdv at teldo dot de
 Status:   Bogus
 Bug Type: Variables related
 Operating System: WIn2k
 PHP Version:  4.0CVS-2002-01-15
 New Comment:

We are having a similar problem with scripts that were working fine in
older versions of PHP (4.16, etc.) and now that we are on version
4.3.1, any variable that I have that ends in the letters 'id' isn't
being passed properly from POST submissions to form handler scripts. NO
CODE HAS CHANGES IN THE SCRIPTS THEMSELVES, ONLY THE VERSION OF PHP HAS
CHANGED.

For example:

A snipet from the form (I switched normal HTML brackets for square
brackets for readibility and posible security issues on this bug
tracker):

[form method=post action=form_submit.php?ul=$uluid=$uid]

COMMENT: the URL variables of UL and UID are pulled from values passed
in on th calling link and represent user level and user ID
respectively. I have no problem retrieving these values.

[select name=sid]
[option value=NOTUSED]NOTUSED[/option]
[option value=1]blah[/option]
[option value=2]rocco[/option]
[/select]

[/form]

COMMENT: When the form is submitted, I dynamically create an SQL string
based on which form fields are filled out. So, in the receiving script,
there is logic similar to this:

If ($sid != 'NOTUSED')
{

   $search_string = $search_string .  and sid = '$sid';

}

When the script has finished looking at all of the submitted form
values, and you look at the finished SQL query string, it ends up
looking like this:

select * from orders where stuff = 'stuff' and junk = 'junk' and sid =
'1sid1';

I honestly have no idea what is going on, a the scripts themselves
worked fine under the older versions of PHP and now is doing this. It
is a strange error. We temporarily fixed it by exploding the $sid
variable. That allowed us to seperate out the first character and
isolate it for use throughout the script.

Any thoughts?


Previous Comments:


[2002-01-15 12:35:45] [EMAIL PROTECTED]

instead of:

  search.phpid=1

try:

  search.php?id=1

Kind Regards,
  Daniel Lorch



[2002-01-15 12:16:54] [EMAIL PROTECTED]

$id is not a reserved variable, and should be useable where-ever you
code.

You might find however that you have used id before in the script, so
it is picking that variable, and you have a conflict.



[2002-01-15 11:58:43] rdv at teldo dot de

Hi, I hope this is really a bug and I'm not too stupid:

In a larger script I used to embed variables in links, like this:
search.php?a=1bc=2 which worked perfectly.

But when I used id as Variablename it always got lost, so what
should
be search.phpid=1 became search.phpid=ressource id #1.

I looked for hours for the problem, than I renamed id to it, and
now
the variables are transferred correctly and the program works.. 

So is id perhaps some kind of variable that is used by php internally
?
I searched in the docus and the bug reports, but didn't find anything
on
it. 




[2002-01-15 11:56:22] rdv at teldo dot de

Hi, I hope this is really a bug and I'm not too stupid:

In a larger script I used to embed variables in links, like this:
search.php?a=1bc=2 witch worked perfectly.

But when I used id as Variablename it always got lost, so what should
be search.phpid=1 became search.phpid=ressource id #1.

I looked for hours for the problem, than I renamed id to it, and
now the variables are transferred correctly and the program works.. 

So is id perhaps some kind of variable that is used by php internally ?
I searched in the docus and the bug reports, but didn't find anything
on it. 






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



#24651 [NEW]: PHP is not dealing properly with variable names ending in 'id'

2003-07-14 Thread mikea at gb-im dot com
From: mikea at gb-im dot com
Operating system: Linux Slackware 9.0
PHP version:  4.3.1
PHP Bug Type: Variables related
Bug description:  PHP is not dealing properly with variable names ending in 'id'

Description:

RE: bug 15052

We are having a similar problem with scripts that were working fine in
older versions of PHP (4.16, etc.) and now that we are on version 4.3.1,
any variable that I have that ends in the letters 'id' isn't being passed
properly from POST submissions to form handler scripts. NO CODE HAS
CHANGES IN THE SCRIPTS THEMSELVES, ONLY THE VERSION OF PHP HAS CHANGED.

For example:

A snipet from the form (I switched normal HTML brackets for square
brackets for readibility and posible security issues on this bug
tracker):

[form method=post action=form_submit.php?ul=$uluid=$uid]

COMMENT: the URL variables of UL and UID are pulled from values passed in
on th calling link and represent user level and user ID respectively. I
have no problem retrieving these values.

[select name=sid]
[option value=NOTUSED]NOTUSED[/option]
[option value=1]blah[/option]
[option value=2]rocco[/option]
[/select]

[/form]

COMMENT: When the form is submitted, I dynamically create an SQL string
based on which form fields are filled out. So, in the receiving script,
there is logic similar to this:

If ($sid != 'NOTUSED')
{

   $search_string = $search_string .  and sid = '$sid';

}

When the script has finished looking at all of the submitted form values,
and you look at the finished SQL query string, it ends up looking like
this:

select * from orders where stuff = 'stuff' and junk = 'junk' and sid =
'1sid1';

I honestly have no idea what is going on, a the scripts themselves worked
fine under the older versions of PHP and now is doing this. It is a
strange error. We temporarily fixed it by exploding the $sid variable.
That allowed us to seperate out the first character and isolate it for use
throughout the script.

Any thoughts? 

Reproduce code:
---
html
body
?PHP
$ul = 2;
$uid = 9;
print form method=\post\
action=\myform_process.php?ul=$uluid=$uid\;
?
select name=sid
option[not used]/option
option value=1blah/option
option value=2stuff/option
/select
input type=submit value=submit now!
/form
/body
/html

Expected result:

A printed statement (assuming I chose the option labeled 'blah'):

select * from orders where uid = '9' and sid = '1'

Actual result:
--
This is the actual printed statement:

select * from orders where uid = '9' and sid = '1sid=1'

(the form submit-to script looks like this:

?PHP
print select * from orders where uid = '$uid' and sid = '$sid'; 
?

)

Yes, that is all the script does is print out a statement in this example!

-- 
Edit bug report at http://bugs.php.net/?id=24651edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24651r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24651r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24651r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24651r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24651r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24651r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24651r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24651r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24651r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24651r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24651r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24651r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24651r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24651r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24651r=gnused



#23935 [Com]: array_key_exists no longer juggles types correctly

2003-07-14 Thread tater at potatoe dot com
 ID:   23935
 Comment by:   tater at potatoe dot com
 Reported By:  dave at codewhore dot org
 Status:   Closed
 Bug Type: Arrays related
 Operating System: Linux 2.4
 PHP Version:  5CVS-2003-05-31 (dev)
 Assigned To:  sterling
 New Comment:

I am still seeing this on the latest CVS code. It goes beyond
array_flip(), too. I first saw this in an array value from $_REQUEST,
and array_combine() will produce the same effect - anything that can
get a numeric array key to be a string rather than a number.


Previous Comments:


[2003-06-30 13:51:56] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-06-06 16:08:35] dave at codewhore dot org

I should clarify that it looks like the problem is in array_flip, not
array_key_exists. Is it okay to keep this here?



[2003-06-06 16:07:23] dave at codewhore dot org

Hi Sterling:

I think there's a remaining (related) problem, this time with array
keys that are strings. I've enclosed a test case.

?php
  /* This works */
  $f = array('7' = 0);
  var_dump($f);
  var_dump(array_key_exists(7, $f));

  /* This doesn't */
  $f = array_flip(array('7'));
  var_dump($f);
  var_dump(array_key_exists(7, $f));
?

On PHP 5, I get:

array(1) {
  [7]=
  int(0)
}
bool(true)
array(1) {
  [7]=
  int(0)
}
bool(false)

On PHP 4 I get:
array(1) {
  [7]=
  int(0)
}
bool(true)
array(1) {
  [7]=
  int(0)
}
bool(true)


Thanks in advance,
- Dave



[2003-06-05 11:16:09] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

fixed in cvs, thanks.



[2003-05-31 23:12:32] dave at codewhore dot org

Hi:

The following script produces different output with PHP 5 HEAD than it
does with the PHP 4.3 stable branch:

?php
  $f[1] = 1;
  var_dump(array_key_exists('1', $f));
?

With PHP 4.3 stable, I get:
  bool(true)

With PHP 5 HEAD, I get:
  bool(false)

It appears that PHP 5 HEAD is missing the call to HANDLE_NUMERIC() in
zend_hash_exists (Zend/zend_hash.c). The ZE2 changelog shows that it
was moved:

  move HANDLE_NUMERIC() from the hash table
  implementation upstream to the places that
  actually need to use it.

But I'm unable to figure out where the equivalent functionality was
added back. Am I missing something?

Thanks in advance,

- Dave





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



#24652 [NEW]: array keys that are strings but numeric behave incorrectly

2003-07-14 Thread tater at potatoe dot com
From: tater at potatoe dot com
Operating system: OS X 10.2
PHP version:  5CVS-2003-07-14 (dev)
PHP Bug Type: Arrays related
Bug description:  array keys that are strings but numeric behave incorrectly

Description:

This is really bug #23935, but that's marked 'Closed' and I am still
seeing the problem in the current PHP5 code. It's beyond array_flip(),
too, strictly. I first saw this in $_POST with a field named myfield[1]
- this comes through as $_POST[myfield][1]. Same with array_combine()
using array(1) as the key array.

Reproduce code:
---
submit a form with hidden field named 'myfield[1]':
form action=?php echo $_SERVER['PHP_SELF']; ? method=POST
input type=hidden name=myfield[1] value=1 
input type=submit
/form
?php
function testit($a)
{
static $tick = 1;
echo litest , $tick++, :\n;
var_dump($a, array_key_exists(key($a), $a), empty($a[1]),
empty($a['1']));
}
testit(array(1=1));
testit(array_flip(array(1=1)));
testit(array_combine(array('1'),array('1')));
if (!empty($_POST['myfield'])) { testit($_POST['myfield']); }
?

Expected result:

Output for test 2 on PHP 4.3.3RC1 (cli) (built: Jun 20 2003 23:09:34)
(DEBUG):

array(1) {
  [1]=
  int(1)
}
bool(true)
bool(false)
bool(false)

Actual result:
--
Output for test 2 on PHP 5.0.0b2-dev (cli) (built: Jul 14 2003 14:14:54)
(DEBUG):

array(1) {
  [1]=
  int(1)
}
bool(false)
bool(true)
bool(true)

-- 
Edit bug report at http://bugs.php.net/?id=24652edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24652r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24652r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24652r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24652r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24652r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24652r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24652r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24652r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24652r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24652r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24652r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24652r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24652r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24652r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24652r=gnused



#24651 [Opn-Csd]: PHP is not dealing properly with variable names ending in 'id'

2003-07-14 Thread sniper
 ID:   24651
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mikea at gb-im dot com
-Status:   Open
+Status:   Closed
 Bug Type: Variables related
 Operating System: Linux Slackware 9.0
 PHP Version:  4.3.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Works fine with latest CVS snapshot.



Previous Comments:


[2003-07-14 15:59:40] mikea at gb-im dot com

Description:

RE: bug 15052

We are having a similar problem with scripts that were working fine in
older versions of PHP (4.16, etc.) and now that we are on version
4.3.1, any variable that I have that ends in the letters 'id' isn't
being passed properly from POST submissions to form handler scripts. NO
CODE HAS CHANGES IN THE SCRIPTS THEMSELVES, ONLY THE VERSION OF PHP HAS
CHANGED.

For example:

A snipet from the form (I switched normal HTML brackets for square
brackets for readibility and posible security issues on this bug
tracker):

[form method=post action=form_submit.php?ul=$uluid=$uid]

COMMENT: the URL variables of UL and UID are pulled from values passed
in on th calling link and represent user level and user ID
respectively. I have no problem retrieving these values.

[select name=sid]
[option value=NOTUSED]NOTUSED[/option]
[option value=1]blah[/option]
[option value=2]rocco[/option]
[/select]

[/form]

COMMENT: When the form is submitted, I dynamically create an SQL string
based on which form fields are filled out. So, in the receiving script,
there is logic similar to this:

If ($sid != 'NOTUSED')
{

   $search_string = $search_string .  and sid = '$sid';

}

When the script has finished looking at all of the submitted form
values, and you look at the finished SQL query string, it ends up
looking like this:

select * from orders where stuff = 'stuff' and junk = 'junk' and sid =
'1sid1';

I honestly have no idea what is going on, a the scripts themselves
worked fine under the older versions of PHP and now is doing this. It
is a strange error. We temporarily fixed it by exploding the $sid
variable. That allowed us to seperate out the first character and
isolate it for use throughout the script.

Any thoughts? 

Reproduce code:
---
html
body
?PHP
$ul = 2;
$uid = 9;
print form method=\post\
action=\myform_process.php?ul=$uluid=$uid\;
?
select name=sid
option[not used]/option
option value=1blah/option
option value=2stuff/option
/select
input type=submit value=submit now!
/form
/body
/html

Expected result:

A printed statement (assuming I chose the option labeled 'blah'):

select * from orders where uid = '9' and sid = '1'

Actual result:
--
This is the actual printed statement:

select * from orders where uid = '9' and sid = '1sid=1'

(the form submit-to script looks like this:

?PHP
print select * from orders where uid = '$uid' and sid = '$sid'; 
?

)

Yes, that is all the script does is print out a statement in this
example!





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



#24639 [Opn-Bgs]: segmentation fault with old code

2003-07-14 Thread sniper
 ID:   24639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  nospam at rshell dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC2-dev
 New Comment:

We can't fix it then either.



Previous Comments:


[2003-07-14 15:07:10] nospam at rshell dot org

I can't write a script that will reproduce the error, best I can do is
get you more backtraces, they are all caused by accessing the forum dir
and getting the banner, but each is different.



[2003-07-14 14:32:56] [EMAIL PROTECTED]

We need to have short example scripts which we can use ourselves to try
and reproduce this segfault, otherwise we can't fix it.




[2003-07-14 13:41:44] nospam at rshell dot org

what does that mean complete testcase script?



[2003-07-14 12:55:58] [EMAIL PROTECTED]

Ok. Then provide us complete testcase scripts.




[2003-07-14 12:43:27] nospam at rshell dot org

yes



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

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



#24653 [NEW]: Error in GET

2003-07-14 Thread minetto at unochapeco dot rct-sc dot br
From: minetto at unochapeco dot rct-sc dot br
Operating system: Linux
PHP version:  4CVS-2003-07-14 (stable)
PHP Bug Type: Scripting Engine problem
Bug description:  Error in GET

Description:

When i use the link :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codAcervo=115621

the page is not find. If i use :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codacervo=115621

with (codacervo=) works.

My info :

PHP Version 4.3.3RC2-dev
Conectiva Linux 9.0
Oracle client 9.2


-- 
Edit bug report at http://bugs.php.net/?id=24653edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24653r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24653r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24653r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24653r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24653r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24653r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24653r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24653r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24653r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24653r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24653r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24653r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24653r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24653r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24653r=gnused



#22869 [Asn-WFx]: ignore_user_abortmemory_limit

2003-07-14 Thread edink
 ID:   22869
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mazsolt at yahoo dot com
-Status:   Assigned
+Status:   Wont fix
 Bug Type: *General Issues
 Operating System: windows 2000 Server
 PHP Version:  4.3.0
 Assigned To:  edink
 New Comment:

Unfortunatelly enabling memory limit across the board for all windows
users would be too far reaching change.


Previous Comments:


[2003-04-23 04:48:33] [EMAIL PROTECTED]

Assigned to Edin: The MEMORY_LIMIT should be defined for win32 builds
always? (it's a configure option in *nix builds)




[2003-04-15 06:15:58] mazsolt at yahoo dot com

Thanks for the new version of PHP, I downloaded it, but it didn't
solved any(2) of my problems.

The first script creates the file 'test.txt', the ignore
_user_abort(false) command has no effect.

The memory_limit situation remains unchanged, too. Neither phpinfo(),
nor ini_set() doesn't work with it.



[2003-04-09 16:48:22] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-03-25 03:03:14] mazsolt at yahoo dot com

php.ini:
output_buffering = Off

IIS:
disable ouput buffering

the program:
?php
ignore_user_abort(false);
echo str_repeat(start,300);
sleep(10);
[EMAIL PROTECTED](test.txt,w) or die(problems);
?

After about 3 seconds, I aborted the program execution, but the program
wasn't finished, it created the file test.txt. I also tested with
Windows 2000 Profesional, and the result was the same.

My question: ignore_user_abort() doesn't work on Windows? When I call
phpinfo(), it shows the configuration variable ignore_user_abort with
the value Off. But in the file php.ini I don't find it anywhere. Why?


other problem: memory_limit (Windows 2000 Server)
---
The documentation writes(Getting started/configuration/configuration
directives) that the option memory_limit can be changed everywhere
(PHP_INI_ALL). I observe the following problems:

1. The memory_limit isn't displayed when the script displays the conf.
options with phpinfo()

2. The ini_get(memory_limit) function  doesn't return the value of
memory_limit, too (it returns a blank space)

3. when I set in the php.ini memory_limit to ) 0, the
get_cfg_var(memory_limit) returns the value of 0. When I set
ini_set(memory_limit,0)(both of them should mean that the script
has no memory space), but the script runs without problems

Please, confirm if the enumerated observations are a bug, or the
problems persist because of Windows 2000 Server. I read very carefuly
the documentation for PHP 4.3. Does it mean that the memory_limit can
be changed inside a script ? Why is written that this option is
changeable by PHP_INI_ALL    





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



#22780 [Asn-WFx]: DSO load warnings + crash behaviour

2003-07-14 Thread edink
 ID:   22780
 Updated by:   [EMAIL PROTECTED]
 Reported By:  chriskl at familyhealth dot com dot au
-Status:   Assigned
+Status:   Wont fix
 Bug Type: Apache related
 Operating System: Win2K
 PHP Version:  4.3.2RC1
 Assigned To:  edink
 New Comment:

Our build envirnment is not capable of having two different sets Apache
libraries and header files.


Previous Comments:


[2003-03-19 02:29:39] [EMAIL PROTECTED]

Edin: Would it be possible to provide the EAPI enabled apache module??




[2003-03-18 22:06:49] chriskl at familyhealth dot com dot au

This is a duplicate of bug #5205, but that bug was closed and the
official PHP disto has not been fixed.

I get this starting latest PHP with Apache:

[Wed Mar 19 12:03:44 2003] [warn] Loaded DSO c:/php/php4apache.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEPI)

I have gotten this error with 4.3.0 as well.  This is using official
PHP project everything.

It DOES cause crashes.  I'm just browsing my local site and every once
in a while it just stops and gives a blank page on a PHP page.  I hit
refresh about 20 times and it fixes itself.  This is truly annoying
behaviour.

Chris




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



#22950 [Asn-WFx]: Stack overflow with IIS, ISAPI

2003-07-14 Thread edink
 ID:   22950
 Updated by:   [EMAIL PROTECTED]
 Reported By:  heyjohnlim at yahoo dot com
-Status:   Assigned
+Status:   Wont fix
 Bug Type: IIS related
 Operating System: Windows 2000
 PHP Version:  4.3.2-RC
 Assigned To:  edink
 New Comment:

Our build environment produces only Release_TS_inline target of the php
build. If you need any assistance in helping you setup php build I
would be more than happy to help.


Previous Comments:


[2003-04-23 04:28:11] [EMAIL PROTECTED]

Edin, could you make the snapshots for win32 be debug-enabled..? :)




[2003-03-31 04:13:44] heyjohnlim at yahoo dot com

This problem happens still happens with 4.3.2-RC build Mar 31 2003
01:11:32

If you have a debug build i can download, i will be happy to try. I
have Visual C++ 6 and debugging facilities installed, but not the full
build environment for PHP.



[2003-03-31 02:11:30] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-03-29 03:36:25] heyjohnlim at yahoo dot com

The second crash occurs when calling the editor object
returned by GetEditor().

$editor-Render(); ## crashes here...

I did a print_r($editor) just before the Render() call and it looked
normal. I also called method_exists($editor,'Render') and it returned
1. So the $editor is still in a sane state just before it crashes.



[2003-03-29 03:24:30] heyjohnlim at yahoo dot com

Hello,

I am testing some complicated scripts that use many classes and objects
and that connects to mysql. The scripts work fine on Windows with IIS
CGI and on Linux with Apache 1.3.

However it crashes with IIS, ISAPI with

  PHP has encountered a Stack Overflow

Tracing the code, it appears to crash in two different places in two
different scripts. The crashes are consistently reproducible.

(1) Once while including a file(!) and 
(2) When the script calls an object's method (the method is never
executed, so it is during the method invocation). 

There is some faint connection between the two crashes. The key code is
a factory class that creates an object that looks something like this,
and is where the first crash occurs:

function GetEditor()
{
static $editor;

if (empty($editor)) {
  include_once('editor.inc.php'); ## crashes here
  $editor = new editor();
}
return $editor;
}

The second crash occurs when calling the editor object returned by
GetEditor().

$editor-Render(); ## crashes here...


One suspicion was perhaps some extension was not thread-safe. I then
removed all extensions from my php.ini and restarted IIS. Only the
pre-compiled extensions from the standard PHP Windows distribution such
as mysql were installed, and also Zend Optimizer. It still crashed.

Because i suspected the problem might be mysql, so i switched to
querying mssql instead. The problem still occurs at the same places.

It is difficult for me to create a simple script to reproduce the
problem, because the bug only happens in my  very complicated script.

- John Lim





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



#24249 [Asn-Csd]: Call to undefined function: fdf_add_doc_javascript() error w/ fdftk 5

2003-07-14 Thread edink
 ID:   24249
 Updated by:   [EMAIL PROTECTED]
 Reported By:  swoo at gvlabs dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: FDF related
 Operating System: win XP
 PHP Version:  4.3.2
 Assigned To:  edink
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-06-18 18:54:08] [EMAIL PROTECTED]

Better have Edin check. Seems like this is missing in the win32 build.




[2003-06-18 18:41:32] swoo at gvlabs dot com

Description:

Call to undefined function: fdf_add_doc_javascript() error received for
windows binary php 4.3.2. fdf_get_version shows 5.0. I noticed the
conditional compile in the c code, is the windows binary compiled with
HAVE_FDFTK_5?






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



#24450 [Opn-WFx]: TTF and FreeType functions lock font file

2003-07-14 Thread pajoye
 ID:   24450
 Updated by:   [EMAIL PROTECTED]
 Reported By:  choinet at rocketmail dot com
-Status:   Open
+Status:   Wont fix
 Bug Type: GD related
 Operating System: Windows XP
 PHP Version:  4.3.3RC1
 New Comment:

Hello,

We cannot fix it. Freetype keeps the file handle open and windows
interprets that as a lock. Test your script on a unix system and it
should work like a charm.

thanks for your report,

pierre


Previous Comments:


[2003-07-03 18:44:10] choinet at rocketmail dot com

I don't necessarily want to delete the file, but I want to be able to
hypothetically delete the parent directory above it :) I'm developing
an image management system that also allows for random image generation
with text, and perhaps I would need to remove a parent directory or the
file itself.



[2003-07-01 18:37:04] [EMAIL PROTECTED]

Just curious..but why do you want to delete the file? :)




[2003-07-01 17:45:37] choinet at rocketmail dot com

Description:

My computer setup is Apache 2.0.46,PHP 4.3.2, and Windows XP SP1. Only
modifications to php.ini are: 'extension=php_gd2.dll' and 'log_errors'
are enabled. Originally, I was trying to use the imagettftext()
function to write text to a png file. I used the function in a similar
context as described by the manual, and the text write was successful.
However, I stumbled upon the discovery that the font file that the
function uses was locked by either the webserver or PHP process, as I
was not able to unlink or remove the font file.

I tried to isolate the problem by testing the code on Windows XP with
Apache 1.3.27, Apache 2.0.46, and IIS 5.1 and either PHP 4.2.3, 4.3.2,
4.3.3RC1, or 5.0, so I am thinking that it has something to do with the
operating system. Furthermore, this problem does not occur with a
webserver running Apache/PHP 4.3.2 on Linux. Also, this problem applies
to various true-type font files.

The problem only goes away after I stop or restart the webserver.

In summary, there are four functions that use a font file that lock it:
imagettftext(), imagettfbbox(), imagefttext(), and imageftbbox().





Reproduce code:
---
$im = imagecreatefrompng('test.png');
$blue = imagecolorallocate($im, 0, 102, 255);
$font = 'tahoma.ttf';
//
// These four functions lock the font file and do not release it
//
imagettftext($im, 10, 0, 10, 25, $blue, $font, 'text');
imagettfbbox (20, 0, $font, 'text');
imagefttext ($im, 12, 0, 10, 20, 5, $font, 'text', $foo);
imageftbbox (12, 0, $font, 'text', $foo);

header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

unlink($font);

Expected result:

I expect to see the png image generated and the font file unlinked.

Actual result:
--
The image displays fine but the font file cannot be deleted.

(Windows Error Dialog Box after manually attempting to delete
arial.ttf)

Cannot delete arial: It is being used by another person or program.
Close any programs that might be using the file and try again.

(Apache Error Log)

[client 127.0.0.1] PHP Warning:  unlink(arial.ttf): Permission denied
in C:\Apache2\htdocs\gd\dynamic.php on line 16





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



#24654 [NEW]: Test for Bug #22414 not skipped with safe_mode=On

2003-07-14 Thread webmaster at ragnarokonline dot de
From: webmaster at ragnarokonline dot de
Operating system: SuSE 8.2
PHP version:  4.3.2
PHP Bug Type: Unknown/Other Function
Bug description:  Test for Bug #22414 not skipped with safe_mode=On

Description:

The test for Bug #22414 isn't being skipped with safe_mode turned on

(I've submitted the results of make test to php-qa about 5-10 minutes ago)

Reproduce code:
---
1. Turn safe_mode on in your php.ini
2. run make test after compiling

Expected result:

The test is being skipped

Actual result:
--
The test is processed and fails

-- 
Edit bug report at http://bugs.php.net/?id=24654edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24654r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24654r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24654r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24654r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24654r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24654r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24654r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24654r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24654r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24654r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24654r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24654r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24654r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24654r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24654r=gnused



#24296 [Asn-Fbk]: Sablot XSLT gives error 3 when xml file too big

2003-07-14 Thread edink
 ID:   24296
 Updated by:   [EMAIL PROTECTED]
 Reported By:  andrew at shh dot fi
-Status:   Assigned
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: win32 and linux
 PHP Version:  4.3.2
 Assigned To:  edink
 New Comment:

Which expat version worked for you?


Previous Comments:


[2003-06-26 12:54:44] [EMAIL PROTECTED]

Edin, can you update the expat lib in the win32 stuff..?
Andrew, what version did you use?




[2003-06-25 02:17:41] andrew at shh dot fi

Problem resolved!!

Upgrade the expat to the latest version and everything works



[2003-06-24 01:25:05] andrew at shh dot fi

I found another person who had experienced similar problems on the
Gingerall.com site. He had attached an example file. The size is 277034
characters - rather large. This appears to fail. 

However, I have installed the latest Expat Release 1.95.6 update and it
seems to have worked - from a command line. The problem will now need
to be addressed in the PHP sablot.

Heres the xslt file:

?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xsl:output method=html encoding=iso-8859-1 version=1.0
indent=yes/
xsl:param name=login/
xsl:template match=navigation
xsl:value-of select=./
/xsl:template
/xsl:stylesheet

Heres the xml file1: test.xml

?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE navigation [!ENTITY module1 SYSTEM test2.xml]
navigationmodule1;/navigation

And heres part of the external xml file: test2.xml

?xml version=1.0 encoding=iso-8859-1?
test
![CDATA[
textetxtetxtäåöåäö ... 276,946 Bytes ... ]]
/test

Well these are examples but in the real work I need to pass a huge xml
file with lots of data.

regards



[2003-06-23 17:51:31] [EMAIL PROTECTED]

Could you at least aproximate the size of the xml file at which the
problems begins to occur?



[2003-06-23 06:43:02] andrew at shh dot fi

Description:

The setup is an xml document with several external entities including
xml files.

Using the standard xslt functions in php the problem begins when the
filesize exceed a limit (don't know what the size is unless I start
couting all the includes). By choopping out a number of lines from the
files the problem is OK.

Its not about structure as this works OK in MsXML plus other packages
like XML Spy. The problem is definately with the sablot/expat
somewhere.

I am not sure whether its a combination of entities and filesize or
just filesize.

What appears to be happening is some kind of cache that chops the end
off therefore giving an error 3 which is an no element found error.

Perhaps the problem is with expat? Any ideas?

Reproduce code:
---
?

$xml = file://.getcwd().\\index.xml;
$xsl = file://.getcwd().\\text.xsl;

//create the processor
$my_xslt = xslt_create();

//process the file and echo the result
$result = xslt_process($my_xslt,$xml,$xsl);

if (!$result) {
print Error Number: .xslt_errno($my_xslt);
print xslt_error($my_xslt);
}

//free the processor
xslt_free($my_xslt);

print htmlspecialchars($result);


?

Expected result:

A load of text 

Actual result:
--
Warning: Sablotron error on line 293: XML parser error 3: no element
found in E:\projects\studybuilder\parse.php on line 12
Error Number: 2
XML parser error 3: no element found





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



#24653 [Opn]: Error in GET

2003-07-14 Thread minetto at unochapeco dot rct-sc dot br
 ID:   24653
 User updated by:  minetto at unochapeco dot rct-sc dot br
 Reported By:  minetto at unochapeco dot rct-sc dot br
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4CVS-2003-07-14 (stable)
 New Comment:

In /var/log/apache/error_log :

/root/php4-STABLE-200307102330/main/main.c(1718) : Bailed out without a
bailout address!

I dont´t know if is related.


Previous Comments:


[2003-07-14 17:59:19] minetto at unochapeco dot rct-sc dot br

Description:

When i use the link :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codAcervo=115621

the page is not find. If i use :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codacervo=115621

with (codacervo=) works.

My info :

PHP Version 4.3.3RC2-dev
Conectiva Linux 9.0
Oracle client 9.2






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



#24655 [NEW]: unable to set register_global on I am using apache 1.3.x as my web server

2003-07-14 Thread kingquattro at comcast dot net
From: kingquattro at comcast dot net
Operating system: Windows xp
PHP version:  4.3.2
PHP Bug Type: PHP options/info functions
Bug description:  unable to set register_global on I am using apache 1.3.x as my web 
server

Description:

I am testing out this ecommerce solution called oscommerce, and it
requires register_global on, I made the changed in php.ini file which is
stored in c:\windows dir. I can't figure out why my brower mozilla and
IE give me the same error, which is 'FATAL ERROR: register_globals is
disabled in php.ini, please enable it!' can any one help me please. I am
usign php 4.3.x and I also downloaded the latest snapshot, but it still
doesn't work. Any help will be great


-- 
Edit bug report at http://bugs.php.net/?id=24655edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24655r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24655r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24655r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24655r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24655r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24655r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24655r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24655r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24655r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24655r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24655r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24655r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24655r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24655r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24655r=gnused



#24597 [Bgs]: Writing error_log w/o write permissions sends Apache to 100%CPU/Seg faults

2003-07-14 Thread jordan at tumyeto dot net
 ID:   24597
 User updated by:  jordan at tumyeto dot net
 Reported By:  jordan at tumyeto dot net
 Status:   Bogus
 Bug Type: Apache related
 Operating System: RedHat 2.4.7-10smp
 PHP Version:  4.3.2
 New Comment:

More detail:
php_errors.log gets created in the home user's public_html directory.

/home/username/public_html/php_errors.log

If the Apache user is not given write access to 
/home/username/public_html then this crash happens.  as soon as i do
chmod a+w /home/username/public_html, the problem goes away.  Are you
sure you've followed all of these requirments, and you still can't
reproduce it?


Previous Comments:


[2003-07-13 22:22:56] [EMAIL PROTECTED]

I still can't reproduce this. (using latest stable CVS)




[2003-07-10 21:39:05] jordan at tumyeto dot net

Try these php.ini settings:

display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 0
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
error_log = php_errors.log

I get the errors with these settings.  Setting log_errors and
track_errors to OFF makes the problem go away.



[2003-07-10 19:58:32] [EMAIL PROTECTED]

I can't reproduce this.




[2003-07-10 18:14:41] jordan at tumyeto dot net

Description:

Summary: If the directory containing error_log is not writeable, Apache
gets stuck taking 100% CPU.

Detail:
I recently set log_errors = On in php.ini, and began receiving a TON of
[notice] child pid 15591 exit signal Segmentation fault (11) in my
Apache error_log.  In addition, a ton of Allowed memory size of
8388608 bytes exhausted (tried to allocate 2 bytes) began showing up
as well.  Even worse, Apache child threads would shoot up to 100% CPU
and over time 5-6 threads would all be fighting for that 100%, causing
page serve problems.

I come to find out that the directoy that error_log was set to go to
was not writeable by the webserver user.  As soon as I make the
directory writeable (or turn off log_errors), all problems go away and
the server returns to normal operations.

'./configure' '--prefix=/usr/local'
'--with-apache=/usr/local/Apachetoolbox-1.5.66/apache_1.3.27'
'--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx'
'--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit'
'--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt'
'--with-t1lib=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-zlib-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr/local'
'--with-imap=/usr/sbin' '--with-openssl=/usr' '--with-gd'
'--with-zlib-dir=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr'
'--with-mysql' '--with-ldap' '--with-kerberos=/usr/kerberos'

Reproduce code:
---
1) Enable log_errors in php.ini
2) Set error_log to a directory not writeable by the webuser.
3) Create some php errors that you would expect to be logged into
error_log.
4) Send a lot of traffic to the server, watch your Apache's error_log
and watch Apache threads shoot up to 100% CPU.

Expected result:

If error_log cannot be written, abort instead of taking down Apache.

Actual result:
--
[notice] child pid 15591 exit signal Segmentation fault (11)

Allowed memory size of 8388608 bytes exhausted (tried to allocate 2
bytes)






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



#24655 [Opn-Bgs]: unable to set register_global on I am using apache 1.3.x as my web server

2003-07-14 Thread philip
 ID:   24655
 Updated by:   [EMAIL PROTECTED]
 Reported By:  kingquattro at comcast dot net
-Status:   Open
+Status:   Bogus
 Bug Type: PHP options/info functions
 Operating System: Windows xp
 PHP Version:  4.3.2
 New Comment:

You aren't editing the proper php.ini and/or restarting Apache after
changes.  Status-bogus.

http://us2.php.net/manual/en/faq.installation.php#faq.installation.findphpini



Previous Comments:


[2003-07-14 19:12:34] kingquattro at comcast dot net

Description:

I am testing out this ecommerce solution called oscommerce, and it
requires register_global on, I made the changed in php.ini file which
is stored in c:\windows dir. I can't figure out why my brower mozilla
and IE give me the same error, which is 'FATAL ERROR: register_globals
is disabled in php.ini, please enable it!' can any one help me please.
I am usign php 4.3.x and I also downloaded the latest snapshot, but it
still doesn't work. Any help will be great






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



#24597 [Bgs]: Writing error_log w/o write permissions sends Apache to 100%CPU/Seg faults

2003-07-14 Thread sniper
 ID:   24597
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jordan at tumyeto dot net
 Status:   Bogus
 Bug Type: Apache related
 Operating System: RedHat 2.4.7-10smp
 PHP Version:  4.3.2
 New Comment:

Yes, I'm sure, and no, I can't reproduce it using latest stable CVS
checkout.




Previous Comments:


[2003-07-14 19:16:54] jordan at tumyeto dot net

More detail:
php_errors.log gets created in the home user's public_html directory.

/home/username/public_html/php_errors.log

If the Apache user is not given write access to 
/home/username/public_html then this crash happens.  as soon as i do
chmod a+w /home/username/public_html, the problem goes away.  Are you
sure you've followed all of these requirments, and you still can't
reproduce it?



[2003-07-13 22:22:56] [EMAIL PROTECTED]

I still can't reproduce this. (using latest stable CVS)




[2003-07-10 21:39:05] jordan at tumyeto dot net

Try these php.ini settings:

display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 0
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
error_log = php_errors.log

I get the errors with these settings.  Setting log_errors and
track_errors to OFF makes the problem go away.



[2003-07-10 19:58:32] [EMAIL PROTECTED]

I can't reproduce this.




[2003-07-10 18:14:41] jordan at tumyeto dot net

Description:

Summary: If the directory containing error_log is not writeable, Apache
gets stuck taking 100% CPU.

Detail:
I recently set log_errors = On in php.ini, and began receiving a TON of
[notice] child pid 15591 exit signal Segmentation fault (11) in my
Apache error_log.  In addition, a ton of Allowed memory size of
8388608 bytes exhausted (tried to allocate 2 bytes) began showing up
as well.  Even worse, Apache child threads would shoot up to 100% CPU
and over time 5-6 threads would all be fighting for that 100%, causing
page serve problems.

I come to find out that the directoy that error_log was set to go to
was not writeable by the webserver user.  As soon as I make the
directory writeable (or turn off log_errors), all problems go away and
the server returns to normal operations.

'./configure' '--prefix=/usr/local'
'--with-apache=/usr/local/Apachetoolbox-1.5.66/apache_1.3.27'
'--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx'
'--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit'
'--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt'
'--with-t1lib=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-zlib-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr/local'
'--with-imap=/usr/sbin' '--with-openssl=/usr' '--with-gd'
'--with-zlib-dir=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr'
'--with-mysql' '--with-ldap' '--with-kerberos=/usr/kerberos'

Reproduce code:
---
1) Enable log_errors in php.ini
2) Set error_log to a directory not writeable by the webuser.
3) Create some php errors that you would expect to be logged into
error_log.
4) Send a lot of traffic to the server, watch your Apache's error_log
and watch Apache threads shoot up to 100% CPU.

Expected result:

If error_log cannot be written, abort instead of taking down Apache.

Actual result:
--
[notice] child pid 15591 exit signal Segmentation fault (11)

Allowed memory size of 8388608 bytes exhausted (tried to allocate 2
bytes)






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



#24653 [Opn-Fbk]: Error in GET

2003-07-14 Thread sniper
 ID:   24653
 Updated by:   [EMAIL PROTECTED]
 Reported By:  minetto at unochapeco dot rct-sc dot br
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4CVS-2003-07-14 (stable)
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.



Previous Comments:


[2003-07-14 19:07:03] minetto at unochapeco dot rct-sc dot br

In /var/log/apache/error_log :

/root/php4-STABLE-200307102330/main/main.c(1718) : Bailed out without a
bailout address!

I dont´t know if is related.



[2003-07-14 17:59:19] minetto at unochapeco dot rct-sc dot br

Description:

When i use the link :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codAcervo=115621

the page is not find. If i use :

http://www.unochapeco.edu.br/biblioteca/php/pbasbi2.php?codacervo=115621

with (codacervo=) works.

My info :

PHP Version 4.3.3RC2-dev
Conectiva Linux 9.0
Oracle client 9.2






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



#24592 [Opn-Fbk]: exit signal Segmentation fault (11)

2003-07-14 Thread sniper
 ID:   24592
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jhuston at cs dot umn dot edu
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Sparc Solaris 9
 PHP Version:  4.3.3RC2-dev
 New Comment:

Can you please try this configure line with fresh snapshot:

# ./configure --disable-all --disable-cgi --enable-session

And run the test script like this:

# sapi/cli/php -n test.php

Does it still crash..?
 


Previous Comments:


[2003-07-14 07:28:28] jhuston at cs dot umn dot edu

register_globals is off.



[2003-07-13 22:49:15] [EMAIL PROTECTED]

Do you have register_globals ON or OFF ?




[2003-07-10 14:23:19] jhuston at cs dot umn dot edu

I downloaded the CVS snapshot and compiled it with same configure
options.  It is still getting the same bus error as described earlier. 
I ran a test on test.php (same code as i posted earlier).

[EMAIL PROTECTED] gradebook]% php -v
PHP 4.3.3RC2-dev (cli) (built: Jul 10 2003 13:24:53)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] gradebook]% php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.
Bus error

Then I ran it on gdb again and it still produced same error message as
mentioned earlier.

[EMAIL PROTECTED] gradebook]% gdb php
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 sparc-sun-solaris2.8...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.

Program received signal SIGSEGV, Segmentation fault.
0x135170 in _efree (ptr=0x2c42a0)
at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
259 /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c: No such
file or directory.
(gdb) where
#0  0x135170 in _efree (ptr=0x2c42a0)
at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
#1  0x94e98 in migrate_global (ht=0x332228, pos=0x1)
at /home/src/php4-STABLE-200307101730/ext/session/session.c:640
#2  0x94fb8 in php_session_save_current_state ()
at /home/src/php4-STABLE-200307101730/ext/session/session.c:670
#3  0x97b24 in php_session_flush ()
at /home/src/php4-STABLE-200307101730/ext/session/session.c:1593
#4  0x97b54 in zm_deactivate_session (type=0, module_number=4)
at /home/src/php4-STABLE-200307101730/ext/session/session.c:1607
#5  0x148d7c in module_registry_cleanup (module=0x2f0ba8)
at /home/src/php4-STABLE-200307101730/Zend/zend_API.c:1167
#6  0x14b044 in zend_hash_apply (ht=0x2c57a4, 
apply_func=0x148d40 module_registry_cleanup)
at /home/src/php4-STABLE-200307101730/Zend/zend_hash.c:688
#7  0x145b28 in zend_deactivate_modules ()
at /home/src/php4-STABLE-200307101730/Zend/zend.c:651
#8  0x11600c in php_request_shutdown (dummy=0x0)
at /home/src/php4-STABLE-200307101730/main/main.c:981
#9  0x1616e8 in main (argc=2, argv=0xffbff674)
at /home/src/php4-STABLE-200307101730/sapi/cli/php_cli.c:874



[2003-07-10 12:13:08] jhuston at cs dot umn dot edu

During the course of writing a shorter script, I discovered a possible
cause of bus error or segmentation fault.  When assigning $_SESSION

#24656 [NEW]: Arrays not accepted transmitted by HTTP GET/POST

2003-07-14 Thread kapp at bigping dot de
From: kapp at bigping dot de
Operating system: UNIX/Linux but probabely all
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: Unknown/Other Function
Bug description:  Arrays not accepted transmitted by HTTP GET/POST

Description:

Normally when you have a 'select-array' in a HTML-form 
using the 'multiple=multiple-Option' you should get 
back an array in PHP.

Unfortunately PHP5 gives back only the last selected 
value instead of an array containing all the selected 
values.

With the supplied HTML/PHP Code you can reproduce this.

Reproduce code:
---
?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   
http://www.w3.org/TR/2000/REC-xhtml1-2126/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=de lang=de
head
meta http-equiv=content-type content=text/html; charset=iso-8859-1
/
titleUntitled/title
/head
body
form action=form.html method=post
select name=myvar multiple=multiple
option label=first value=num1/option
option label=second value=num2/option
option label=third value=num3/option
option label=fourth value=num4/option
option label=fifth value=num5/option
/select
input type=submit /
/form
p
?php print_r ($_POST); ?
/p
/body
/html

Expected result:

I expect to get back an array containing all the 
selected values.

Actual result:
--
Actually, only the last selected value is given back.

-- 
Edit bug report at http://bugs.php.net/?id=24656edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24656r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24656r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24656r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24656r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24656r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24656r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24656r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24656r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24656r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24656r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24656r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24656r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24656r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24656r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24656r=gnused



#24656 [Opn-Bgs]: Arrays not accepted transmitted by HTTP GET/POST

2003-07-14 Thread philip
 ID:   24656
 Updated by:   [EMAIL PROTECTED]
 Reported By:  kapp at bigping dot de
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: UNIX/Linux but probabely all
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

PHP expects an array for that, status-bogus.

http://us2.php.net/manual/en/faq.html.php#faq.html.select-multiple



Previous Comments:


[2003-07-14 21:25:47] kapp at bigping dot de

Description:

Normally when you have a 'select-array' in a HTML-form 
using the 'multiple=multiple-Option' you should get 
back an array in PHP.

Unfortunately PHP5 gives back only the last selected 
value instead of an array containing all the selected 
values.

With the supplied HTML/PHP Code you can reproduce this.

Reproduce code:
---
?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   
http://www.w3.org/TR/2000/REC-xhtml1-2126/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=de lang=de
head
meta http-equiv=content-type content=text/html;
charset=iso-8859-1 /
titleUntitled/title
/head
body
form action=form.html method=post
select name=myvar multiple=multiple
option label=first value=num1/option
option label=second value=num2/option
option label=third value=num3/option
option label=fourth value=num4/option
option label=fifth value=num5/option
/select
input type=submit /
/form
p
?php print_r ($_POST); ?
/p
/body
/html

Expected result:

I expect to get back an array containing all the 
selected values.

Actual result:
--
Actually, only the last selected value is given back.





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



#24435 [Com]: PHP has encountered an Access Violation at 77FC8FE1

2003-07-14 Thread alantan at tagnetwork dot net
 ID:   24435
 Comment by:   alantan at tagnetwork dot net
 Reported By:  wells at webtechina dot com
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows 2000 Server with SP3
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

I have the same problem except I have something else...
Every time PHP fails because of this access violation the script always
calls a MySQL function... only restarting IIS will fix the problem.

PS: I checked all DLLS and reinstalled, it still does not work.


Previous Comments:


[2003-07-01 11:29:31] [EMAIL PROTECTED]

Make sure you really are using correct dlls.
Easiest/safest is to delete ALL existing PHP dlls/binaries
and then install the new ones.




[2003-07-01 08:04:58] wells at webtechina dot com

Description:

run this script:
?phpinfo();?

show me the normal result,

but refresh servral times (over 20)

show me this message:
PHP has encountered an Access Violation at 77FC8FE1

restart IIS will solve this problem

Reproduce code:
---
?phpinfo();?

Expected result:

the infomation of my php web server

Actual result:
--
PHP has encountered an Access Violation at 77FC8FE1






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



#19822 [Com]: Server error using mail() function and ISAPI

2003-07-14 Thread shovey at frontiernet dot net
 ID:   19822
 Comment by:   shovey at frontiernet dot net
 Reported By:  logico at avantel dot net
 Status:   No Feedback
 Bug Type: IIS related
 Operating System: Windows 2000 Server SP3
 PHP Version:  4.2.3
 New Comment:

I am getting the same exact problem.
I am running a Nuke 6.5 powered site and any time the php performs the
mail function I get the same exact error about LF.

I used that sample code for mail.php both waysin original
format and then modified it for \r\n and it worked perfectly after
replacing the \n  with \r\n.

How can I easily fix this issue without editing the source for all of
my nuke web site just so sendmail works?


By the way, I am running a web site on my local computer and have no
domain registered. I am on a dynamic IP. So if you e-mail me on the day
you want to check out my error, I will reply back with the current ip
address to connect to.

Thank you in advance,
Steve


Previous Comments:


[2002-10-26 01:00:09] php-bugs at lists dot php dot net

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2002-10-10 10:39:14] [EMAIL PROTECTED]

You are using \n instead of \r\n.

The page http://cr.yp.to/docs/smtplf.html exactly describes this
issue.

One thing which bothers me is that actually PHPs sendmail code should
take care of this issue.

Can you post an url pointing to the minimal sourcecode you're trying to
send?

Also which SMTP are you using (can I use it for testing too) ?



[2002-10-10 10:33:40] logico at avantel dot net

Thank you! using the snap shot actually helped me out a little bit,
right now I know the problem:

Warning: mail() [function.mail]: SMTP server response: 451 See
http://pobox.com/~djb/docs/smtplf.html. in D:\Web\phpcollab\mail.php on
line 3

But now I need to know how to solve it!, I've been using PHP for a
while and this is the first this happens to me, so I suppose that is a
Win2k SP3 IIS problem.

Thank you in advance!



[2002-10-10 02:36:36] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

The latest NON-STABLE snapshot contains a more improved error handling
so instead of the useless server error you will get the real error
message from the server.

Looking briefly at your line I think you're either missing an SMTP
directive or the sendmail_from directive which both are required for
Win32.



[2002-10-08 17:22:22] [EMAIL PROTECTED]

Are you sure your php.ini file is read by PHP?
Check from the phpinfo() output to what value SMTP is set.




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

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



#24657 [NEW]: php.ini location different for CLI

2003-07-14 Thread phyre at rogers dot com
From: phyre at rogers dot com
Operating system: Linux
PHP version:  4.3.2
PHP Bug Type: Feature/Change Request
Bug description:  php.ini location different for CLI

Description:

So, as many people I'm sure do, I require much different options (ie: safe
mode, etc) for running under my web server than running from the command
line, yet I can only choose one ini file.  Various add-ons such as
ZendDebugger I don't like starting up from the CLI.

  I assume it wouldn't be hard to add a --with-cli-config-file-path which
works for the CLI only?

I place php.ini in my apache config directory, which has restrictive
rights.  Hence, an end user can't load it.  So PHP needs to be compiled in
two pieces (I need to then make another build and ONLY install the CLI).

  Seems like this could be a simple fix and it seems to make sense.  By
default, it should point to the normal config path
(--with-config-file-path).




-- 
Edit bug report at http://bugs.php.net/?id=24657edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24657r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24657r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24657r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24657r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24657r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24657r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24657r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24657r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24657r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24657r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24657r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24657r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24657r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24657r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24657r=gnused



#24592 [Fbk-Opn]: exit signal Segmentation fault (11)

2003-07-14 Thread jhuston at cs dot umn dot edu
 ID:   24592
 User updated by:  jhuston at cs dot umn dot edu
 Reported By:  jhuston at cs dot umn dot edu
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Sparc Solaris 9
 PHP Version:  4.3.3RC2-dev
 New Comment:

Yes, it still crashes.

[EMAIL PROTECTED] php4-STABLE-200307150330]# sapi/cli/php -n
/home/projects/gradebook/test.php
It didn't crash at all yet.
Bus error
[EMAIL PROTECTED] php4-STABLE-200307150330]# gdb sapi/cli/php
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 sparc-sun-solaris2.8...
(gdb) run -n /home/projects/gradebook/test.php
Starting program: /home/src/php4-STABLE-200307150330/sapi/cli/php -n
/home/projects/gradebook/test.php
It didn't crash at all yet.

Program received signal SIGSEGV, Segmentation fault.
0x9f394 in _efree (ptr=0x10a6d8)
at /home/src/php4-STABLE-200307150330/Zend/zend_alloc.c:259
259 REMOVE_POINTER_FROM_LIST(p);
(gdb) where
#0  0x9f394 in _efree (ptr=0x10a6d8)
at /home/src/php4-STABLE-200307150330/Zend/zend_alloc.c:259
#1  0x237b4 in migrate_global (ht=0x13a558, pos=0x1)
at /home/src/php4-STABLE-200307150330/ext/session/session.c:640
#2  0x238b8 in php_session_save_current_state ()
at /home/src/php4-STABLE-200307150330/ext/session/session.c:670
#3  0x26058 in php_session_flush ()
at /home/src/php4-STABLE-200307150330/ext/session/session.c:1593
#4  0x26088 in zm_deactivate_session (type=0, module_number=2)
at /home/src/php4-STABLE-200307150330/ext/session/session.c:1607
#5  0xb14b8 in module_registry_cleanup (module=0x12d1e8)
at /home/src/php4-STABLE-200307150330/Zend/zend_API.c:1167
#6  0xb3498 in zend_hash_apply (ht=0x10bb2c, 
apply_func=0xb147c module_registry_cleanup)
at /home/src/php4-STABLE-200307150330/Zend/zend_hash.c:688
#7  0xae530 in zend_deactivate_modules ()
at /home/src/php4-STABLE-200307150330/Zend/zend.c:651
#8  0x83060 in php_request_shutdown (dummy=0x0)
at /home/src/php4-STABLE-200307150330/main/main.c:981
#9  0xc883c in main (argc=3, argv=0xffbff5c4)
at /home/src/php4-STABLE-200307150330/sapi/cli/php_cli.c:874


Previous Comments:


[2003-07-14 21:05:32] [EMAIL PROTECTED]

Can you please try this configure line with fresh snapshot:

# ./configure --disable-all --disable-cgi --enable-session

And run the test script like this:

# sapi/cli/php -n test.php

Does it still crash..?
 



[2003-07-14 07:28:28] jhuston at cs dot umn dot edu

register_globals is off.



[2003-07-13 22:49:15] [EMAIL PROTECTED]

Do you have register_globals ON or OFF ?




[2003-07-10 14:23:19] jhuston at cs dot umn dot edu

I downloaded the CVS snapshot and compiled it with same configure
options.  It is still getting the same bus error as described earlier. 
I ran a test on test.php (same code as i posted earlier).

[EMAIL PROTECTED] gradebook]% php -v
PHP 4.3.3RC2-dev (cli) (built: Jul 10 2003 13:24:53)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] gradebook]% php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.
Bus error

Then I ran it on gdb again and it still produced same error message as
mentioned earlier.

[EMAIL PROTECTED] gradebook]% gdb php
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 sparc-sun-solaris2.8...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard 

#21286 [Com]: error while compile with IMAP

2003-07-14 Thread support at atlex dot ru
 ID:   21286
 Comment by:   support at atlex dot ru
 Reported By:  idban at avidaim dot com
 Status:   Closed
 Bug Type: IMAP related
 Operating System: rh 7.3
 PHP Version:  4.3.0
 New Comment:

php-4.2.3 and php4-STABLE-200307150330
Also while compiling PHP with IMAP support, with an option -
with-openssl, I receive the error:
 checking whether IMAP works... no
 configure: error: build test failed. Please 
check the config.log for details.
 make: *** No targets specified and no makefile found.  Stop.
 make: *** No rule to make target `install'.  Stop.



config.log

 configure:35376: checking for IMAP support
 configure:35734: checking for pam_start in -lpam

 configure:35753: gcc -o conftest -g -O2 nbs
p;

 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lpam
 

 -lX11 -lXpm -lpng -lz -ljpeg -lexslt -lxsltb
reakpoint -lxml2

 -lxslt -lz -lcurl -lz -lresolv
 -lm -ldl -lnsl  -lcurl -lz -lssl -lcryp
to -ldl -lz -lxml2

 -lz -liconv -lm 15
 configure:35781: checking for crypt in -lcrypt
 configure:35800: gcc -o conftest -g -O2 nbs
p;

 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lcry
pt 

 -lpam -lX11 -lXpm -lpng -lz -ljpeg -lexsltn
bsp;-lxsltbreakpoint

 -lxml2 -lxslt -lz -lcurl -lz
 -lresolv -lm -ldl -lnsl  -lcurl -lz -ls
sl -lcrypto -ldl -lz

 -lxml2 -lz -liconv -lm 15
 configure:36206: checking whether SSL libraries a
re needed

 for c-client
 configure:36336: gcc -o conftest -g -O2 nbs
p;

 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib
 -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c
 -lc-client  -lssl -lcrypto  -lcrypt -lpamnb
sp;-lX11

 -lXpm -lpng -lz -ljpeg -lexslt -lxsltbreakpointn
bsp;-lxml2

 -lxslt -lz -lcurl -lz -lresolv -lm -ldl 
;-lnsl  -lcurl -lz -lssl

 -lcrypto -ldl -lz -lxml2 -lz -liconv -lmnbs
p;-lgssapi_krb5 -lkrb5

 -lk5crypto
 -lcom_err 15

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o):
 In function `ssl_onceonlyinit':
 /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:286:
 the use of `tmpnam' is dangerous, betternbs
p;use `mkstemp'

 configure: failed program was:
 #line 36311 configure
 #include confdefs.h

 void mm_log(void){}
 void mm_dlog(void){}
 void mm_flags(void){}
 void mm_fatal(void){}
 void mm_critical(void){}
 void mm_nocritical(void){}
 void mm_notify(void){}
 void mm_login(void){}
 void mm_diskerror(void){}
 void mm_status(void){}
 void mm_lsub(void){}
 void mm_list(void){}
 void mm_exists(void){}
 void mm_searched(void){}
 void mm_expunged(void){}
 char auth_gssapi_valid();
 int main() {
   auth_gssapi_valid();
   return 0;
 }
  
 configure:36362: checking whether IMAP works
 configure:36395: gcc -o conftest -g -O2 nbs
p;

 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib
 -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c
 -lc-client  -lssl -lcrypto  -lcrypt -lpamnb
sp;-lX11

 -lXpm -lpng -lz -ljpeg -lexslt -lxsltbreakpointn
bsp;-lxml2

 -lxslt -lz -lcurl -lz -lresolv -lm -ldl 
;-lnsl  -lcurl -lz -lssl

 -lcrypto -ldl -lz -lxml2 -lz -liconv -lmnbs
p;-lgssapi_krb5 -lkrb5

 -lk5crypto
 -lcom_err 15

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o):
 In function `ssl_onceonlyinit':
 /usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:286:
 the use of `tmpnam' is dangerous, betternbs
p;use `mkstemp'

 configure: failed program was:
 #line 36370 configure
 #include confdefs.h

 void mm_log(void){}
 void mm_dlog(void){}
 void mm_flags(void){}
 void mm_fatal(void){}
 void mm_critical(void){}
 void mm_nocritical(void){}
 void mm_notify(void){}
 void mm_login(void){}
 void mm_diskerror(void){}
 void mm_status(void){}
 void mm_lsub(void){}
 void mm_list(void){}
 void mm_exists(void){}
 void mm_searched(void){}
 void mm_expunged(void){}
 char mail_newbody();
 int main() {
   mail_newbody();
   return 0;
 }
  
Why and what should I do to resolve the problem? I do need php with
imap support.


Previous Comments:


[2003-01-03 07:24:53] idban at avidaim dot com

i try install with apache2, GOD!! they working. 
thanks for all help, perhaps i decide to use apache2



[2002-12-30 09:36:15] idban at avidaim dot com

ok, installation done, but now apache produce segfault, this is not
happen on 4.2.3, i downgrade again to 4.2.3 :(

[Mon Dec 30 16:22:43 2002] [notice] Apache/1.3.27 (Unix) AuthMySQL/2.20
mod_perl/1.27 DAV/1.0.3 PHP/4.3.0 mod_ssl/2.8.11 OpenSSL/0.9.6h
configured -- resuming normal operations
[Mon Dec 30 16:22:43 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Dec 30 16:23:15 2002] [notice] child pid 12517 exit signal
Segmentation fault (11)
[Mon Dec 30 16:23:15 2002] [notice] child pid 12516 exit signal
Segmentation fault