[PHP-DEV] PHP 4.0 Bug #9951: cannot read $userfile in upload...

2001-03-23 Thread blchoo

From: [EMAIL PROTECTED]
Operating system: Windows NT
PHP version:  4.0.0
PHP Bug Type: Unknown/Other Function
Bug description:  cannot read $userfile in upload...

i encountered problem to upload a image file in windows NT. 
i have put the tagenctype="multipart/form-data" and the input type=file 
name=userfile when the form been pass to another page., it can't read the $userfile 
value, it appear "\\".., but $userfile_name will give the name of the upload file 
name.., why this thing happen? do i need to do any setting in php.ini?


-- 
Edit Bug report at: http://bugs.php.net/?id=9951edit=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 #9816 Updated: FATAL: emalloc(): Unable to allocate

2001-03-23 Thread shazlista

ID: 9816
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Description: FATAL: emalloc(): Unable to allocate

win2000 sp1 php4.0.2 - 4.0.4pl1
?
$a=odbc_connect("oh","","");
$r=odbc_prepare($a,"SELECT 'a' FROM xx"); 
odbc_execute($r);
odbc_free_result($r);
odbc_close($a);
?

xx is a table whith 1 integer field and 1 row.
I try to select constant literal.
("select * from xx" works fine!!!)
I get FATAL: emalloc(): Unable to allocate 2147483599 bytes 
!!! all so 2147483599 bytes 



Previous Comments:
---

[2001-03-18 00:00:17] [EMAIL PROTECTED]
When I query a "Query" from access with only 2087 rows( each row is 210 bytes size), I 
get this error:

FATAL: emalloc(): Unable to allocate 2147483599 bytes 


please help!

---


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


-- 
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 #6554 Updated: file_exists not working with UNC names

2001-03-23 Thread dbeu

ID: 6554
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

fixed in cvs, but you'll have to wait for 4.0.6

Previous Comments:
---

[2000-09-05 11:09:29] [EMAIL PROTECTED]
Actually, I guess nothing is working with UNC pathes in PHP. Windows file naming 
schemes suck very badly.

---

[2000-09-05 10:44:42] [EMAIL PROTECTED]
Web Server : Apache 1.3.9 (win32)

Reproduce :

On a Windows NT box with PHP and Apache, create a page the calls the file_exists func 
on a known machinesharefile

You will need to create a share on that machine or another.

For example :

if (file_exists("\\machine\share\fred.txt") {
  echo "ExistsBR";
} else {
  echo "Does not ExistBR";
}

The file_exists function will always return false.

The function works fine with drive letter associations, but not for UNC notation on 
win32.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6554edit=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] builtin functions / constructs

2001-03-23 Thread Stefan Livieratos

Hi,

"Cynic" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is there a way to get names of available "language constructs"
 in a PHP program? I mean, I don't think there's currently
 a way a PHP script can know if e. g. zend_version() is available
 (other than function_exists( 'zend_version' ), that is).
 Is something along get_builtin_constructs() possible?

Take a look at get_defined_functions(),
http://www.php.net/manual/en/function.get-defined-functions.php .

Regards,
Stefan


--
Stefan Livieratos [EMAIL PROTECTED]
http://www.ferry24.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] PHP 4.0 Bug #9930 Updated: only small psubset of rfc1867 accepted

2001-03-23 Thread andreas

ID: 9930
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Description: only small psubset of rfc1867 accepted

 One comment to the listing of the diff, above:
The second argument to the function strpbrk starts with a blank and a tabulator. This 
is not (easily) recognized in that listing.

 Andreas

Previous Comments:
---

[2001-03-22 11:34:24] [EMAIL PROTECTED]
 Hello,
 the documentation tells in chapter 19: "PHP is capable of receiving file uploads from 
any RFC-1867 compliant browser (...).". If the implementation does not, I think it is 
a bug. So I submit a bug-report, not a feature-request.
 The code, which should handle RFC-1867 compliant POST-bodies, is in the file 
main/rfc1867.c. But it do not accept many possiblilities, which are allowed by 
RFC-1867, RFC-2045 and RFC-822, in its version 1.60.
 First, it anly allows one Header-field in every part of the POST-body. (see also 
Bugid 7685)
 Second, it still do not handle atoms as parameter-values correctly. (see also Bugid 
8486)
 Third, it does not accept whitespaces at all allowed places (around the '=' in the 
parameter).
 Fourth, it does not recognize folded headerfields as been folded.
 Fifth, it does not handle comments at all.

 The first two should be handled correctly, if a PHP-script should be usable from 
Lynx. I have changed the file rfc1867.c in a way, that more POST-bodies are accepted, 
but also my version is still not accepting all RFC-1867 compliant POST-bodies. It 
misses all changes to the part of handling the filename-parameter and do not handle 
comments at all.

 Here is a context-diff between the version 1.60 of your CVS and my version:

*** rfc1867.c.v1.60 Thu Mar 22 14:42:35 2001
--- rfc1867.c   Thu Mar 22 17:10:43 2001
***
*** 151,184 
} else {
Done = 1;
}
break;
case 1: /* Check content-disposition */
!   if (strncasecmp(ptr, "Content-Disposition: 
form-data;", 31)) {
if (rem  31) {
SAFE_RETURN;
}
!   php_error(E_WARNING, "File Upload Mime headers 
garbled ptr: [%c%c%c%c%c]", *ptr, *(ptr + 1), *(ptr + 2), *(ptr + 3), *(ptr + 4));
!   SAFE_RETURN;
}
loc = memchr(ptr, 'n', rem);
name = strstr(ptr, " name=");
if (name  name  loc) {
name += 6;
!   s = memchr(name, '"', loc - name);
!   if ( name == s ) {
name++;
s = memchr(name, '"', loc - name);
if(!s) {
php_error(E_WARNING, "File 
Upload Mime headers garbled name: [%c%c%c%c%c]", *name, *(name + 1), *(name + 2), 
*(name + 3), *(name + 4));
SAFE_RETURN;
}
-   } else if(!s) {
-   s = loc;
} else {
!   php_error(E_WARNING, "File Upload Mime 
headers garbled name: [%c%c%c%c%c]", *name, *(name + 1), *(name + 2), *(name + 3), 
*(name + 4));
!   SAFE_RETURN;
}
if (namebuf) {
efree(namebuf);
}
namebuf = estrndup(name, s-name);
--- 151,193 
} else {
Done = 1;
}
break;
case 1: /* Check content-disposition */
!   while (strncasecmp(ptr, "Content-Disposition: 
form-data;", 31)) {
if (rem  31) {
SAFE_RETURN;
}
!   if (ptr[1] == 'n') {
! /* empty line as end of header found 
*/
!   php_error(E_WARNING, "File Upload 

[PHP-DEV] PHP 4.0 Bug #9917 Updated: left open Oracle cursors break mail() function

2001-03-23 Thread andrewmc

ID: 9917
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Oracle related
Description: left open Oracle cursors break mail() function


closing the cursors was a red herring, it worked for a bit then same problem occurred 
again. From having done some research and changing some scripts it seems that the 
problem starts after any PHP script which does putenv() has been run. Removing 
putenv() from all PHP scripts and setting up the environment in the Apache startup 
script instead seems to workaround the problem though is not ideal.

Previous Comments:
---

[2001-03-22 07:53:59] [EMAIL PROTECTED]
PHP 4.0.4 staticly compiled into Apache 1.3.14 with Oracle 7.3.4 support - configure 
line as follows:
./configure  --without-mysql --with-apache=/usr/local/apache_1.3.14 --with-ora
cle=/devuat/oracle7.3.4 --enable-track-vars --enable-sigchild

Apache started with PHPRC pointed to directory containing php.ini file with following 
line:
sendmail_path   = /usr/lib/sendmail -t -i

Start Apache, run PHP script which uses mail() function...this works fine until a PHP 
script has been run which performs ora_* functions but does not close cursor 
resources. Subsequent mail() function calls result in no message and the following in 
the Apache error_log file:

: is not an identifier

This looks like stderr from /bin/sh (output below)
$ strings /bin/sh|grep identif
is not an identifier

The following code before calls to mail() fixes the problem:

for ($i=0; $i10; $i++) ora_close ($i);

Seems that unclosed cursors break mail()

More info available if required.

---


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


-- 
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] Re: [PHP-QA] 4.0.5RC2

2001-03-23 Thread Zeev Suraski

I just realized my letter about the RC2 release was never actually queued 
and sent (it was up since Sunday evening).  At any rate - 
http://www.php.net/distributions/php-4.0.5RC2.tar.gz.

I believe this would be the last RC for 4.0.5, with a release towards the 
end of next week (assuming nobody actually tested RC2 until now).

Zeev

At 13:10 20/3/2001, Zeev Suraski wrote:
I intend to package 4.0.5RC2 tonight, if someone still has any patches 
that should go into 4.0.5, please commit them in the next few hours.
Andre - I did commit the output buffering fixes quite a few days ago...

Zeev

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


--
PHP Quality Assurance 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]




Re: [PHP-DEV] builtin functions / constructs

2001-03-23 Thread Hartmut Holzgraefe

Stefan Livieratos wrote:
 
 Hi,
 
 "Cynic" [EMAIL PROTECTED] schrieb im Newsbeitrag
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Is there a way to get names of available "language constructs"
  in a PHP program? I mean, I don't think there's currently
  a way a PHP script can know if e. g. zend_version() is available
  (other than function_exists( 'zend_version' ), that is).
  Is something along get_builtin_constructs() possible?
 
 Take a look at get_defined_functions(),
 http://www.php.net/manual/en/function.get-defined-functions.php .

does this return things like unset()? 
no it doesn't!

there's a difference between builtin functions and language constructs

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- 
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 #9953: memory leak

2001-03-23 Thread teo

From: [EMAIL PROTECTED]
Operating system: SuSE7.0
PHP version:  4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description:  memory leak

zend_hash.c(1032) :  Freeing 0x0824400C (17 bytes), 
script=/usr/local/cvsdevel/php/a/htdocs/index.php
Last leak repeated 14 times

How can I investigate further on this please and what does it actually mean.Thanks.

ciao

--teodor




-- 
Edit Bug report at: http://bugs.php.net/?id=9953edit=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 #9921 Updated: Wrong File Created Date and Wrong Filesize

2001-03-23 Thread sniper

ID: 9921
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Filesystem function related
Assigned To: 
Comments:

Can you please add the output of this?
ie. How are the date and size wrong?

--Jani


Previous Comments:
---

[2001-03-22 09:31:40] [EMAIL PROTECTED]
?php
   $fhandle = opendir(".");

   while (false!=($file = readdir($fhandle))) 
   { 
  if ($file != "."  $file != "..") 
  { 
 if (!(is_dir($file)))
 {
  $fdata = filemtime($file);
  $fdata = date("d/m/Y",$fdata);
  $fsize = filesize($file);

  printf("%s %s %dn", $file, $fdata, $fsize);
 
}

clearstatcache();
closedir($fhandle);
  }
   }
?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9921edit=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 #9924 Updated: Warning: Undefined index: Service[1]

2001-03-23 Thread sniper

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

send twice.. (#9926)


Previous Comments:
---

[2001-03-22 10:14:00] [EMAIL PROTECTED]
i would suggest that you put qoutes arround *all*
tag attribute values:

input 
  type="Hidden" 
  name="Service[?php echo $counter ?]"
 value="?php echo odbc_result($result, 'ServiceId')?"


and you could use var_dump($HTTP_POST_VARS) 
and the generated HTML code to further analyse 
the cause of the problem?

---

[2001-03-22 09:57:27] [EMAIL PROTECTED]
I am dynamically creating input fields in my form with their values stored in an 
array:

input type="Hidden" name=Service[?php echo $counter ?] value=?php echo 
odbc_result($result, "ServiceId") ?

These submit fine but I am having trouble accessing the results of the array from the 
post variables:

$serviceId = $HTTP_POST_VARS["Service[".$counter."]"];

Do I need to use unicode decompression before referencing the variables or am I just 
building the reference wrong?

Have looked at PHP help but only tells you how to use arrays in form variables not how 
to retrieve them.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9924edit=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 #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}

2001-03-23 Thread sniper

ID: 9931
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To: 
Comments:

Your example code doesn't work. 

This works for me just fine:
(of course the undefined vars don't work..)

?php
  
$retStr= 'a href="' . basename($PHP_SELF) . "?lo=" 
. ($lo - $recordsPerPage ) 
. "" 
. $xtraQuery 
. '"lt;lt;Previous/anbsp;" : "' ;
   
echo $retStr;
?  

And I don't know how used browser would matter on this.

--Jani


Previous Comments:
---

[2001-03-22 11:35:59] [EMAIL PROTECTED]
from phorSale//common/common.functions.php
{
$retStr .= "a href=" . basename($PHP_SELF) . "?lo=" . ( $lo - $recordsPerPage 
) . "" . $xtraQuery . "lt;lt; Previous/anbsp;" : "" ;
}

It's happens only under Netscape 4.76
Under IE 5.5, 6.01 all works fine



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9931edit=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 #9929 Updated: Symbol referencing errors

2001-03-23 Thread sniper

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

What was the configure line used? I guess you're trying
to compile PHP as static module into Apache?
Did you read the INSTALL file? 
Did you first run './configure' in Apache src dir?

--Jani


Previous Comments:
---

[2001-03-22 11:33:31] [EMAIL PROTECTED]
=== src/modules/extra
=== src/modules
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
  -o httpd buildmark.o modules.o  modules/extra/libextra.a  
modules/standard/libstandard.a  main/libmain.a  ./os/unix/libos.a  ap/libap.a  
lib/expat-lite/libexpat.a  -lsocket -lnsl
Undefined   first referenced
 symbol in file
php_register_variable   modules/extra/libextra.a(mod_php4.o)
core_globalsmodules/extra/libextra.a(mod_php4.o)
sapi_startupmodules/extra/libextra.a(mod_php4.o)
sapi_shutdown   modules/extra/libextra.a(mod_php4.o)
zend_ini_rshutdown  modules/extra/libextra.a(mod_php4.o)
php_module_shutdown_for_execmodules/extra/libextra.a(mod_php4.o)
apache_php_module_main  modules/extra/libextra.a(mod_php4.o)
php_request_shutdown_for_exec   modules/extra/libextra.a(mod_php4.o)
zend_hash_apply modules/extra/libextra.a(mod_php4.o)
executor_globalsmodules/extra/libextra.a(mod_php4.o)
zend_hash_destroy   modules/extra/libextra.a(mod_php4.o)
_estrdupmodules/extra/libextra.a(mod_php4.o)
zend_error  modules/extra/libextra.a(mod_php4.o)
sapi_get_default_content_type   modules/extra/libextra.a(mod_php4.o)
php_module_shutdown_wrapper modules/extra/libextra.a(mod_php4.o)
sapi_globalsmodules/extra/libextra.a(mod_php4.o)
zend_startup_module modules/extra/libextra.a(mod_php4.o)
php_request_shutdownmodules/extra/libextra.a(mod_php4.o)
php_handle_aborted_connection   modules/extra/libextra.a(mod_php4.o)
zend_hash_add_or_update modules/extra/libextra.a(mod_php4.o)
zend_alter_ini_entrymodules/extra/libextra.a(mod_php4.o)
apache_module_entry modules/extra/libextra.a(mod_php4.o)
zend_hash_merge_ex  modules/extra/libextra.a(mod_php4.o)
zend_hash_init  modules/extra/libextra.a(mod_php4.o)
empty_stringmodules/extra/libextra.a(mod_php4.o)
_efree  modules/extra/libextra.a(mod_php4.o)
php_module_startup  modules/extra/libextra.a(mod_php4.o)
ld: fatal: Symbol referencing errors. No output written to httpd
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /usr/local/apache_1.3.19/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/apache_1.3.19
*** Error code 1
make: Fatal error: Command failed for target `build'
MACSPROD:/usr/local/apache_1.3.19 

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9929edit=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 #9952 Updated: get_defined_functions appends whitespace to returned values

2001-03-23 Thread cynic

ID: 9952
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

turned out it's not a whitespace, it's null:

$x = get_defined_functions() ;
$x = array_shift( $x['internal'] ) ;
for( $i = 0 ; $i  strlen( $x ) ; $i++ ) {
echo $x[ $i ] , ' : ' , ord( $x[ $i ] ) , "\n" ;
}

z : 122
e : 101
n : 110
d : 100
_ : 95
v : 118
e : 101
r : 114
s : 115
i : 105
o : 111
n : 110
 : 0

Previous Comments:
---

[2001-03-23 07:17:56] [EMAIL PROTECTED]
NOTE: this is actually a snapshot from yesterday.

signle space is appended to each and every returned function name, this affects both 
internals and userland ones.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9952edit=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 #9954: php.exe hangs when executing external batch file

2001-03-23 Thread dave973

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0/SP6
PHP version:  4.0.4pl1
PHP Bug Type: *General Issues
Bug description:  php.exe hangs when executing external batch file

Platform/configuration = (NT4/SP6)

I have created a batch file that opens MS Access and runs a macro... This macro does 3 
things:
1. Deletes a table
2. Imports a delimited text file into a new table
3. Quits Access and Saves All changes.

Here is the batch file:
REM   Defines a path for the Microsoft Access executable 
PATH = "C:\Program Files\Microsoft Office\Office\"
REM   Starts Microsoft Access and runs the macro.
START /WAIT Msaccess.exe "C:\inetpub\wwwroot\webcolor\webcolor.mdb" /x "Importer"
EXIT

When I call this .bat file with the exec() or system() functions, the browser hangs 
and when I check the Task Mgr... I have php.exe, CMD.exe, and msaccess.exe all hanging 
(and I also can not end the processes - Access is denied). For every page access, an 
addition 3 processes open and hang.


-- 
Edit Bug report at: http://bugs.php.net/?id=9954edit=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] Re: PHP 4.0 Bug #9929 Updated: Symbol referencing errors

2001-03-23 Thread Jason Gulledge

 I used:

make clean;make install
 
 ..and that Fixed it.. 
 
 recreated those object files ..etc.
 
 Thanks,
 
 Jason


__ Reply Separator _
Subject: PHP 4.0 Bug #9929 Updated: Symbol referencing errors
Author:  [EMAIL PROTECTED] (Bug Database) at INTERNET
Date:3/23/01 7:25 AM


ID: 9929
Updated by: sniper
Reported By: [EMAIL PROTECTED] 
Old-Status: Open
Status: Feedback
Bug Type: Compile Problem
Assigned To:
Comments:
 
What was the configure line used? I guess you're trying 
to compile PHP as static module into Apache?
Did you read the INSTALL file?
Did you first run './configure' in Apache src dir?
 
--Jani
 
 
Previous Comments:
---
 
[2001-03-22 11:33:31] [EMAIL PROTECTED] 
=== src/modules/extra
=== src/modules
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
  -o httpd buildmark.o modules.o  modules/extra/libextra.a  modules/standard
/libstandard.a  main/libmain.a  ./os/unix/libos.a  ap/libap.a  lib/expat-lite/li
bexpat.a  -lsocket -lnsl
Undefined   first referenced
 symbol in file
php_register_variable   modules/extra/libextra.a(mod_php4.o) 
core_globalsmodules/extra/libextra.a(mod_php4.o) 
sapi_startupmodules/extra/libextra.a(mod_php4.o) 
sapi_shutdown   modules/extra/libextra.a(mod_php4.o) 
zend_ini_rshutdown  modules/extra/libextra.a(mod_php4.o) 
php_module_shutdown_for_execmodules/extra/libextra.a(mod_php4.o) 
apache_php_module_main  modules/extra/libextra.a(mod_php4.o) 
php_request_shutdown_for_exec   modules/extra/libextra.a(mod_php4.o) 
zend_hash_apply modules/extra/libextra.a(mod_php4.o) 
executor_globalsmodules/extra/libextra.a(mod_php4.o) 
zend_hash_destroy   modules/extra/libextra.a(mod_php4.o) 
_estrdupmodules/extra/libextra.a(mod_php4.o) 
zend_error  modules/extra/libextra.a(mod_php4.o) 
sapi_get_default_content_type   modules/extra/libextra.a(mod_php4.o) 
php_module_shutdown_wrapper modules/extra/libextra.a(mod_php4.o) 
sapi_globalsmodules/extra/libextra.a(mod_php4.o) 
zend_startup_module modules/extra/libextra.a(mod_php4.o) 
php_request_shutdownmodules/extra/libextra.a(mod_php4.o) 
php_handle_aborted_connection   modules/extra/libextra.a(mod_php4.o) 
zend_hash_add_or_update modules/extra/libextra.a(mod_php4.o) 
zend_alter_ini_entrymodules/extra/libextra.a(mod_php4.o) 
apache_module_entry modules/extra/libextra.a(mod_php4.o) 
zend_hash_merge_ex  modules/extra/libextra.a(mod_php4.o) 
zend_hash_init  modules/extra/libextra.a(mod_php4.o) 
empty_stringmodules/extra/libextra.a(mod_php4.o) 
_efree  modules/extra/libextra.a(mod_php4.o) 
php_module_startup  modules/extra/libextra.a(mod_php4.o) 
ld: fatal: Symbol referencing errors. No output written to httpd
*** Error code 1
make: Fatal error: Command failed for target `target_static' 
Current working directory /usr/local/apache_1.3.19/src
*** Error code 1
make: Fatal error: Command failed for target `build-std' 
Current working directory /usr/local/apache_1.3.19
*** Error code 1
make: Fatal error: Command failed for target `build' 
MACSPROD:/usr/local/apache_1.3.19
 
---
 
 
 
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9929edit=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 #9955: Problem Connecting to the Database

2001-03-23 Thread chris

From: [EMAIL PROTECTED]
Operating system: NT 4.0
PHP version:  4.0.0
PHP Bug Type: ODBC related
Bug description:  Problem Connecting to the Database

OS: WinNT 4.0 SP
PHP version: 4.0.0
Database: DB2 (remote on network)
Network protocol: TCP/IP

In a previous note from yesterday, Chris explained that there is no ODBC involved in 
connecting to DB2, the functions just share names:

"Note: There is no ODBC involved when connecting to the above databases. The functions 
that you use to speak natively to them just happen to share the same names and syntax 
as the ODBC functions.
SNIP

-Chris"

When I tried to use ODBC_CONNECT('ip_address', 'user', 'password');

I got the following ODBC error back from the operating system:

"Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and 
no default driver specified, SQL state IM002 in SQLConnect in e:\www\do_dbtest.php on 
line 7
Couldn't connect."

This looks like to me that ODBC IS in fact being called. and it is causing 
interference with me getting a connection to my DB2 database.

What could be wrong? Does the newer releases of PHP resolve this or am I doing 
something wrong on my end?

Thank you.

Chris Streeter


-- 
Edit Bug report at: http://bugs.php.net/?id=9955edit=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 #9952 Updated: get_defined_functions appends whitespace to returned values

2001-03-23 Thread andrei

ID: 9952
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

Fixed in CVS - thanks.

Previous Comments:
---

[2001-03-23 09:08:58] [EMAIL PROTECTED]
turned out it's not a whitespace, it's null:

$x = get_defined_functions() ;
$x = array_shift( $x['internal'] ) ;
for( $i = 0 ; $i  strlen( $x ) ; $i++ ) {
echo $x[ $i ] , ' : ' , ord( $x[ $i ] ) , "n" ;
}

z : 122
e : 101
n : 110
d : 100
_ : 95
v : 118
e : 101
r : 114
s : 115
i : 105
o : 111
n : 110
 : 0

---

[2001-03-23 07:17:56] [EMAIL PROTECTED]
NOTE: this is actually a snapshot from yesterday.

signle space is appended to each and every returned function name, this affects both 
internals and userland ones.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9952edit=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 #9929 Updated: Symbol referencing errors

2001-03-23 Thread hholzgra

ID: 9929
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Compile Problem
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-22 11:33:31] [EMAIL PROTECTED]
=== src/modules/extra
=== src/modules
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
  -o httpd buildmark.o modules.o  modules/extra/libextra.a  
modules/standard/libstandard.a  main/libmain.a  ./os/unix/libos.a  ap/libap.a  
lib/expat-lite/libexpat.a  -lsocket -lnsl
Undefined   first referenced
 symbol in file
php_register_variable   modules/extra/libextra.a(mod_php4.o)
core_globalsmodules/extra/libextra.a(mod_php4.o)
sapi_startupmodules/extra/libextra.a(mod_php4.o)
sapi_shutdown   modules/extra/libextra.a(mod_php4.o)
zend_ini_rshutdown  modules/extra/libextra.a(mod_php4.o)
php_module_shutdown_for_execmodules/extra/libextra.a(mod_php4.o)
apache_php_module_main  modules/extra/libextra.a(mod_php4.o)
php_request_shutdown_for_exec   modules/extra/libextra.a(mod_php4.o)
zend_hash_apply modules/extra/libextra.a(mod_php4.o)
executor_globalsmodules/extra/libextra.a(mod_php4.o)
zend_hash_destroy   modules/extra/libextra.a(mod_php4.o)
_estrdupmodules/extra/libextra.a(mod_php4.o)
zend_error  modules/extra/libextra.a(mod_php4.o)
sapi_get_default_content_type   modules/extra/libextra.a(mod_php4.o)
php_module_shutdown_wrapper modules/extra/libextra.a(mod_php4.o)
sapi_globalsmodules/extra/libextra.a(mod_php4.o)
zend_startup_module modules/extra/libextra.a(mod_php4.o)
php_request_shutdownmodules/extra/libextra.a(mod_php4.o)
php_handle_aborted_connection   modules/extra/libextra.a(mod_php4.o)
zend_hash_add_or_update modules/extra/libextra.a(mod_php4.o)
zend_alter_ini_entrymodules/extra/libextra.a(mod_php4.o)
apache_module_entry modules/extra/libextra.a(mod_php4.o)
zend_hash_merge_ex  modules/extra/libextra.a(mod_php4.o)
zend_hash_init  modules/extra/libextra.a(mod_php4.o)
empty_stringmodules/extra/libextra.a(mod_php4.o)
_efree  modules/extra/libextra.a(mod_php4.o)
php_module_startup  modules/extra/libextra.a(mod_php4.o)
ld: fatal: Symbol referencing errors. No output written to httpd
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /usr/local/apache_1.3.19/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/apache_1.3.19
*** Error code 1
make: Fatal error: Command failed for target `build'
MACSPROD:/usr/local/apache_1.3.19 

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9929edit=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] builtin functions / constructs

2001-03-23 Thread Zeev Suraski

What's the point of returning the language constructs though?  By 
definition, each of them has its own semantics, so I can't see any use for 
that...

Zeev

At 15:08 23/3/2001, Hartmut Holzgraefe wrote:
Stefan Livieratos wrote:
 
  Hi,
 
  "Cynic" [EMAIL PROTECTED] schrieb im Newsbeitrag
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   Is there a way to get names of available "language constructs"
   in a PHP program? I mean, I don't think there's currently
   a way a PHP script can know if e. g. zend_version() is available
   (other than function_exists( 'zend_version' ), that is).
   Is something along get_builtin_constructs() possible?
 
  Take a look at get_defined_functions(),
  http://www.php.net/manual/en/function.get-defined-functions.php .

does this return things like unset()?
no it doesn't!

there's a difference between builtin functions and language constructs

--
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

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




Re: [PHP-DEV] builtin functions / constructs

2001-03-23 Thread Hartmut Holzgraefe

Stefan Livieratos wrote:
 
 "Hartmut Holzgraefe" [EMAIL PROTECTED] schrieb im Newsbeitrag
  does this return things like unset()?
  no it doesn't!
 
  there's a difference between builtin functions and language constructs
 
 You are right of course. I was misled by the example Cynic used. On the
 other hand I don't know how useful a function that returns all
 language constructs would be. Could someone give me an example for
 using such a function in a sensible way?

i just wanted to show that there are things that look like functions
but aren't

i'd suggest that those few should be added to the result of 
get_defined_functions, either under 'internal' or as a third 
block 'constructs'

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- 
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 #9898 Updated: gd and mck fail to link but did in 4.0.4pl1

2001-03-23 Thread wez

ID: 9898
Updated by: wez
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Assigned To: 
Comments:

On 2001-03-23 13:00:49, Jani Taskinen [EMAIL PROTECTED] wrote: 
 On 22 Mar 2001 [EMAIL PROTECTED] wrote: 
 jstring? 
 dbg ?? 
 mailparse? mbregex? 
 savi? 

jstring and mbregex are extensions that provide support for MBCS; part of a toolkit 
for supporting Japanese text in PHP. 

dbg is a zend extension for debugging PHP, freely available from 
http://dd.cron.ru/dbg/ 

mailparse is an extension based on the rfc2045 and rfc822 libraries from maildrop, 
which is part of the courier mail server. 

savi is an interface to the Sophos Anti Virus library. 

I wrote the last two - I don't think any of these are responsible for the build 
problems, as they work just fine and have done for some time. 

 Likewise, if I enable cybercash support it also breaks. 
 It doesn't seem to be related to the config.m4 files for those 
 extensions, but does seem to be a problem with linking static libraries. 
 
 Hmm.. 
 
 Nothing has changed on my system since the last successful compile of 
 CVS PHP (around the time preg_replace_callback was implemented). 

Actually, the only thing that changed was that I installed the mhash library, but I 
don't think that has caused the problem. 

 ..so you don't know exactly when this started happening? 
 Could it be after the fastcgi was added in? 

My last completely successful build was just before some build files were broken; 
there were a couple of posts to the dev list about it. 
Specifically, it was just after preg_replace_callback was implemented - I know this 
because I discovered a bug in the interaction between preg_replace and the 
zend_is_callable function. 
Yes, this was before the fastcgi sapi was added. 

 Anything odd in config.log ? 
No, nothing strange - the gd tests compile/complete successfully during configure. 

 So I have a feeling that it is something to do with the main build files 
somewhere... 
 Most strange! 
 Yes it is. As it works for me just fine.. :) 

I will try building with a completely fresh CVS checkout to see if that makes any 
difference. 


Previous Comments:
---

[2001-03-22 09:01:34] [EMAIL PROTECTED]
Sorry - I should have been more verbose.

Yes, I did cvsclean and buildconf a number of times, tried manually deleting the 
config.cache too, but no go.

I'm currently using:

'./configure' '--with-apxs' '--disable-pear' '--enable-debug' '--enable-sigchild' 
'--enable-calendar' '--enable-ftp' '--with-ldap' '--with-mysql=/usr' '--enable-shmop' 
'--enable-sysvsem' '--enable-sysvshm' '--with-zlib' '--enable-inline-optimization' 
'--with-curl' '--with-iconv' '--with-bz2' '--with-gettext' '--enable-sockets' 
'--enable-wddx' '--enable-jstring' '--with-openssl' '--enable-bcmath' '--enable-ctype' 
'--enable-dbg' '--with-imap' '--enable-mailparse' '--enable-mbregex' '--with-pspell' 
'--with-recode' '--with-savi=/home/CLIENTWEB/sophosantivirus/sav_if' '--enable-yp' 
'--without-gd' '--with-mhash'

If I change it to use --with-gd, configure detects libgd.a:

checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-jpeg-dir=DIR
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=DIR
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for compress in -lz... yes
checking for png_info_init in -lpng... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... yes
checking whether to include FreeType 1.x support... yes

Likewise, if I enable cybercash support it also breaks.
It doesn't seem to be related to the config.m4 files for those extensions, but does 
seem to be a problem with linking static libraries.

Nothing has changed on my system since the last successful compile of CVS PHP (around 
the time preg_replace_callback was implemented).

So I have a feeling that it is something to do with the main build files somewhere...

Most strange!

---

[2001-03-21 15:30:32] [EMAIL PROTECTED]
I guess you know enough to do './cvsclean ; ./buildconf' after updating CVS ?

And what was the configure line used?

--Jani


---

[2001-03-21 07:42:43] [EMAIL PROTECTED]
Weird - can't find my duplicate report, so reopened this one.

I'm 

[PHP-DEV] PHP 4.0 Bug #9898 Updated: gd and mck fail to link but did in 4.0.4pl1

2001-03-23 Thread wez

ID: 9898
Updated by: wez
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Problem
Assigned To: 
Comments:

Completely clean CVS checkout fixes problem -- Bogus.
Sorry for wasting your time Jani.
--Wez.

Previous Comments:
---

[2001-03-23 10:57:10] [EMAIL PROTECTED]
On 2001-03-23 13:00:49, Jani Taskinen [EMAIL PROTECTED] wrote: 
 On 22 Mar 2001 [EMAIL PROTECTED] wrote: 
 jstring? 
 dbg ?? 
 mailparse? mbregex? 
 savi? 

jstring and mbregex are extensions that provide support for MBCS; part of a toolkit 
for supporting Japanese text in PHP. 

dbg is a zend extension for debugging PHP, freely available from 
http://dd.cron.ru/dbg/ 

mailparse is an extension based on the rfc2045 and rfc822 libraries from maildrop, 
which is part of the courier mail server. 

savi is an interface to the Sophos Anti Virus library. 

I wrote the last two - I don't think any of these are responsible for the build 
problems, as they work just fine and have done for some time. 

 Likewise, if I enable cybercash support it also breaks. 
 It doesn't seem to be related to the config.m4 files for those 
 extensions, but does seem to be a problem with linking static libraries. 
 
 Hmm.. 
 
 Nothing has changed on my system since the last successful compile of 
 CVS PHP (around the time preg_replace_callback was implemented). 

Actually, the only thing that changed was that I installed the mhash library, but I 
don't think that has caused the problem. 

 ..so you don't know exactly when this started happening? 
 Could it be after the fastcgi was added in? 

My last completely successful build was just before some build files were broken; 
there were a couple of posts to the dev list about it. 
Specifically, it was just after preg_replace_callback was implemented - I know this 
because I discovered a bug in the interaction between preg_replace and the 
zend_is_callable function. 
Yes, this was before the fastcgi sapi was added. 

 Anything odd in config.log ? 
No, nothing strange - the gd tests compile/complete successfully during configure. 

 So I have a feeling that it is something to do with the main build files 
somewhere... 
 Most strange! 
 Yes it is. As it works for me just fine.. :) 

I will try building with a completely fresh CVS checkout to see if that makes any 
difference. 


---

[2001-03-22 09:01:34] [EMAIL PROTECTED]
Sorry - I should have been more verbose.

Yes, I did cvsclean and buildconf a number of times, tried manually deleting the 
config.cache too, but no go.

I'm currently using:

'./configure' '--with-apxs' '--disable-pear' '--enable-debug' '--enable-sigchild' 
'--enable-calendar' '--enable-ftp' '--with-ldap' '--with-mysql=/usr' '--enable-shmop' 
'--enable-sysvsem' '--enable-sysvshm' '--with-zlib' '--enable-inline-optimization' 
'--with-curl' '--with-iconv' '--with-bz2' '--with-gettext' '--enable-sockets' 
'--enable-wddx' '--enable-jstring' '--with-openssl' '--enable-bcmath' '--enable-ctype' 
'--enable-dbg' '--with-imap' '--enable-mailparse' '--enable-mbregex' '--with-pspell' 
'--with-recode' '--with-savi=/home/CLIENTWEB/sophosantivirus/sav_if' '--enable-yp' 
'--without-gd' '--with-mhash'

If I change it to use --with-gd, configure detects libgd.a:

checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-jpeg-dir=DIR
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=DIR
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for compress in -lz... yes
checking for png_info_init in -lpng... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... yes
checking whether to include FreeType 1.x support... yes

Likewise, if I enable cybercash support it also breaks.
It doesn't seem to be related to the config.m4 files for those extensions, but does 
seem to be a problem with linking static libraries.

Nothing has changed on my system since the last successful compile of CVS PHP (around 
the time preg_replace_callback was implemented).

So I have a feeling that it is something to do with the main build files somewhere...

Most strange!

---

[2001-03-21 15:30:32] [EMAIL PROTECTED]
I guess you know enough to do './cvsclean ; ./buildconf' after updating CVS ?

And what 

Re: [PHP-DEV] builtin functions / constructs

2001-03-23 Thread Cynic

At 16:12 23.3. 2001, Hartmut Holzgraefe wrote the following:
-- 
Stefan Livieratos wrote:
 "Hartmut Holzgraefe" [EMAIL PROTECTED] schrieb im Newsbeitrag
  there's a difference between builtin functions and language constructs
 
 You are right of course. I was misled by the example Cynic used. On the
 other hand I don't know how useful a function that returns all
 language constructs would be. Could someone give me an example for
 using such a function in a sensible way?

Well, that was a bad example, however, it stemmed from the fact I 
didn't know about get_defined_functions(), and get_loaded_extensions() /
get_extension_funcs() didn't show it (or I didn't find it).

As for the sensible purpose:
I'm writing phLXR. It's like LXR, except it's written in PHP, for PHP 
programs, and (me being still firmly rooted in the NT world) with 
portability in mind - no Glimpse. I want the internal PHP stuff (be 
it a function, a "language construct" (who cares? it feels and tastes 
like a function!), or your coffee cup to be links to PHP documentation. 
And the more I can get automagically through a call, the less maintenance 
work will be required from the user.

BTW, this reminds me - how do I use the genfuncsummary / genfunclist 
scripts given I'm an NT (l)user?

i just wanted to show that there are things that look like functions
but aren't

i'd suggest that those few should be added to the result of 
get_defined_functions, either under 'internal' or as a third 
block 'constructs'

good idea. also, makes one feel all warm inside when there's 
someone else of the same mind out there. :))



[EMAIL PROTECTED]
-
And the eyes of them both were opened and they saw that their files
were world readable and writable, so they chmoded 600 their files.
- Book of Installation chapt 3 sec 7 


-- 
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] builtin functions / constructs

2001-03-23 Thread Zeev Suraski

unset() is not a function, and using it has very different semantics than a 
function call (e.g., you can't use unset() as a part of a bigger 
expression, but only as a full 'unset();' statement).  There aren't too 
many built-in constructs that behave exactly like functions, as a matter of 
fact, I don't think there are any.  The ones that come close:

- isset() and empty() - their different semantics is that they won't 
display a warning when fed a non existent argument (regardless of error 
reporting).
- print, include, require - do not require parentheses
- echo - does not require parentheses, and still accepts a coma-separated 
list of arguments


At 17:12 23/3/2001, Hartmut Holzgraefe wrote:
Stefan Livieratos wrote:
 
  "Hartmut Holzgraefe" [EMAIL PROTECTED] schrieb im Newsbeitrag
   does this return things like unset()?
   no it doesn't!
  
   there's a difference between builtin functions and language constructs
 
  You are right of course. I was misled by the example Cynic used. On the
  other hand I don't know how useful a function that returns all
  language constructs would be. Could someone give me an example for
  using such a function in a sensible way?

i just wanted to show that there are things that look like functions
but aren't

i'd suggest that those few should be added to the result of
get_defined_functions, either under 'internal' or as a third
block 'constructs'

--
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

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




Re: [PHP-DEV] builtin functions / constructs

2001-03-23 Thread Zeev Suraski

At 18:20 23/3/2001, Cynic wrote:
As for the sensible purpose:
I'm writing phLXR. It's like LXR, except it's written in PHP, for PHP
programs, and (me being still firmly rooted in the NT world) with
portability in mind - no Glimpse. I want the internal PHP stuff (be
it a function, a "language construct" (who cares? it feels and tastes
like a function!), or your coffee cup to be links to PHP documentation.
And the more I can get automagically through a call, the less maintenance
work will be required from the user.

The language constructs PHP supports aren't a moving target, so there's no 
much sense in having a function that returns them.  You should be quite 
safe hardcoding these constructs in your application.

Zeev


-- 
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] builtin functions / constructs

2001-03-23 Thread Hartmut Holzgraefe

Zeev Suraski wrote:
 The language constructs PHP supports aren't a moving target, so there's no
 much sense in having a function that returns them.  You should be quite
 safe hardcoding these constructs in your application.

it should be even more save to hardcode them in PHP itself

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- 
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] Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}

2001-03-23 Thread Ieleja

my situation:

is 
common.function.php
function_abc()
{
$return_string = basename($PHP_SELF);
return $return_string;
}

un ir 

listing.php
{
include("common.functions.inc.php");

? echo function_abc(); ?
}


and there function () returns empty string ...

Only under Netscape Communicator 4.76
and NT4 un Win2k
IE55 or NC601 works fine

server - RH62, Apache+PHP4+MySQL

Bug Database wrote:
 
 ID: 9931
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Feedback
 Bug Type: *Function Specific
 Assigned To:
 Comments:
 
 Your example code doesn't work.
 
 This works for me just fine:
 
 (of course the undefined vars don't work..)
 
 ?php
 
 
 
 $retStr= 'a href="' . basename($PHP_SELF) . "?lo="
 
 . ($lo - $recordsPerPage )
 
 . ""
 
 . $xtraQuery
 
 . '"lt;lt;Previous/anbsp;" : "' ;
 
 
 
 echo $retStr;
 
 ?
 
 And I don't know how used browser would matter on this.
 
 --Jani
 
 Previous Comments:
 ---
 
 [2001-03-22 11:35:59] [EMAIL PROTECTED]
 from phorSale//common/common.functions.php
 
 {
 
 $retStr .= "a href=" . basename($PHP_SELF) . "?lo=" . ( $lo - 
$recordsPerPage ) . "" . $xtraQuery . "lt;lt; Previous/anbsp;" : "" ;
 
 }
 
 It's happens only under Netscape 4.76
 
 Under IE 5.5, 6.01 all works fine
 
 ---
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=9931edit=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] Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}

2001-03-23 Thread Hartmut Holzgraefe

Ieleja wrote:
 
 my situation:
 
 is
 common.function.php
 function_abc()
 {
 $return_string = basename($PHP_SELF);
 return $return_string;
 }
 
 un ir
 
 listing.php
 {
 include("common.functions.inc.php");
 
 ? echo function_abc(); ?
 }
 
 and there function () returns empty string ...
 

add "global $PHP_SELF;" in function_abc and it will work

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- 
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 #9958: configure script does not link libldap into PHP

2001-03-23 Thread brinel

From: [EMAIL PROTECTED]
Operating system: Solaris 8 MU3
PHP version:  4.0.4pl1
PHP Bug Type: Compile Problem
Bug description:  configure script does not link libldap into PHP

The configure script, run with the '--with-ldap' does not link php with libldap . PHP 
will compile fine, but when you try to run apache (DSO module) you get this:

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: 
/usr/local/apache/bin/httpd: fatal: relocation error: 
file /usr/local/apache/libexec/libphp4.so:
symbol ldap_unbind_s: referenced symbol not found

manually linking libphp with -lldap corrects the problem.

NOTE: solaris 8 has ldap libraries included. I would think this should be the default 
behavior.

configure was run as follows:
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs 
--with-imap=../imap-2000c --with-ldap


-- 
Edit Bug report at: http://bugs.php.net/?id=9958edit=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 #9938 Updated: Incorrect documentation in Spanish Session handler fuctions

2001-03-23 Thread lilloxx1

ID: 9938
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Description: Incorrect documentation in Spanish  Session handler fuctions

I don't speak in English so good, so i go to the spanish
section of the session handling functions, and i had a
really big headache, because it was really incomplete and
wrong. By example, in the place it must to be
session.cookie_lifetime was just session.lifetime. I didn't
figure this out until when i'd try to change this value with
ini_set("session.lifetime") and i get errors, errors and
even more errors. There is more lost documentation in this
page. So please review this and I suggest you to use the
English original page instead the Spanish one, at least
until you had fixed this error. Once again, i am sorry about
my english, but i am trying to help. So I will write it in
Spanish too.

Yo hablo en Inglés, sino que en Español, por lo que me
dirigí a la seccion de Session Handling Functions, para
poder entender mejor estas funciones, pero lo que obtuve fue
un dolor de cabeza por varios días, puesto que estaba
incompleta e incorrecta, por ejemplo, en el lugar que
debiera decir session.cockie_lifetime sólo aparece
session_lifetime. No me di cuenta de esto hasta que después
de varios días de intentar cambiar este valor con
ini_set("session_lifetime") y obtener errores, errores y más
errores fui a la página en inglés y con sorpresa comprobe
este y otros errores. Les sugiero colocar la página original
en ingles en su lugar en forma momentaria, al menos hasta
que arreglen este error, tal y como lo han hecho con otras
páginas.
Desde ya muchas gracias, y perdonen mi mal inglés (please,
forgive me for my bad english).


Previous Comments:
---

[2001-03-22 14:26:13] [EMAIL PROTECTED]
I don't speak in English so good, so i go to the spanish
section of the session handling functions, and i had a
really big headache, because it was really incomplete and wrong.
By example, in the place it must to be
session.cookie_lifetime was just session.lifetime.
I didn't figure this out until when i'd try to change this
value with  ini_set("session.lifetime") and i get error,
error and even more error.
There is more lost documentation in this page. So please
review this and I suggest you to use the English original
page instead the Spanish one, at least until you had fixed
this error.
Once again, i am sorry about my english, but i am trying to
help.

---


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


-- 
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] builtin functions / constructs

2001-03-23 Thread Phil Driscoll

it should be even more save to hardcode them in PHP itself
sticking nose in where it's not wanted
...or better still not to have language constructs at all so that everything
that looks like a function also works like a function.
/sticking nose in where it's not wanted

:)
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
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] builtin functions / constructs

2001-03-23 Thread Zeev Suraski

At 18:49 23/3/2001, Hartmut Holzgraefe wrote:
Zeev Suraski wrote:
  The language constructs PHP supports aren't a moving target, so there's no
  much sense in having a function that returns them.  You should be quite
  safe hardcoding these constructs in your application.

it should be even more save to hardcode them in PHP itself

Yeah, but doesn't make sense.  A function is useless (i.e. nothing but 
bloat) if it always returns the same thing.

Zeev


-- 
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] builtin functions / constructs

2001-03-23 Thread Zeev Suraski

There's no real motivation to do that actually.  These constructs are very 
unique, and the fact they have construct-specific syntax doesn't have any 
negative impact, as it's still within the standard syntax rules of PHP (all 
but echo, which is a remnant of PHP/FI 2, and perhaps it was a mistake to 
copy its syntax as-is).
Let's not look for problems where they don't exist...

Zeev

At 20:31 23/3/2001, Phil Driscoll wrote:
 it should be even more save to hardcode them in PHP itself
sticking nose in where it's not wanted
...or better still not to have language constructs at all so that everything
that looks like a function also works like a function.
/sticking nose in where it's not wanted

:)
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org

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




RE: [PHP-DEV] 4.0.5 RC2 Win32 Binaries?

2001-03-23 Thread James Moore


 Any chance in getting the Win32 4.0.5 RC2 binaries built? The
 4.0.5 RC1 binaries did not include crypt() support, so I could
 not fully test them on our test server.

Ill pop a build up later although I dont know if I can get crypt support in
there.. Ill try

James


-- 
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] 4.0.5 RC2 Win32 Binaries?

2001-03-23 Thread Daniel Beulshausen

At 19:30 03.04.2001 +0100, James Moore wrote:

  Any chance in getting the Win32 4.0.5 RC2 binaries built? The
  4.0.5 RC1 binaries did not include crypt() support, so I could
  not fully test them on our test server.

Ill pop a build up later although I dont know if I can get crypt support in
there.. Ill try

is crypt that crucial? it has to be patched in, see 
http://www.php4win.de/article.php3
most php.net win32 releases support it, so you can expect that 4.0.5 will 
come with it too...

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.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]




RE: [PHP-DEV] 4.0.5 RC2 Win32 Binaries?

2001-03-23 Thread Matt White

Daniel;

No, I suppose not for the RC.  For the final release, yes. =)

- Matt


 Daniel Beulshausen [EMAIL PROTECTED] 03/23/01 03:12PM 
At 19:30 03.04.2001 +0100, James Moore wrote:

  Any chance in getting the Win32 4.0.5 RC2 binaries built? The
  4.0.5 RC1 binaries did not include crypt() support, so I could
  not fully test them on our test server.

Ill pop a build up later although I dont know if I can get crypt support in
there.. Ill try

is crypt that crucial? it has to be patched in, see 
http://www.php4win.de/article.php3 
most php.net win32 releases support it, so you can expect that 4.0.5 will 
come with it too...

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED] 
using php on windows? http://www.php4win.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] PHP 4.0 Bug #9959: can't open manual - receive invalid header error

2001-03-23 Thread annie

From: [EMAIL PROTECTED]
Operating system: nt4
PHP version:  4.0.4pl1
PHP Bug Type: Documentation problem
Bug description:  can't open manual - receive invalid header error

I am trying to oen the english version of the manual in text for html form, and 
receive the following error:

compilation error:unrecognized header string.

I am unable to open the manual 
help?


-- 
Edit Bug report at: http://bugs.php.net/?id=9959edit=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 #9960: IIS Crashes

2001-03-23 Thread astano

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Sp1
PHP version:  4.0 Latest CVS (23/03/2001)
PHP Bug Type: IIS related
Bug description:  IIS Crashes

Php is installed as isapi in IIS after some time of using php pages the web server 
hangs and stops responding
Stopping and restarting the web server fix the situation

No Modifications done to php.ini and standard setup used...



-- 
Edit Bug report at: http://bugs.php.net/?id=9960edit=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 #9961: CGI Error

2001-03-23 Thread stephan

From: [EMAIL PROTECTED]
Operating system: Windows NT Terminal Server
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  CGI Error

I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script 
my Browser gets following message:

headtitleError in CGI Application/title/head
bodyh1CGI Error/h1The specified CGI application misbehaved by not returning a 
complete set of HTTP headers.  The headers it did return are:pppre/pre

i've even once replace the php.exe whith a programm that prints out all the parameters 
that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes 
wrong directory information). So i think the php.exe just imediatly shuts down - 
without printing any text - after beeing called, but why?


-- 
Edit Bug report at: http://bugs.php.net/?id=9961edit=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 #9960 Updated: IIS Crashes

2001-03-23 Thread jmoore

ID: 9960
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: IIS related
Assigned To: 
Comments:

Not enough information.. please provide more information and reopen the bug report. We 
have no idea of your setup really.. any modules your using when it crashes or what 
causes it to crash. From your bug report I could list a couple of hundred things that 
could cause it to crash..

Thanks

James

Previous Comments:
---

[2001-03-23 15:30:29] [EMAIL PROTECTED]
Php is installed as isapi in IIS after some time of using php pages the web server 
hangs and stops responding
Stopping and restarting the web server fix the situation

No Modifications done to php.ini and standard setup used...


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9960edit=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 #9960 Updated: IIS Crashes

2001-03-23 Thread jmoore

ID: 9960
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IIS related
Assigned To: 
Comments:

closing

Previous Comments:
---

[2001-03-23 15:43:33] [EMAIL PROTECTED]
Not enough information.. please provide more information and reopen the bug report. We 
have no idea of your setup really.. any modules your using when it crashes or what 
causes it to crash. From your bug report I could list a couple of hundred things that 
could cause it to crash..

Thanks

James

---

[2001-03-23 15:30:29] [EMAIL PROTECTED]
Php is installed as isapi in IIS after some time of using php pages the web server 
hangs and stops responding
Stopping and restarting the web server fix the situation

No Modifications done to php.ini and standard setup used...


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9960edit=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 #9961 Updated: CGI Error

2001-03-23 Thread phildriscoll

ID: 9961
Updated by: phildriscoll
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IIS related
Assigned To: 
Comments:

This error occurs when php doesn't output anything. In this instance, it is almost 
always because IUSR_machinename doesn't have sufficient permissions to cause php.exe 
to execute - often because of file permissions on php.exe, php.ini or php4ts.dll, or 
any extensions you are trying to load, but sometimes because IUSR_machinename 
doesn't have sufficient privileges to cause a program to execute.

Have a go with these issues, and if you still have no success, post your problem on 
the php windows list and we will sort you out there.

Previous Comments:
---

[2001-03-23 15:34:17] [EMAIL PROTECTED]
I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script 
my Browser gets following message:

headtitleError in CGI Application/title/head
bodyh1CGI Error/h1The specified CGI application misbehaved by not returning a 
complete set of HTTP headers.  The headers it did return are:pppre/pre

i've even once replace the php.exe whith a programm that prints out all the parameters 
that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes 
wrong directory information). So i think the php.exe just imediatly shuts down - 
without printing any text - after beeing called, but why?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9961edit=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 #9956 Updated:

2001-03-23 Thread sniper

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

Please use [EMAIL PROTECTED] to report these kind of errors.

--Jani


Previous Comments:
---

[2001-03-23 11:17:29] [EMAIL PROTECTED]
Search Results

Warning: Unable to fork [/local/htdig/bin/htphp.sh 
"words=robynetconfig=phpexclude=/sourcerestrict=http://www.php.net/"] in 
/local/Web/sites/phpweb/search.php on line 183
There was an error executing this query.

Please try later





---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9956edit=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 #6275 Updated: ODBC_Prepare/ODBC_Execute fails with parameters

2001-03-23 Thread kalowsky

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

Tried updating to the latest MDAC (2.6) and this provided no change in the given 
example.  It did fix one or two issues, but in generally hasn't helped any.

Previous Comments:
---

[2001-03-11 20:59:58] [EMAIL PROTECTED]
it seems the sample script provided is failing in the 
SQLBindParameter call.  Why?  The SQLError call tells us 
it's trying to bind a parameter of the wrong type.  

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

---

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

---

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

My problem is odbc_execute fails with the following error message:

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

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

Sample code:

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




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6275edit=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 #5595 Updated: ORACLE ODBC ver 8.01.55.00 can't make subselects and funcition odbc_exec

2001-03-23 Thread kalowsky

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

and again, is this still occuring in the latest CVS?

Previous Comments:
---

[2000-09-05 03:05:38] [EMAIL PROTECTED]
User reported problem still exist with latest CVs.

--Jani

---

[2000-09-04 20:48:36] [EMAIL PROTECTED]
Is this still happening with php4.0.2 ?

--Jani

---

[2000-07-14 18:18:52] [EMAIL PROTECTED]
If You  use subselects and odbc_exec functions the browser hangs, and no answer is 
sended by the server.
You have to use odbc_prepare/odbc_execute instead of.
Problably something wrong with odbc_exec function.
This bug  affects all php4x versions

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5595edit=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 #9962: php.ini-dist is setup for unix.

2001-03-23 Thread sean . m . alderman

From: [EMAIL PROTECTED]
Operating system: Windows NT
PHP version:  4.0.4pl1
PHP Bug Type: *Install and Config
Bug description:  php.ini-dist is setup for unix.

Just noticed that all of the paths in the [session] section of the php.ini-dist file 
are set to unix paths.  I downloaded the Win32 binary distribution and couldn't get 
anything using a session_start() working because of these file paths for the 
session.cookie_domain and session.save_path are set to unix path names.  This might be 
nit picky, but shouldn't a binary Win32 distribution be configured to run with Windows 
path names?


-- 
Edit Bug report at: http://bugs.php.net/?id=9962edit=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 #9955 Updated: Problem Connecting to the Database

2001-03-23 Thread kalowsky

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

do try the latest 4.0.4pl1 or even one of the RC's for 4.0.5 and see if this continues 
for you

Previous Comments:
---

[2001-03-23 09:47:26] [EMAIL PROTECTED]
OS: WinNT 4.0 SP
PHP version: 4.0.0
Database: DB2 (remote on network)
Network protocol: TCP/IP

In a previous note from yesterday, Chris explained that there is no ODBC involved in 
connecting to DB2, the functions just share names:

"Note: There is no ODBC involved when connecting to the above databases. The functions 
that you use to speak natively to them just happen to share the same names and syntax 
as the ODBC functions.
SNIP

-Chris"

When I tried to use ODBC_CONNECT('ip_address', 'user', 'password');

I got the following ODBC error back from the operating system:

"Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and 
no default driver specified, SQL state IM002 in SQLConnect in e:wwwdo_dbtest.php on 
line 7
Couldn't connect."

This looks like to me that ODBC IS in fact being called. and it is causing 
interference with me getting a connection to my DB2 database.

What could be wrong? Does the newer releases of PHP resolve this or am I doing 
something wrong on my end?

Thank you.

Chris Streeter

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9955edit=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 #9943 Updated: Php y mysql

2001-03-23 Thread sniper

ID: 9943
Updated by: sniper
Reported By: [EMAIL PROTECTED];alejandrogarcia_zav
Old-Status: Open
Status: Feedback
Bug Type: *General Issues
Assigned To: 
Comments:

Please use english when submitting bug reports. There aren't
so many spanish speakers who handle these..

--Jani


Previous Comments:
---

[2001-03-22 19:39:37] [EMAIL PROTECTED];alejandrogarcia_zav
Hola: 
Instale red hat 7  y desintale php4 y tengo unos parches que un profesor nos dio para 
que php y mysql pudieran interactuar lo que hice fue desintalar php y volverlo a 
instalar modificando el php.spect agregandole unas lineas como --with-mysql=/usr
--with-gd--enable-track-vars  tambien le baje unos parches a mysql y ya lo corre y 
no hay problema, para hacer una pagina de prueba me informaron que creara un archivo 
con extension .php3  y que pusiera esta linea  ? phpinfo() ?   y ahi debe aparecer 
toda la informacion  llamando el navegador y dando la direccion donde edite esta 
ultima linea.
Espero me puedan ayudar 
Gracias Alejandro

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9943edit=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 #9944 Updated: Sablot and zlib

2001-03-23 Thread sniper

ID: 9944
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Assigned To: 
Comments:

Remove the '/lib' parts. ie. don't use /usr/local/lib
in configure options but /usr/local

--Jani


Previous Comments:
---

[2001-03-22 20:10:21] [EMAIL PROTECTED]
Hi!

I tried to install php with a lot of modules including Sablot

This is my output 

checking whether to include zlib support... yes, shared
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib = 1.0.9.


any this is my configure

./configure --with-zlib=shared 
--with-apxs=/usr/local/sbin/apxs 
--with-config-file-path=/usr/local/etc 
--enable-versioning 
--with-system-regex 
--disable-debug 
--enable-track-vars 
--with-expat=/usr/local/lib 
--with-sablot=/usr/local/lib 
--with-gd=/usr/local 
--with-ttf=/usr/local 
--with-mcrypt=/usr/local 
--with-imap=/usr/local 
--with-mysql=/usr/local 
--enable-ftp 
--enable-sockets 
--with-pgsql 
--prefix=/usr/local i386--freebsd4.3

i also tried --with-zlib=/usr/local/include 

I can't make this work. I use Sablot 0.51 and Zlib 1.1.3
If i remove line --with-sablot everything works fine, but not always.


I there some bug or what

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9944edit=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 #9947 Updated: function mssql undefine

2001-03-23 Thread sniper

ID: 9947
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-22 22:35:22] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9947edit=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 #9944 Updated: Sablot and zlib

2001-03-23 Thread uros

ID: 9944
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: *Install and Config
Description: Sablot and zlib

Nothing helps. It's no mater what path i use. Every time the same error. It helps only 
if I disable sablot. But i need both.

On some machine i was able to install with sablot 0.44 but i have problems compiling 
v0.44, because there is no binary for FreeBSD.

Previous Comments:
---

[2001-03-23 17:12:17] [EMAIL PROTECTED]
Remove the '/lib' parts. ie. don't use /usr/local/lib
in configure options but /usr/local

--Jani


---

[2001-03-22 20:10:21] [EMAIL PROTECTED]
Hi!

I tried to install php with a lot of modules including Sablot

This is my output 

checking whether to include zlib support... yes, shared
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib = 1.0.9.


any this is my configure

./configure --with-zlib=shared 
--with-apxs=/usr/local/sbin/apxs 
--with-config-file-path=/usr/local/etc 
--enable-versioning 
--with-system-regex 
--disable-debug 
--enable-track-vars 
--with-expat=/usr/local/lib 
--with-sablot=/usr/local/lib 
--with-gd=/usr/local 
--with-ttf=/usr/local 
--with-mcrypt=/usr/local 
--with-imap=/usr/local 
--with-mysql=/usr/local 
--enable-ftp 
--enable-sockets 
--with-pgsql 
--prefix=/usr/local i386--freebsd4.3

i also tried --with-zlib=/usr/local/include 

I can't make this work. I use Sablot 0.51 and Zlib 1.1.3
If i remove line --with-sablot everything works fine, but not always.


I there some bug or what

---


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


-- 
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 #9944 Updated: Sablot and zlib

2001-03-23 Thread uros

ID: 9944
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: *Install and Config
Description: Sablot and zlib

Nothing helps. It's no mater what path i use. Every time the same error. It helps only 
if I disable sablot. But i need both.

On some machine i was able to install with sablot 0.44 but i have problems compiling 
v0.44, because there is no binary for FreeBSD.

Previous Comments:
---

[2001-03-23 18:40:01] [EMAIL PROTECTED]
Nothing helps. It's no mater what path i use. Every time the same error. It helps only 
if I disable sablot. But i need both.

On some machine i was able to install with sablot 0.44 but i have problems compiling 
v0.44, because there is no binary for FreeBSD.

---

[2001-03-23 17:12:17] [EMAIL PROTECTED]
Remove the '/lib' parts. ie. don't use /usr/local/lib
in configure options but /usr/local

--Jani


---

[2001-03-22 20:10:21] [EMAIL PROTECTED]
Hi!

I tried to install php with a lot of modules including Sablot

This is my output 

checking whether to include zlib support... yes, shared
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib = 1.0.9.


any this is my configure

./configure --with-zlib=shared 
--with-apxs=/usr/local/sbin/apxs 
--with-config-file-path=/usr/local/etc 
--enable-versioning 
--with-system-regex 
--disable-debug 
--enable-track-vars 
--with-expat=/usr/local/lib 
--with-sablot=/usr/local/lib 
--with-gd=/usr/local 
--with-ttf=/usr/local 
--with-mcrypt=/usr/local 
--with-imap=/usr/local 
--with-mysql=/usr/local 
--enable-ftp 
--enable-sockets 
--with-pgsql 
--prefix=/usr/local i386--freebsd4.3

i also tried --with-zlib=/usr/local/include 

I can't make this work. I use Sablot 0.51 and Zlib 1.1.3
If i remove line --with-sablot everything works fine, but not always.


I there some bug or what

---


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


-- 
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] RE: 4.0.5RC1 static build with Apache 1.3.19 problem

2001-03-23 Thread Steven Roussey

RC2 builds fine with my rebuild script (always good for testing :).

Sincerely,

Steven Roussey
Network54.com
http://network54.com/?pp=e


 -Original Message-
 From: Steven Roussey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 21, 2001 6:40 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP-DEV] RE: 4.0.5RC1 static build with Apache 1.3.19
 problem


 Yes, I have tried it both ways. I configure Apache a second time
 after making php and it still does not work. :(

 Sincerely,

 Steven Roussey
 Network54.com
 http://network54.com/?pp=e



  Subject: Re: [PHP-DEV] RE: 4.0.5RC1 static build with Apache 1.3.19
  problem
 
 
  Did you configure Apache after you did the make install from
 PHP? In the
  PHP directory run make install-sapi and see that PHP copies
 everything to
  the right directory.
 
  Andi
 
  At 07:12 PM 3/16/2001 -0800, Steven Roussey wrote:
Subject: 4.0.5RC1 static build with Apache 1.3.19 problem
  
  Also happens in Apache 1.3.12
  
  Sincerely,
  
  Steven Roussey
  Network54.com
  http://network54.com/?pp=e
  
  cd apache_1.3.12
  CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6
 -march=i686  " \
  ./configure \
  --activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
  cd ..
  
  cd php-4.0.5RC1
  CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6
 -march=i686 " \
  ./configure --with-mysql --with-xml --with-dom --with-zlib --with-gd  \
  --with-openssl --with-sablot --with-apache=../apache_1.3.12
  --enable-inline-
  optimization
  make
  make install
  cd ..
  
  cd apache_1.3.12
  make
  === src/modules/php4
  make[4]: *** No rule to make target `all'.  Stop.
  make[3]: *** [all] Error 1
  make[2]: *** [subdirs] Error 1
  make[2]: Leaving directory
 `/home/network54/webserver/apache_1.3.12/src'
  make[1]: *** [build-std] Error 2
  make[1]: Leaving directory `/home/network54/webserver/apache_1.3.12'
  make: *** [build] Error 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]
 




wget --passive-ftp http://www.openssl.org/source/openssl-0.9.6.tar.gz
gunzip  openssl-0.9.6.tar.gz | tar xvf -
cd openssl-0.9.6
make clean
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./config
make
make install
cd ..

wget --passive-ftp 
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/libxml2-2.3.4.tar.gz
gunzip  libxml2-2.3.4.tar.gz | tar xvf -
cd libxml2-2.3.4
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure --disable-corba
make
make install
cd ..

wget --passive-ftp http://ftp1.sourceforge.net/expat/expat-1.95.1.tar.gz
gunzip  expat-1.95.1.tar.gz | tar xvf -
cd expat-1.95.1
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure 
make
make install
cd ..

wget --passive-ftp http://www.gingerall.com/perl/rd?url=sablot/Sablot-0.51.tar.gz
gunzip  Sablot-0.51.tar.gz | tar xvf -
cd Sablot-0.51
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure 
make
make install
cd ..

wget --passive-ftp http://freshmeat.net/projects/zlib/altdownload/zlib.tar.gz
gunzip  zlib.tar.gz | tar xvf -
cd zlib-1.1.3
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure --shared
make
make install
cd ..

wget --passive-ftp  http://httpd.apache.org/dist/apache_1.3.19.tar.gz
gunzip  apache_1.3.19.tar.gz | tar xvf -
cd apache_1.3.19
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686  " \
./configure \
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite 
cd ..

wget --passive-ftp  http://www.php.net/distributions/php-4.0.5RC2.tar.gz 
gunzip  php-4.0.5RC2.tar.gz | tar xvf -
cd php-4.0.5RC2
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure --with-mysql --with-xml --with-dom --with-zlib --with-gd  \
--with-openssl --with-sablot --with-apache=../apache_1.3.19 
--enable-inline-optimization
make
make install
cd ..

cd apache_1.3.19
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686  " \
./configure \
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite 
make
make install
cd ..

cd php-4.0.5RC2
CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
./configure --with-mysql --with-xml --with-dom --with-zlib --with-gd  \
--with-openssl --with-sablot --enable-inline-optimization
make
make install
cd ..





-- 
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 #9963: strtr behaves differently than unix tr

2001-03-23 Thread chris_abbey

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.2
PHP Bug Type: Strings related
Bug description:  strtr behaves differently than unix tr

$str = "abcdefghij";
$str = strtr($str, "abcdef", "XYZ");

results in "XYZdefghij"

where as in standard unix:

echo "abcdefghij" | tr 'abcdef' 'XYZ'

would output "XYghij" because the last character
is repeated automatically. Some versions will return
"XYZXYZghij" because they reuse the second string, but
I'm not if that's the "correct" behaviour, or if the
fisrt one is... for what I'm trying to accomplish it
doesn't matter though.

An example of why this is a problem...

$obj_nom = "The Foo-Object";
$file_nom = strtr($obj_nom, " -", ""); // or ..., '');

One would expect this to assign "TheFooObject" to
$file_nom... but instead no translation is performed.

This would also be the same as:

tr -d ' -'

which is logically equivalent to:

tr ' -' ''

There does not appear to be a native php function to
do the same thing, infact the editors of the user coments
have a couple times told people to use strtr or one of
the regexp replacement libraries to accomplish this...
not knowing that none of them seem to do so.


-- 
Edit Bug report at: http://bugs.php.net/?id=9963edit=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 #9964: Unresolved symbols

2001-03-23 Thread shmengie_2000

From: [EMAIL PROTECTED]
Operating system: Win NT 4.0
PHP version:  4.0 Latest CVS (24/03/2001)
PHP Bug Type: Compile Failure
Bug description:  Unresolved symbols

Trying to build php from recent cvs snaps php4-200103231245 and one from a day earlier.

Compile is smooth, except for a few unresolved symbols:

Linking...
   Creating library ..\Debug/php4nts_debug.lib and object ..\Debug/php4nts_debug.exp
internal_functions_win32.obj : error LNK2001: unresolved external symbol 
_VARIANT_module_entry
COM.obj : error LNK2001: unresolved external symbol _php_char_to_OLECHAR
COM.obj : error LNK2001: unresolved external symbol _php_OLECHAR_to_char
COM.obj : error LNK2001: unresolved external symbol _php_pval_to_variant
COM.obj : error LNK2001: unresolved external symbol _php_variant_to_pval
..\Debug\php4nts_debug.dll : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

php4nts_debug.dll - 6 error(s), 0 warning(s)


-- 
Edit Bug report at: http://bugs.php.net/?id=9964edit=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 #9965: email command gives 'Warning: Failed to Receive '

2001-03-23 Thread rockhbrown

From: [EMAIL PROTECTED]
Operating system: Windows 98 2nd edition (PWS)
PHP version:  4.0.4pl1
PHP Bug Type: *Mail Related
Bug description:  email command gives 'Warning: Failed to Receive '

I am using the Windows binary version of 4.0.4pl1, nothing else added.  Server is the 
PWS.

Script:
--
!doctype html public "-//W3C//DTD HTML 4.0 //EN" 
html
head
   titleMail Test!/title
/head
body
  This is a test to see if it worksBR

 ?
mail("[EMAIL PROTECTED]", "Subject Line...", "Line 1\nLine 2\nLine 3");
 ?
/body
/html
--


Results
--
This is a test to see if it works

Warning: Failed to Receive in D:\Inetpub\wwwroot\cgi\test.php on line 10
--

It appears to be related to bug id #4756, but since I do not have the source code, I 
can not confirm this.


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