[PHP-DEV] PHP 4.0 Bug #8772 Updated: user level session storage fails when register_globals off

2001-02-03 Thread serge

ID: 8772
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Session related
Description: user level session storage fails when register_globals off

Looks like someone else is having the same problem.

See bug number 9002

Serge


Previous Comments:
---

[2001-01-25 14:39:36] [EMAIL PROTECTED]
Below are my php.ini settings and Virtual Host settings
Serge

# php.ini file
[PHP]

engine  =   On 
short_open_tag  =   On
asp_tags=   Off
precision   =   14
y2k_compliance  =   Off
output_buffering= Off
output_handler  =
implicit_flush  = Off
allow_call_time_pass_reference  = Off

; Safe Mode
safe_mode   =   Off
safe_mode_exec_dir  =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions   =  
 

#zend_optimizer.optimization=15
#zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"

zend_extension="/usr/local/Zend/lib/ZendDebugger.so"

; Colors for Syntax Highlighting mode.  Anything that's acceptable in font color=??? 
would work.
highlight.string=   #DD
highlight.comment   =   #FF8000
highlight.keyword   =   #007700
highlight.bg=   #FF
highlight.default   =   #BB
highlight.html  =   #00

; Misc
expose_php  =   Off

;;;
; Resource Limits ;
;;;

max_execution_time = 60
memory_limit = 8M

error_reporting =   E_ALL  ~E_NOTICE  ~E_WARNING
display_errors  =   On
display_startup_errors = Off
log_errors  =   Off
track_errors=   On
;error_prepend_string = "font color=ff"   
;error_append_string = "/font"
;error_log  =   filename
;error_log  =   syslog
warn_plus_overloading   =   Off


;
; Data Handling ;
;
variables_order =   "GPCS"
register_globals=   Off
register_argc_argv  =   Off
post_max_size   =   8M
gpc_order   =   "GPC"

; Magic quotes
magic_quotes_gpc=   Off
magic_quotes_runtime=   Off
magic_quotes_sybase =   Off

; automatically add files before or after any PHP document
auto_prepend_file   =
auto_append_file=

; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"

;
; Paths and Directories ;
;
include_path=
doc_root=
user_dir=
extension_dir   =   ./
enable_dl   = On


; File Uploads ;

file_uploads= On
;upload_tmp_dir =
upload_max_filesize = 15M


;;
; Fopen wrappers ;
;;
allow_url_fopen = On


;;;
; Module Settings ;
;;;

[Syslog]
define_syslog_variables = Off

[mail function]
SMTP=   localhost
sendmail_from   =   [EMAIL PROTECTED]
sendmail_path   =   '/var/qmail/bin/qmail-inject -N'

[Debugger]
debugger.host   =   localhost
debugger.port   =   7869
debugger.enabled=   False

[Logging]
;logging.method= db
;logging.directory = /path/to/log/directory

[Java]

[SQL]
sql.safe_mode   =   Off

[ODBC]
odbc.allow_persistent   =   On
odbc.check_persistent  =On
odbc.max_persistent =   -1
odbc.max_links  =   -1
odbc.defaultlrl =   4096
odbc.defaultbinmode =   1

[MySQL]
mysql.allow_persistent  =   On
mysql.max_persistent=   -1
mysql.max_links =   -1
mysql.default_port  =   
mysql.default_socket=
mysql.default_host  =
mysql.default_user  =
mysql.default_password  =

[mSQL]
msql.allow_persistent   =   On
msql.max_persistent = -1
msql.max_links  = -1

[PostgresSQL]
pgsql.allow_persistent  =   On
pgsql.max_persistent=   -1
pgsql.max_links = -1

[Sybase]
sybase.allow_persistent =   On
sybase.max_persistent   =   -1
sybase.max_links=   -1
;sybase.interface_file  =   "/usr/sybase/interfaces"
sybase.min_error_severity   =   10
sybase.min_message_severity =   10
sybase.compatability_mode   = Off

[Sybase-CT]
sybct.allow_persistent  =   On
sybct.max_persistent=   -1
sybct.max_links =   -1
sybct.min_server_severity   =   10
sybct.min_client_severity   =   10

[bcmath]
bcmath.scale=   0

[browscap]

[Informix]
ifx.default_host=   

[PHP-DEV] PHP 4.0 Bug #9014 Updated: Content-Type included in uploaded files

2001-02-03 Thread sveinrn

ID: 9014
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Description: Content-Type included in uploaded files

Found updated files php-4.0.4pl1-5.i386.rpm under
http://people.redhat.com/nalin/test/
that solved my problem! Guess you can close this one!


Previous Comments:
---

[2001-01-30 17:49:43] [EMAIL PROTECTED]
I am using RedHat 7 with all the latest bugfixes and security fixes ("up2date -u").

This weekend I updated to RedHat's latest PHP version, and now all files I upload is 
longer than they should have been and includes a line at the top that looks like 
"Content-Type: image/pjpeg" plus a blank line. 

Here is the shortest possible script ("upload.php3") to display the behaviour:

HTLMBODY
FORM ENCTYPE="multipart/form-data" ACTION="upload.php3" METHOD=POST
INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10"
Send this file: INPUT NAME="userfile" TYPE="file"
INPUT TYPE="submit" VALUE="Send File"
/FORM
?
echo "$userfile=".$userfile."br";
echo "$userfile_name=".$userfile_name."br";
echo "$userfile_size=".$userfile_size."br";
echo "$userfile_type=".$userfile_type."br";
echo "is_uploaded_file=".is_uploaded_file($userfile)."br";
copy($userfile, "testfile");
?
/BODY/HTML

Here is the output produced for a sample jpeg of 41052 bytes:

$userfile=/tmp/phpHaOmjN
$userfile_name=J0144216.JPG
$userfile_size=41081
$userfile_type=
is_uploaded_file=1

As you can see, the file is 29 bytes longer than it should be...

Here is what I get when pressing the "send file" button without specifying a filename:

$userfile=/tmp/phpJryFlz
$userfile_name=
$userfile_size=42
$userfile_type=
is_uploaded_file=1

The file "uploaded" looks like this:
*** cut here ***
Content-Type: application/octet-stream

*** cut here ***


It seems to me that the content type description is ending up in the uploaded file 
rather than in the _type variable? I have changed my config files as little as 
possible, and I can't imagine I have been able to do something this stupid all on my 
own? 


Svein Roar Nilsen


---


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9029 Updated: preg_split inconsistency

2001-02-03 Thread avsm

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

Functionality added in 4.0.5-dev by andrei@

Previous Comments:
---

[2001-01-31 09:17:43] [EMAIL PROTECTED]
I'm afraid that doesn't seem to work either (I tried that, but neglected to mention it 
in my original report)

[avsm@total avsm]$ php -v
4.0.4pl1
[avsm@total avsm]$ cat split.php
?
$a = '(define heshe (if (equal gender "Male") "He" "She")) ';
$b = preg_split('/([\(\)])/', $a);
var_dump($b);
?
[avsm@total avsm]$ php split.php
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html

array(7) {
  [0]=
  string(0) ""
  [1]=
  string(13) "define heshe "
  [2]=
  string(3) "if "
  [3]=
  string(19) "equal gender "Male""
  [4]=
  string(11) " "He" "She""
  [5]=
  string(0) ""
  [6]=
  string(1) " "
}


---

[2001-01-31 08:43:34] [EMAIL PROTECTED]
You have to escape the 's (as per hint from Wico de Leeuw)

---

[2001-01-31 08:13:21] [EMAIL PROTECTED]
While trying to write a simple Scheme parser in PHP, we encountered this problem:

In perl, you can capture the delimiters passed to split() by enclosing the portion 
with brackets, in the regexp.  This does not work in PHP.

For example, here is the perl script, and its output:

#!/usr/bin/perl
use Data::Dumper;

$_ = '(define heshe (if (equal gender "Male") "He" "She")) ';
@b = split /([()])/;
print Dumper(@b);

Output:
$VAR1 = '';
$VAR2 = '(';
$VAR3 = 'define heshe ';
$VAR4 = '(';
$VAR5 = 'if ';
$VAR6 = '(';
$VAR7 = 'equal gender "Male"';
$VAR8 = ')';
$VAR9 = ' "He" "She"';
$VAR10 = ')';
$VAR11 = '';
$VAR12 = ')';
$VAR13 = ' ';

But in PHP:

? $a = '(define heshe (if (equal gender "Male") "He" "She")) ';
$b = preg_split('/([()])/', $a);
var_dump($b); ?

Outputs:
array(7) {
  [0]=
  string(0) ""
  [1]=
  string(13) "define heshe "
  [2]=
  string(3) "if "
  [3]=
  string(19) "equal gender "Male""
  [4]=
  string(11) " "He" "She""
  [5]=
  string(0) ""
  [6]=
  string(1) " "
}

The brackets aren't captured, which makes the Scheme parsing a bit difficult :-)  
There are other ways to do this, of course, but the preg_split() would be the simplest 
and the most efficient way to do it, as far as we can see.

I noticed that the PCRE libraries are only at version 3.0 in PHP, and that 3.4 is 
available from the main site.  I'll try updating to that, and see if it solves this.

---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9085: tar file is corrupted in your web site

2001-02-03 Thread mbinatli

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: *Install and Config
Bug description:  tar file is corrupted in your web site

tar -zxf php4.0.4pl1.tar.gz

-- invalid EOF
etc...

I downloaded 2 times from various connections.



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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9086: auto trans-sid and output_handler

2001-02-03 Thread stefhen

From: [EMAIL PROTECTED]
Operating system: Linux Mandrake 7.2
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  auto trans-sid and output_handler

Sessions auto trans-sid are not working if you enable the content compression
( output_handler = ob_gzhandler ; in the php.ini )

Here is the output of my configure line :
'./configure' '--prefix=/usr/local/php' 
'--with-config-file-path=/usr/local/apache/php/conf' '--enable-ftp' 
'--enable-magic-quotes' '--enable-track-vars' '--with-regex=system' 
'--enable-trans-sid' '--disable-debug' '--enable-pic' '--enable-inline-optimization' 
'--with-zlib' '--with-config-file-path=/etc' '--with-xml' '--without-mysql' 
'--with-apxs=/usr/local/apache/bin/apxs'


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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] popen() on Win32

2001-02-03 Thread Andi Gutmans

Reminder! :)

Andi

At 05:27 PM 1/21/2001 +0100, Derick Rethans wrote:
Hi,

  A couple of guys here said they are working on creating a popen()
  alternative solution for Win32.
  Any progress?

I'm busy with it. I'm making progress indeed. I only have to bring the
code into the PHP source now. BUt it looks good. I'll try to finish it
this week, but it will be a hack, because I don't understand your V_*
macro's quite well. But I assume some devs can assist me with this later
on.

Regards,

Derick Rethans

-
   PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
-
 JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED]
  H.v. Tussenbroekstraat 1 - 6952 BL Dieren - The Netherlands
-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fwd: RE: [PHP-DEV] Bug #8732

2001-02-03 Thread Andi Gutmans

Anyone else bump into something like this?

Andi

Subject: RE: [PHP-DEV] Bug #8732
Date: Fri, 2 Feb 2001 13:54:09 +0100
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [PHP-DEV] Bug #8732
Thread-Index: AcCG63JZ+YNk1p38Q8COcgf0ren1RwGK6w/Q
From: "Edin Kadribasic" [EMAIL PROTECTED]
To: "Andi Gutmans" [EMAIL PROTECTED]

Hi Andi,

I think that you should have enogh info to fix the problem now. Please
see the two attached messages and let me know if that is enough.

Edin
-Original Message-
From: Andi Gutmans [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 5:30 PM
To: Edin Kadribasic
Subject: Re: [PHP-DEV] Bug #8732


Is your /tmp writeable? ls -ld /tmp.
I know it might be an obvious question.

Andi

At 09:55 AM 1/25/2001 +0100, Edin Kadribasic wrote:
 I've tried them all. Even '/bin/sh -c "/bin/mkdir /tmp/test"'. It is
very
 hard to reproduce, because I have the exact same setup on several 5
 machines, and I'm having problems only on one of them.
 
 Server 1: RH 6.1, 2xPIII 550 MHz /* PHP exec functions broken */
 Server 2: RH 6.2, 2xPIII 933 MHz
 Server 3: RH 6.1, 3xPII  450 MHz
 Server 4: RH 6.1, 2XPIII 550 MHz
 Server 5: RH 6.1, 1xPIII 550 MHz
 
 The only config change on the machine, was addition of the second
processor.
 I'm not exactly sure if the problem begun occuring around the time we
 upgraded the machines.
 
 Edin
 
 - Original Message -
 From: "Andi Gutmans" [EMAIL PROTECTED]
 To: "Edin Kadribasic" [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 6:35 AM
 Subject: Re: [PHP-DEV] Bug #8732
 
 
   Will it work with full-path? "/bin/mkdir /tmp/test"?
   I can try and reproduce this evening (my time). If you can send me
an
 Email
   reminder that will help :)
   Andi
  
   At 03:37 AM 1/25/2001 +0100, Edin Kadribasic wrote:
   Sorry for not being more specific, but all those machines are Linux
 (RedHat
   6.1 6.2). Funny part is the site has not been modified in since
4.0.1pl1,
   and all of a sudden decided not to work anymore. Tried with the
latest
   release 4.0.4pl1, recompiled apache (used to be 1.3.9), but to no
avail.
   
   Simple system("mkdir /tmp/test", $r) would fail with $r set to -1.
No
 errors
   or warnings printed.
   
   Edin
   - Original Message -
   From: Andi Gutmans [EMAIL PROTECTED]
   To: Edin Kadribasic [EMAIL PROTECTED]; PHP Development (E-mail)
   [EMAIL PROTECTED]
   Sent: Wednesday, January 24, 2001 7:39 PM
   Subject: Re: [PHP-DEV] Bug #8732
   
   
 Executing external programs right now doesn't work on Windows.
 Hopefully this will be fixed soon.

 Andi

 At 12:14 PM 1/24/2001 +0100, Edin Kadribasic wrote:
 I'm experiencing the same probmlem on one of our 5 production
 servers.
 Exec functions always fail with -1 as the return code. No error
 messages
 or warnings are displayed. Any suggestion on how to find out
what's
 happening?
 
 Edin


 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]


  
  

X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
Received:  from provmail.proventum.dk ([10.0.0.49]) by 
asp-exchange.proventum.net with Microsoft SMTPSVC(5.0.2195.1600); Wed, 31 
Jan 2001 22:39:37 +0100
Received:  by provmail.proventum.dk (Postfix) id 93F6C233BD; Wed, 31 Jan 
2001 23:38:49 +0100 (CET)
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
content-class: urn:content-classes:message
Subject: [PHP-DEV] PHP 4.0 Bug #9040: Exec sets return_val to -1 when 
compiled with "--enable-sigchild"
Date: Wed, 31 Jan 2001 22:38:35 +0100
Message-ID: [EMAIL PROTECTED]
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [PHP-DEV] PHP 4.0 Bug #9040: Exec sets return_val to -1 when 
compiled with "--enable-sigchild"
Thread-Index: AcCLzk9KrFtRXMcUTjClvGg8huthcw==
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.17
PHP version:  4.0.3pl1
PHP Bug Type: Program Execution
Bug description:  Exec sets return_val to -1 when compiled with
"--enable-sigchild"

I was encouraged to submit this as a bug report...

I acutally compiled the source from Debian's archive, with the latest
security fix (which I think it found in 4.0.4pl1).  I was having trouble
with oracle support, so I configured with "--enable-sigchild".  That did
not help my problem.

I finally went back to my older oracle libraries, and was able to get
them to work, but left "--enable-sigchild" configured in.  Then I
noticed that all of my exec functions were setting return_val (the third
parameter) to -1, indicating an error.

I can include an strace of the problem if needed.  I think that the
problem was that there were 2 wait4 system calls, one after another.
The second one would return a -1.  But, I'm not sure, and I'm not much
of a programmer.


[PHP-DEV] PHP 3.0 Bug Summary Report

2001-02-03 Thread php-dev

 PHP 3.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (681 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
8083 Open   3.0.17 causes segm. faults with --enable-versioning
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2629 Feedback   ldap.c fails to compile with PHP3.0.12 and PHP4b2
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of "buf isn't known
2771 Open   bison.exe and the -S option not supported
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
2941 Suspended  compile fails with imap and sybase-ct (other function than reported 
before)
3033 Open   Fatal compile error on functions/ldap.c
3140 Feedback   Compile-Problems with snmp and pdflib
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3611 Open   switch() limitation and gcc invoked instead of cc
3677 Open   files not found
3717 Feedback   multiple definition of  gdImageColorResolve
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
1638 Open   SPARCworks cc warnings (cosmetic)
2935 Open   adition bug id:2900
3151 Open   php.exe compile warnings because of arpa/inet.h
6602 Open   Failure to warn of duplicate class methods
6942 Open   php sockets unusable with irix-OS
6947 Open   all compiler warnings
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
3447 Open   error on dbase_open function, it isn't open on write only or 
read-write mode.
3777 Open   Dbase_create fails to recognize array of arrays
3824 Open   dbase file cannot open by foxpro2
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Open   DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace  dbmDelete return inverse value
6720 Open   persistent "Warning: driver initialization failed" on db_open db2 2.7.7
===[Documentation problem]
2464 Open   install-windows95-nt.html does not agree with inf file
3257 Open   missing file
3279 Open   Reboot
3674 Open   Backreferences need 2 backslashes to work in preg_* functions
4399 Open   With no php3.ini, magic_quotes_gpc is 'Off'.  With one, it's default 
is 'On'.
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   

[PHP-DEV] PHP 4.0 Bug Summary Report

2001-02-03 Thread php-dev

 PHP 4.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (1144 total including feature requests)
===[*Configuration Issues]
7666 Feedback   PHP4 doesn't read php.ini with NT4/IIS
7695 Feedback   Error while accessing php script
7774 Open   PHP_AUTH_USER and PHP_AUTH_PW are set when using external 
authentication.
8238 Feedback   crypt() fails
8295 Open   absolute path in extension= directive in php.ini not recognized
8316 Feedback   cannot set short_open_tags to off
8670 Open   Incorect interpretation session.gc_maxlifetime parameter
8762 Open   No warning when entered nonexistent dll.
8815 Open   allow_fopen_url = On  include("URL") don't work
8848 Open   "open_basedir = /dir/incl" validates "/dir/include" and so on
9000 Open   echo `cat /etc/passwd` -- bypasses open_basedir .
9041 Open   Extra #! at top of web output.
===[*Database Functions]==
8706 Open   Database handle corruption?
===[*Directory/Filesystem functions]
8564 Open   fread generating false errors
8580 Feedback   Fileupload and Database mysql access
8698 Open   freediskspace returns zero when used on a windows 2000 'spanned' 
dynamic drive.
9043 Open   popen returns a 'Resource id #' (non null) when process cannot be 
created.
===[*Function Specific]===
6652 Feedback   include() require() add trailing CRLF
6708 Duplicate  Treatment of ' in htmlspecialchars() function
6839 Analyzed   get metatags
7220 Open   Error Report on Function Arguments
8202 Open   exec("java -cp classpath classname inputArgument"); has no effect
8270 Feedback   problem when including phpinfo() command with session
8297 Feedback   see test program below
8489 Feedback   Function empty() does not work
8563 Open   hebrevc() problems...
8857 Open   microtime() doesn't work after setlocale(LC_NUMERIC,"pl")
8869 Open   phpinfo() returns incorrect Configuration File Path
===[*General Issues]==
3076 Analyzed   system and popen are ok in safe_mode, not backquotes
4761 Assigned   exec, system all give an error on a fork...
6303 Duplicate  make install said libphp4.sl is not a DSO
6338 Feedback   script engine
6426 Duplicate  system() or exec(): unable to fork
6435 Duplicate  can't close session(by session_destroy()) - it write warning
6445 Feedback   problem with opendir
6499 Analyzed   $upload_type[] has wrong size with empty multiple-file uploads
6520 Duplicate  session_destroy() does not work
6542 Duplicate  exec() and system() cannot fork
6617 Open   JVM starts only on 3 requests per httpd
6624 Open   error_log() in registered shutdown function
6644 Duplicate  Test
6685 Analyzed   %20 mis-converted in GET mechanism
6875 Duplicate  upload_tmp_dir in php.ini doesn't work in safe_mode
6982 Open   disable_functions option don't works in Apache config
7134 Duplicate  misbehavior of print and sprintf AGAIN
7136 Duplicate  The binary version of php4.0.2 doesn't support the bindtextdomain 
function.
7243 Duplicate  upload_tmp_dir does not work in safe_mode
7444 Duplicate  General reference problems
7455 Duplicate  Problems with $this in constructor
7525 Duplicate  exec() does not work
7626 Feedback   session saving and loading seem to use different locales
7685 Open   File Upload Fails with Headers in Unexpected Order
7865 Duplicate  exec command
8446 Open   PHP/apache process is in infinite loop or appears to suck CPU
8618 Open   httpd process hangs
8671 Open   Random "Warning: Failed opening..."
9036 Bogus  Non installation of libphp.so
===[*Install and Config]==
6614 Duplicate  configure does not recognize sys/socket.h
7280 Open   global iniline not supported in SGI Compiler
7318 Feedback   libgen.so problems
7382 Feedback   Install error on Configuring libtool
7731 Open   compilation with deprecated abi (no -n32)
7933 Open   install sets dangerous user.group's
7959 Open   ld: 0711-317 ERROR: Undefined symbol: .alloca
8158 Feedback   unable to find math.h when doing a make
8327 Feedback   Son of Defect 4155: X-Powered-By and Content-Type bogus headers 
resurfacing
8375 Feedback   Undefined Reference
8485 Feedback   while loading libphp4.so - undefined symbol: 
SSL_CTX_set_tmp_rsa_callback
8551 Feedback   mssql70.dll problem
8837 Feedback   Compilation gives error after successfull configure with gw, t1
8840 Feedback   configure php w/FdfTk.hith --with-fdftk option
8843 Bogus  aclocal: configure.in: 54: macro `AM_INIT_AUTOMAKE' not found in 
library
8862 Suspended  libtool does not code runpath into libphp4.so
8905 Open   libcore 4 library not found
8918 Open   Fails when linking
8977 Bogus  Cannot load 

[PHP-DEV] PHP 4.0 Bug #9087: Mistranslation: set_time_limit in the german manual

2001-02-03 Thread j-f

From: [EMAIL PROTECTED]
Operating system: WinNT
PHP version:  4.0.2
PHP Bug Type: Documentation problem
Bug description:  Mistranslation: set_time_limit in the german manual


The translation of the second paragraph is incorrect; please supersede it with the 
following:

"Wenn set_time_limit() aufgerufen wird, dann startet der Zähler neu. Das heisst, wenn 
die Standardeinstellung 30 Sekunden beträgt und nach 25 Sekunden durch ein Script ein 
Aufruf wie z.B. set_time_limit(20) erfolgt, darf das Script insgesamt 45 Sekunden 
laufen, bevor eine Fehlermeldung ausgegeben wird."


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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] --with-pear configure option

2001-02-03 Thread Jon Parise

How about adding a --with-pear configure option (or something similar)
which would allow the specification of the PEAR install directory at
build time?  I realize 'make install PEAR_INSTALL=/foo' works, but it
doesn't set the default include path correctly.

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

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Question about flock() on Linux

2001-02-03 Thread Andrew Sitnikov

Hello php-general,

Script flock.php:
?
 $file_name = 'flock.txt';

 for($i=0;$i1000;$i++){
   if ($fd = fopen($file_name,'a+')){
 if (flock($fd,LOCK_EX)){
fseek($fd,0,SEEK_END);
fwrite($fd,$i.' : '.$i."\n");
flock($fd,LOCK_UN);
 }else{
   die('Can not lock file');
 }
 fclose($fd);
   }else{
 echo 'Can not open file';
   }
 }
?

Run it: ab -n 10 -c 10 http://host/flock.php

Why file have similar lines ?

432 : 431 : 431
432
433 : 433
...
84841 : 841
2 : 842

May be flock not working or I do not understand, how it should work ?
How correctly to write in a file from different threads?

P.S I use Linux-2.2.17+PHP4.0.4pl1

Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Question about flock() on Linux. Part 2

2001-02-03 Thread Andrew Sitnikov

Hello php-general,

 This also does not work:
 
 flock.php
 ?
 $file_name = '/home/sitnikov/tmp/flock.txt';
 if ($fd = fopen($file_name,'a+')){
   for($i=0;$i1000;$i++){
 if (flock($fd,LOCK_EX)){
fseek($fd,0,SEEK_END);
fwrite($fd,$i.' : '.$i."\n");
flock($fd,LOCK_UN);
usleep(5);
 }else{
   die('Can not lock file');
 }
   }
   fclose($fd);
 }else{
   echo 'Can not open file';
 }
?


Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9044 Updated: Compiling with latest Openlink ODBC fails with PHP4

2001-02-03 Thread antiphobo

ID: 9044
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Description: Compiling with latest Openlink ODBC fails with PHP4

Allegedly PHP404sp1 fixes this Openlink problem ... but see bug id 
http://bugs.php.net/?id=9088edit=1 for why i couldnt get PHP404sp1 to work with 
apache :(

Previous Comments:
---

[2001-02-01 17:44:06] [EMAIL PROTECTED]
Compiling Openlink4 with PHP 403sp1 and Apache 1.3.12 using the custom iodbc.h file I 
have included WORKS "FINE":

as in 
 - it compiles without errors
 - has warning: `SQL_LEN_DATA_AT_EXEC' redefined
 - produces a fully PHP-functional apache webserver

I still cannot manage to properly communicate to talbles using Openlink4, however, I 
recieve:

SQL error: [OpenLink][ODBC][Driver]Syntax error or access, SQL state 37000 in 
SQLExecDirect for complex selects such as "SELECT TOP 10 RECORD_NR, StatusField, 
ExtendedStatusField, PICTURE, SURNAME, FIRSTNAME, FORM, DOB, DESTINATION, EXPIRY FROM 
(SELECT TOP 10 * FROM WELLGIRLS ORDER BY RECORD_NR ASC,RECORD_NR ASC) ORDER BY 
RECORD_NR DESC,RECORD_NR DESC"

and for simple selects "SELECT * FROM TABLENAME", i get 

Warning: SQL error: [OpenLink][ODBC][Driver]Driver not capable, SQL state S1C00 in 
SQLExecDirect in /home/sites/home/web/current/Admin/admin_odbcsetup.php on line 125

The battle continues ... 

- Siggy

---

[2001-02-01 16:16:49] [EMAIL PROTECTED]
Modified Openlink3.2 iodbc.h so that it could be used with openlink4:

contents of /usr/local/openlink/odbcsdk/include/iodbc.h now:
##

#ifndef _CONFIG_H
#define _CONFIG_H

# if!defined(WINDOWS)  !defined(WIN32_SYSTEM)
#  define   _UNIX_

#  include  stdlib.h
#  include  sys/types.h

#  define   MEM_ALLOC(size) (malloc((size_t)(size)))
#  define   MEM_FREE(ptr)   {if(ptr) free(ptr);}

#  define   STRCPY(t, s)(strcpy((char*)(t), (char*)(s)))
#  define   STRNCPY(t,s,n)  (strncpy((char*)(t), (char*)(s), (size_t)(n)))
#  define   STRCAT(t, s)(strcat((char*)(t), (char*)(s)))
#  define   STRNCAT(t,s,n)  (strncat((char*)(t), (char*)(s), (size_t)(n)))
#  define   STREQ(a, b) (strcmp((char*)(a), (char*)(b)) == 0)
#  define   STRLEN(str) ((str)? strlen((char*)(str)):0)

#  define   EXPORT
#  define   CALLBACK
#  define   FAR


# endif /* _UNIX_ */

# ifdefined(WINDOWS) || defined(WIN32_SYSTEM)

#  include  windows.h
#  include  windowsx.h

#  ifdef_MSVC_
#   define  MEM_ALLOC(size) (fmalloc((size_t)(size)))
#   define  MEM_FREE(ptr)   ((ptr)? ffree((PTR)(ptr)):0))
#   define  STRCPY(t, s)(fstrcpy((char FAR*)(t), (char FAR*)(s)))
#   define  STRNCPY(t,s,n)  (fstrncpy((char FAR*)(t), (char FAR*)(s), 
(size_t)(n)))
#   define  STRLEN(str) ((str)? fstrlen((char FAR*)(str)):0)
#   define  STREQ(a, b) (fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
#  endif

#  ifdef_BORLAND_
#   define  MEM_ALLOC(size) (farmalloc((unsigned long)(size))
#   define  MEM_FREE(ptr)   ((ptr)? farfree((void far*)(ptr)):0)
#   define  STRCPY(t, s)(_fstrcpy((char FAR*)(t), (char FAR*)(s)))
#   define  STRNCPY(t,s,n)  (_fstrncpy((char FAR*)(t), (char FAR*)(s), 
(size_t)(n)))
#   define  STRLEN(str) ((str)? _fstrlen((char FAR*)(str)):0)
#   define  STREQ(a, b) (_fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
#  endif

# endif /* WINDOWS */

# defineSYSERR  (-1)

# ifndefNULL
#   define  NULL((void FAR*)0UL)
# endif

#endif

##

Compiled OK(version 404sp1); './configure' '--with-openlink=/usr/local/openlink' 
'--with-mysql' '--with-apache=../apache_1.3.17' '--enable-track-vars' 

Caused This WARNING when make-ing: 

make[3]: Entering directory `/tmp/php-4.0.4pl1/ext/odbc'
gcc  -I. -I/tmp/php-4.0.4pl1/ext/odbc -I/tmp/php-4.0.4pl1/main -I/tmp/php-4.0.4pl1 
-I/tmp/apache_1.3.17/src/include -I/tmp/apache_1.3.17/src/os/unix 
-I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4pl1/ext/mysql/libmysql 
-I/usr/local/openlink/odbcsdk/include -I/tmp/php-4.0.4pl1/ext/xml/expat/xmltok 
-I/tmp/php-4.0.4pl1/ext/xml/expat/xmlparse -I/tmp/php-4.0.4pl1/TSRM  
-DXML_BYTE_ORDER=12 -g -O2  -c php_odbc.c  touch php_odbc.lo
In file included from php_odbc.h:128,
 from php_odbc.c:31:
/usr/local/openlink/odbcsdk/include/udbcext.h:47: warning: `SQL_LEN_DATA_AT_EXEC' 
redefined
/usr/local/openlink/odbcsdk/include/sqlext.h:250: warning: this is the location of the 
previous definition

***

Now Apache won't run; NOTHING reported in /etc/httpd/logs - where can i find failure 
reason?

Trying again with older versions of PHP and Apache.



[PHP-DEV] db paging with MS SQL 7

2001-02-03 Thread Scott Parks

Has anyone seen a good hack for doing database paging using PHP4 on
Microsoft SQL Server 7.0.

In other words, say your query returns a 100 items, you want to break them
into 10 items per page
and do a previous, next and page numbers at the bottom of the page.  Most of
the ones I have seen
are for mysql only.

tia


-Scott



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9070 Updated: Can only create test databases.

2001-02-03 Thread kane

ID: 9070
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MySQL related
Description: Can only create "test" databases.

This was not a PHP problem, but rather a configuration problem with MySQL.  I had not 
configured my username to permission to create databases.  MySQL then limited me to 
creating databases which began with the word 'test'.  For more information see the 
MySQL 'manual.html' file.  (Do a search for "starting with 'test'" and you should find 
it pretty fast). 

Previous Comments:
---

[2001-02-02 07:06:13] [EMAIL PROTECTED]
I cannot seem to create a database unless it begins with the word "test" in it's name. 
 However I am able to make any database I feel like when using the MySQL shell 
directly.  The following works:

$query = "CREATE DATABASE test_user_again";
$result = @mysql_query($query, $connection) or die ("Couldn't create 
database");

However this does not:

$query = "CREATE DATABASE my_db";
$result = @mysql_query($query, $connection) or die ("Couldn't create 
database");

Nor does any other name I use unless it begins with "test". I've tried using the 
'mysql_create_db' function with the same results.  Any help would be greatly 
appreciated. 

Thanks,
Kane T.

---


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9089: Function registration failed - duplicate name - mysql_connect

2001-02-03 Thread mavrik

From: [EMAIL PROTECTED]
Operating system: RH Linux 6.2, kernel 2.4.1
PHP version:  4.0.4pl1
PHP Bug Type: MySQL related
Bug description:  Function registration failed - duplicate name - mysql_connect

PHP build options
--prefix=%{_prefix} --disable-debug --enable-pic --enable-shared 
--enable-inline-optimization --with-exec-dir=%{_bindir} --with-apxs=%{_sbindir}/apxs 
--with-regex=system --with-mysql=/usr --enable-debugger --enable-magic-quotes 
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm 
--enable-track-vars --enable-ftp --enable-wddx --without-oracle --without-oci8 
--with-xml

Error received immediately following httpd (apache) startup:
PHP Warning:  Function registration failed - duplicate name - mysql_connect in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_pconnect in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_close in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_select_db in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_create_db in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_drop_db in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_query in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_db_query in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_dbs in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_tables in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_fields in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_error in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_errno in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_affected_rows in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_insert_id in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_result in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_num_rows in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_num_fields in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_row in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_array in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_assoc in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_object in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_data_seek in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_lengths in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_field in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_seek in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_free_result in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_name in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_table in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_len in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_type in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_flags in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_escape_string in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldname in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldtable in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldlen in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldtype in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldflags in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_selectdb in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_createdb in 
Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_dropdb in Unknown 
on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_freeresult in 
Unknown on line 0
PHP 

[PHP-DEV] PHP 4.0 Bug #9090: call_user_method() duplicates object

2001-02-03 Thread cazzell

From: [EMAIL PROTECTED]
Operating system: linux 2.4
PHP version:  4.0.4pl1
PHP Bug Type: Class/Object related
Bug description:  call_user_method() duplicates object

First some sample code:


class foo {
var $bar = 0;
function increase () {
$this-bar++;
}
}

$foo = new foo;

print "Bar: " . $foo-bar . "\n";
call_user_method('increase', $foo);
print "Bar: " . $foo-bar . "\n";

$foo-increase();
print "Bar: " . $foo-bar . "\n";


This will output:

Bar: 0
Bar: 0
Bar: 1

It appears that call_user_method is working on a copy of the object rather than the 
object itself.


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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Invitation to a new Web site on politics and culture

2001-02-03 Thread editor

This is an invitation to you to visit a new Web site, THE SCHENK
REPORT (http://www.SchenkReport.com), where the subjects are politics
and culture from a generally liberal point of view.

THE SCHENK REPORT features: 

**Insightful commentary, generally from the left but sometimes veering
off in other directions. Regular contributors include: 

Walt Brasch, an award-winning reporter and editor who is now a
professor of journalism in Pennsylvania. Among his virtues is that his
writing is often very funny.
 
Arthur Joel Katz, a retired TV and film executive whose favorite
causes include defending the First Amendment and pointing out the
insanity of the War on Drugs. 

Charles Schenk, editor and founder of THE SCHENK REPORT. I have 25
years experience in journalism. My special interests include the
Balkans, where I lived and taught English for two years. I reported
from the Balkans during the NATO bombing of Yugoslavia in 1999. (My
"Macedonian Diary" pieces are available at THE SCHENK REPORT. From the
Front Page, click on The Columnists, then look for "Macedonian
Diary.")

**There's a big page of Bushisms and a free Bushisms screensaver
guaranteed to irk the Republican in the next cubicle. 

**Another feature is Abortion Watch, a running chronology of the Bush
II administration's assault on a woman's right to choose. 

**THE SCHENK REPORT has lots of links to other writers, most of them
on the left, and to dozens of organizations that help to mobilize and
inform liberals.

**There's a column for letters to the editor, so readers can talk back
to us. 

In other words, if you're not really busy right now, it's worth a
click. The address is http://www.SchenkReport.com. 

Thanks. 

Sincerely, Charles Schenk
Editor, THE SCHENK REPORT

P.S. While you're there, sign up for the free newsletter by email. If
you don't have time to visit right now, but want to know about new
features as they're added, click on [EMAIL PROTECTED]
(You can end your subscription at any time with this email address:
[EMAIL PROTECTED])


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-02-03 Thread anonymous

Full name: Eduard Hergenroeder
Email: [EMAIL PROTECTED]
ID: EduardH
Purpose: PHP-DOC-DE

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9091: the Contructor of a class is called after! the end of a script

2001-02-03 Thread sauer1

From: [EMAIL PROTECTED]
Operating system: Unix (Apache/1.3.14)
PHP version:  3.0.16
PHP Bug Type: Other
Bug description:  the Contructor of a class is called after! the end of a script

I builded a class and in the constructor of the class i made a entry in a Database. 
The entry contains among other values the actual time.

Every time i call a script in whitch a instance of this class is made i get two 
entries in the database. I wondered why and added outputs to see when and how often 
the constructor is called. But in the script-output i saw that the contructor is 
called only one time. 
As i output the time() at the very end of my script i saw that the second entry was 
made after that time!! I thinkt in normal case that is not possible.

I dont know if this is a bug, but i think this is not the normal behavior. On my own 
machine the same script produces only one entry in the database.

Perhaps the constructor is called instead of the destructor.




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9092: variables-by-references in class constructor not working

2001-02-03 Thread t . stinner

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.16
PHP version:  4.0.4pl1
PHP Bug Type: Class/Object related
Bug description:  variables-by-references in class constructor not working

This code snippet:

class test {
  function test($test1=false) {
  }
} 

gives me 

Parse error - parse error, expecting `')''

on the line with the constructor (function ...)

shouldn't this work (or at least return a useful error)?




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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #8894 Updated: Upgraded to 4.0.4p1 from 4.0.4 caused apache to crash

2001-02-03 Thread Zeev Suraski

What probably happened is that you copied the 4.0.4pl1 .so module over the 
4.0.4 one, and then ran 'apachectl restart'.  That's not supposed to work, 
you actually have to stop the server and start it again...

Zeev

At 20:16 26/1/2001, [EMAIL PROTECTED] wrote:
ID: 8894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Bogus
Bug Type: Apache related
Assigned To:
Comments:

User feedback:
--

Well, dammit. I just moved things back to where they were last night when
they were failing, and they are working correctly now.

I apologize for getting you all all worked up. I thought I was being
helpful.
--

Solution: Just remember to stop / start apache when
you update ANY module in it.. :)



Previous Comments:
---

[2001-01-25 20:38:17] [EMAIL PROTECTED]
I just installed mod_perl into my test system. No problems at all.
So how did you configure / compile mod_php ?
And did you do 'apachectl stop ; apachectl start' right after the update
of PHP ??? Could you please try changing the order of those directives
again and then do stop/start for apache again and see if it works?

--Jani


---

[2001-01-25 20:18:04] [EMAIL PROTECTED]
User feedback:
---
./configure --with-mysql=/usr --with-pgsql=/usr
--with-apxs=/usr/local/apache/bin/apxs
---

Could you please try to generate a GDB backtrace of the crash?

--Jani

---

[2001-01-25 05:54:39] [EMAIL PROTECTED]
What was the configure line used for PHP ?

--Jani

---

[2001-01-24 23:13:45] [EMAIL PROTECTED]
When I upgraded to 4.0.4p1 from 4.0.4 using the apxs mechanism, Apache 
(1.3.14) started crashing. I have both mod_perl and mod_php loading as DSOs.

Swapping the load order of mod_php and mod_perl in the httpd.conf file, so 
that mod_php loaded first, solved the problem (at least for the moment).

LoadModule php4_modulelibexec/libphp4.so
LoadModule perl_modulelibexec/libperl.so

and

AddModule mod_php4.c
AddModule mod_perl.c


---


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


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-02-03 Thread anonymous

Full name: ismail kahraman
Email: [EMAIL PROTECTED]
ID: ihero
Purpose: Learning PHP

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9092 Updated: variables-by-references in class constructor not working

2001-02-03 Thread zak

ID: 9092
Updated by: zak
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Class/Object related
Assigned To: 
Comments:

This should not work - how can you pass a literal value by reference?

However, you are right about the error message - it does seem to be incorrect.

Previous Comments:
---

[2001-02-03 17:53:52] [EMAIL PROTECTED]
This code snippet:

class test {
  function test($test1=false) {
  }
} 

gives me 

Parse error - parse error, expecting `')''

on the line with the constructor (function ...)

shouldn't this work (or at least return a useful error)?



---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] CVS Account Request

2001-02-03 Thread Zak Greant

You do not need a CVS account for learning PHP.  The PHP CVS repository has
read-only access that anyone can use - visit http://bugs.php.net/anoncvs.php
for more information.

--zak

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 03, 2001 4:06 PM
Subject: [PHP-DEV] CVS Account Request


 Full name: ismail kahraman
 Email: [EMAIL PROTECTED]
 ID: ihero
 Purpose: Learning PHP

 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9014 Updated: Content-Type included in uploaded files

2001-02-03 Thread david

ID: 9014
Updated by: david
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: HTTP related
Assigned To: 
Comments:

ok so let's close

Previous Comments:
---

[2001-02-03 07:33:28] [EMAIL PROTECTED]
Found updated files php-4.0.4pl1-5.i386.rpm under
http://people.redhat.com/nalin/test/
that solved my problem! Guess you can close this one!


---

[2001-01-30 17:49:43] [EMAIL PROTECTED]
I am using RedHat 7 with all the latest bugfixes and security fixes ("up2date -u").

This weekend I updated to RedHat's latest PHP version, and now all files I upload is 
longer than they should have been and includes a line at the top that looks like 
"Content-Type: image/pjpeg" plus a blank line. 

Here is the shortest possible script ("upload.php3") to display the behaviour:

HTLMBODY
FORM ENCTYPE="multipart/form-data" ACTION="upload.php3" METHOD=POST
INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10"
Send this file: INPUT NAME="userfile" TYPE="file"
INPUT TYPE="submit" VALUE="Send File"
/FORM
?
echo "$userfile=".$userfile."br";
echo "$userfile_name=".$userfile_name."br";
echo "$userfile_size=".$userfile_size."br";
echo "$userfile_type=".$userfile_type."br";
echo "is_uploaded_file=".is_uploaded_file($userfile)."br";
copy($userfile, "testfile");
?
/BODY/HTML

Here is the output produced for a sample jpeg of 41052 bytes:

$userfile=/tmp/phpHaOmjN
$userfile_name=J0144216.JPG
$userfile_size=41081
$userfile_type=
is_uploaded_file=1

As you can see, the file is 29 bytes longer than it should be...

Here is what I get when pressing the "send file" button without specifying a filename:

$userfile=/tmp/phpJryFlz
$userfile_name=
$userfile_size=42
$userfile_type=
is_uploaded_file=1

The file "uploaded" looks like this:
*** cut here ***
Content-Type: application/octet-stream

*** cut here ***


It seems to me that the content type description is ending up in the uploaded file 
rather than in the _type variable? I have changed my config files as little as 
possible, and I can't imagine I have been able to do something this stupid all on my 
own? 


Svein Roar Nilsen


---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9000 Updated: echo `cat /etc/passwd` -- bypasses open_basedir .

2001-02-03 Thread david

ID: 9000
Updated by: david
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Configuration Issues
Assigned To: 
Comments:

safe_mode disables ``
safe_mode_exec_dir specifies a base directory for executables
disable_functions allows you to turn disable certain functions completely

Previous Comments:
---

[2001-01-30 07:47:01] [EMAIL PROTECTED]

Even with open_basedir . configured in php.ini, the following bypasses it with 
concerning ease:

echo `cat /etc/passwd`;

The fact that open_basedir is in force is obvious when we try fopen ("/etc/passwd", 
"r"), etc - ie, the expected open_basedir error pops up.

Surely this is not a bug?  If so, is there a way to disable backticks?

I'll wait for some kind of response before I send this to the usual support mailing 
lists.

---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9092 Updated: variables-by-references in class constructor not working

2001-02-03 Thread t . stinner

ID: 9092
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Class/Object related
Description: variables-by-references in class constructor not working

hmm, i see your point.

is it possible to define a value that should be 
passwd by reference as optional?



Previous Comments:
---

[2001-02-03 18:09:28] [EMAIL PROTECTED]
This should not work - how can you pass a literal value by reference?

However, you are right about the error message - it does seem to be incorrect.

---

[2001-02-03 17:53:52] [EMAIL PROTECTED]
This code snippet:

class test {
  function test($test1=false) {
  }
} 

gives me 

Parse error - parse error, expecting `')''

on the line with the constructor (function ...)

shouldn't this work (or at least return a useful error)?



---


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9093: if(1) fails

2001-02-03 Thread richchri

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.2
PHP Bug Type: Scripting Engine problem
Bug description:  if(1) fails

The code causing the error looks something like this
Here is the value of $name: "some_data" 
if($what_the_fuck= ($name != NULL)) 
{ 
   echo "debug (passed): $what_the_fuck"; 
} 
else 
{ 
   echo "debug (failed): $what_the_fuck"; 
} 

And this is what is happening.
debug (failed): 1 
ERROR: Template: trying to set NULL template variable name 

the "what_the_fuck" variable == 1 so why is if failing.  "name" == "some_data".  If 
($name != NULL) == 1 then if should not fail.  P.S. I added the "what_the_fuck" for 
clearity only.

thanks,
richie


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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9087 Updated: Mistranslation: set_time_limit in the german manual

2001-02-03 Thread sniper

ID: 9087
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To: 
Comments:

fixed in CVS.

--Jani


Previous Comments:
---

[2001-02-03 12:17:29] [EMAIL PROTECTED]

The translation of the second paragraph is incorrect; please supersede it with the 
following:

"Wenn set_time_limit() aufgerufen wird, dann startet der Zähler neu. Das heisst, wenn 
die Standardeinstellung 30 Sekunden beträgt und nach 25 Sekunden durch ein Script ein 
Aufruf wie z.B. set_time_limit(20) erfolgt, darf das Script insgesamt 45 Sekunden 
laufen, bevor eine Fehlermeldung ausgegeben wird."

---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8089 Updated: No ODBC function that returns SQL error messages

2001-02-03 Thread sniper

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

According to phobo [EMAIL PROTECTED],
ODBC Error functions are now written as of php404.

--Jani


Previous Comments:
---

[2000-12-04 02:00:27] [EMAIL PROTECTED]
I am having a problem because ODBC error messages are sent to standard output and 
there doesn't seem to be a function to capture the ODBC error message. 

May i suggest a new ODBC function ODBC_Error() which saves the last error message for 
each connection.

Eg. 

$ok = ODBC_Execute($id,'select * from badtable');
if (!$ok) LogError(ODBC_Error($id));

This can be implemented in php_odbc.c, presumbly by modifying the odbc_sql_error 
function.

461 void odbc_sql_error(ODBC_SQL_ERROR_PARAMS)



---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #6364 Updated: Can not use odbc functions with iODBC and Openlink

2001-02-03 Thread sniper

ID: 6364
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Bogus
Bug Type: ODBC related
Assigned To: 
Comments:

you cannot compile PHP with both --iodbc and with --openlink

--Jani


Previous Comments:
---

[2001-01-02 10:48:19] [EMAIL PROTECTED]
does this problem still exist in the current release?

---

[2000-08-26 05:13:30] [EMAIL PROTECTED]
It seems you have configured php using --with-iodbc and --with-openlink. Please use 
only one of them, in your case openlink.

As for the pthread problem: I'm not familiar with *BSDs, but maybe openlink also 
provides drivers without pthread?
At least under Linux, adding -pthread to apache doesn't do any harm.

---

[2000-08-26 02:29:40] [EMAIL PROTECTED]
I compiled php4 with iodbc, openlink and apache_1.3.12 support.
It is fine when use  the "odbctest" provided by the openlink to connect database.
It doesn't work when I use the php odbc_connect function and  the "odbctest" provided 
by libiodbc.
The error message are the same.

/usr/libexec/ld-elf.so.1: /usr/local/openlink/lib/oplodbc.so.1.0:Undefined symbol 
"pthread_mutex_lock"

I can add -pthread and recompile the "odbctest" to make it work, but it doesn't works 
with php. If I add -pthread to apache, the httpd will waste most CPU time. Is there 
any solution ?

Thanks in advance.


---



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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9095: colon/semicolon delimitd extension_dir ?

2001-02-03 Thread leeym

From: [EMAIL PROTECTED]
Operating system: FreeBSD-4.2-STABLE
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  colon/semicolon delimitd extension_dir ?

Could you please make extension_dir become a colon/semicolon delimitd string (just 
like include_path), because I wanna set more then one extension_dir in php.ini .

For example, I want to set extension_dir = ".:/usr/local/lib/php/extensions" so that I 
can both put  user-specified dymanic extensions in working directory and system-wide 
ones in /usr/local/lib/php/extensions.

Thank you.

--
Yen-Ming Lee


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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8952 Updated: PHP Installs With PNG, Apache Doesn't

2001-02-03 Thread kevin

ID: 8952
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Description: PHP Installs With PNG, Apache Doesn't

Fixed by changing -lttf -lpng -lz -lgd -ljpeg in the gcc strings to -lgd -lttf -lpng 
-lz -ljpeg. Works now. Library problem I suppose. 

Previous Comments:
---

[2001-01-27 14:10:18] [EMAIL PROTECTED]
I finally got PHP to compile with GD 1.8.3 on my system, but apache won't compile now.

Here is relevant info from an apache make:
=== src/modules
gcc -c  -I./os/unix -I./include -I/usr/local  -funsigned-char 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include -I/usr/local  -funsigned-char 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -funsigned-char -I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` -o httpd buildmark.o modules.o  
modules/standard/libstandard.a  modules/php4/libphp4.a  main/libmain.a  
./os/unix/libos.a  ap/libap.a  lib/expat-lite/libexpat.a 
-L/usr/local/installs/web_stuff/libpng-1.07/ -lpng -R/usr/local//lib -R/usr/local/lib 
-R/usr/local/lib/mysql -R/usr/local/pgsql//lib  -rdynamic -L/usr/local//lib 
-L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/pgsql//lib -Lmodules/php4 
-L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -lpq -lmysqlclient -lttf 
-lpng -lz -lgd -ljpeg -lm -lcrypt  -L/usr/local//lib -ljpeg   -lcrypt
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngErrorHandler':
gd_png.o(.text+0x25): undefined reference to `png_get_error_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngReadData':
gd_png.o(.text+0x67): undefined reference to `png_get_io_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngWriteData':
gd_png.o(.text+0x8b): undefined reference to `png_get_io_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx':
gd_png.o(.text+0x105): undefined reference to `png_check_sig'
gd_png.o(.text+0x12e): undefined reference to `png_create_read_struct'
gd_png.o(.text+0x158): undefined reference to `png_create_info_struct'
gd_png.o(.text+0x1a2): undefined reference to `png_set_sig_bytes'
gd_png.o(.text+0x1b2): undefined reference to `png_set_read_fn'
gd_png.o(.text+0x1bd): undefined reference to `png_read_info'
gd_png.o(.text+0x1e0): undefined reference to `png_get_IHDR'
gd_png.o(.text+0x1f1): undefined reference to `png_set_strip_16'
gd_png.o(.text+0x202): undefined reference to `png_set_packing'
gd_png.o(.text+0x222): undefined reference to `png_set_strip_alpha'
gd_png.o(.text+0x26b): undefined reference to `png_get_PLTE'
gd_png.o(.text+0x278): undefined reference to `png_get_valid'
gd_png.o(.text+0x2ad): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x3c2): undefined reference to `png_get_valid'
gd_png.o(.text+0x3e0): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x443): undefined reference to `png_get_valid'
gd_png.o(.text+0x45d): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x53d): undefined reference to `png_set_dither'
gd_png.o(.text+0x54b): undefined reference to `png_read_update_info'
gd_png.o(.text+0x556): undefined reference to `png_get_rowbytes'
gd_png.o(.text+0x58a): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x5cb): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x5f7): undefined reference to `png_read_image'
gd_png.o(.text+0x601): undefined reference to `png_read_end'
gd_png.o(.text+0x633): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x6e6): undefined reference to `png_destroy_read_struct'
/usr/local//lib/libgd.a(gd_png.o): In function `gdImagePngCtx':
gd_png.o(.text+0x821): undefined reference to `png_create_write_struct'

[PHP-DEV] PHP 4.0 Bug #8361 Updated: Chinese char changed ADODB.command,recordset can not be used

2001-02-03 Thread steeven

ID: 8361
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: COM related
Description: Chinese char changed  ADODB.command,recordset can not be used

I donwload 4.05dev from www.mm4.de, and run the following code:
?php
//phpinfo();

$dbc = new COM("ADODB.Connection");
$dbc-Provider = "sqloledb";
$dbc-Open('DSN=starmate;Database=magway;UID=sa;PWD=');
$q="select title from css";


?
Here is the result:

Warning: Error in php_char_to_OLECHAR() in d:\apache\htdocs\magway\phorum\test.php on 
line 4

Warning: Invalid ProgID: Àà×Ö·û´®ÎÞЧ[invalid class string(by me)] in 
d:\apache\htdocs\magway\phorum\test.php on line 4

Fatal error: Call to undefined function: open() in 
d:\apache\htdocs\magway\phorum\test.php on line 6


Please tell me what you need to know for more.

Previous Comments:
---

[2001-02-02 13:07:28] [EMAIL PROTECTED]
could someone with a chinese charset try this please.

---

[2001-01-29 17:17:27] [EMAIL PROTECTED]
this should be fixed in cvs

please try a snapshot from http://snaps.php.net and give me feedback.

---

[2000-12-21 13:52:12] [EMAIL PROTECTED]
I have setup PHP to work with ADO, but they would't work:

$dbc = new COM("ADODB.Connection");
$dbc-Provider = "sqloledb";
$dbc-Open('DSN=starmate;Database=magway;UID=sa;PWD='); //OK
$q="select title from css";

//1. command object
$cm= new COM("ADODB.Command");
$cm-CommandText=$q;
$cm-ActiveConnection=$dbc; //PropPut() failed!!!
$rs=$cm-Execute(); //Invoke() failed!!!
//

//2. recordset still don't work
$rs=new COM("ADODB.Recordset");
$rs-Open($q); //Invoke() failed!!!

//only this code will work
$rs=$dbc-Execute($q); 
echo $rs-fields[0]-value . "br";


On the other hand, all the Double byte char input/output will be cut to 1byte. ²âÊÔa 
will be changed to 3 byte char.
Test with ADODB,Word, It seemed that windows report chinese as one char, but php think 
it one byte.


---


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]