[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-24 Thread sascha . winkler

ID: 12335
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

I can't put this script to the internet, because I test it only on a fallback server 
that is currently not avaliable via the internet. On our live system that is in the 
internet we still use an older version (4.0.4), because of  the problem with the 
mail() function in version 4.0.4.

Some more information:
I use the sendmail wrapper from qmail.
In the php.ini file the I have made the following entry: 
sendmail_path   =   "/usr/lib/sendmail -t"
To update apache to the new php version I replaced only the libphp4.so file. 






Previous Comments:


[2001-07-24 17:41:53] [EMAIL PROTECTED]

Since everybody else that has tried this says it works fine,
can you put this script on the internet so that I can see
this happen?



[2001-07-24 08:49:13] [EMAIL PROTECTED]

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?



[2001-07-24 08:03:30] [EMAIL PROTECTED]

I had first the bug with id 12024 and I have fixed it like described in the bug 
report.
Now I can send mails, but the mail() function returns false altough the mail was sent.
I use the following script to test the mail() function.
 







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


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




[PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread cynic

ID: 12323
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

could you please check the source of the output (View -> Page Source in Netscape 4.x, 
and View -> Source in IE) to check that PHP scripts get actually executed?

(Sorry if this is dumb, but the example you provided really looks like this is the 
case.)

Previous Comments:


[2001-07-24 15:40:01] [EMAIL PROTECTED]

For those asking for an example of the script and the 
output.

Using the following:

");
print("Still working next line is going to be a 
comment");
// This line should be a comment
print("This is the next line past the comment");
?>


I get the following result:

// This line should be a comment print("This is the next 
line past the comment
"); Working so far 
Still working next line is going to be a comment


Thanking everyone for the help.  Greatly appreciate it.

Lael



[2001-07-24 14:28:59] [EMAIL PROTECTED]

Also in reply to the other suggestions regarding one liners 
vs multiple line comments:

The lines I have commented are all on their own line and 
are one liners.  More or less, anywhere I use a "//" to 
comment, the entire line is displayed to the user.  The 
following two scripts will give me the same result.





I noticed in the documentation that the "//" was considered 
a C++ style of commenting.  Do I possibly need a particular 
module or directive to say that "//" is a comment?

Thanks,
Lael



[2001-07-24 14:27:13] [EMAIL PROTECTED]

I received an email stating that it could not be reproduced 
on a  RH Linux 7 machine.  This problem is specific to Mac 
OS X client, so I'm sure that you were unable to reproduce 
it on your box.

Either way, this is definately happening and is not "bogus" 
as you said.



[2001-07-24 14:16:26] [EMAIL PROTECTED]

unable to reproduce on RH Linux 7.

This sounds very bogus.



[2001-07-23 18:35:15] [EMAIL PROTECTED]

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris



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


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


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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread cynic

ID: 12325
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6


Previous Comments:


[2001-07-24 20:28:02] [EMAIL PROTECTED]

register globals is on.  The php.ini is the same one that came with the installer 
available at php.net.  We made no changes to it.



[2001-07-24 17:21:38] [EMAIL PROTECTED]

in your php.ini file make sure this line is included...

register_globals = on



[2001-07-24 16:18:17] [EMAIL PROTECTED]

I think this is the relevant section:
;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  = E_ALL; display all errors, warnings and notices

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if 
there is no querystring specified.




[2001-07-24 09:24:54] [EMAIL PROTECTED]

Can you include a copy of your php.ini file?



[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


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




[PHP-DEV] Bug #12355: PHP-CVS doesn't compile --with-ncurses

2001-07-24 Thread mathieu

From: [EMAIL PROTECTED]
Operating system: Slackware 7.1 (Linux 2.4.7)
PHP version:  4.0CVS-2001-07-25
PHP Bug Type: Compile Failure
Bug description:  PHP-CVS doesn't compile --with-ncurses

./.libs/libphp4.a(ncurses_functions.o): In function
`php_if_ncurses_use_extended_names':
/usr/src/php4/ext/ncurses/ncurses_functions.c:857: undefined reference to
`use_extended_names'
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/usr/src/php4'
make: *** [all-recursive] Error 1
-- 
Edit bug report at: http://bugs.php.net/?id=12355&edit=1


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




[PHP-DEV] PHP and WebDAV

2001-07-24 Thread Christoph Steinmann

> DATE: 08/31/1999 06:57:01
> SUBJECT: RE:  [PHP3] WebDAV & PHP...

> We are not quite there with respect to integration of PHP with WebDAV, but
> Stig and I are actively looking at it, and you will soon be able to do
> some nifty things.  We are likely talking weeks here, not months.  Stay
> tuned.
>
> -Rasmus


[...] For example, WebDAV support will play a big role in the future of web
development," Sascha says." [...]

zend.com  / hall of fame / sascha schumann

Are there any concrete plans to integrate functions or classes to access
external WebDAV ressources? WebDAV seems to be used more and more to upload
data, in replacement of FTP. It would be cool to have some functions to read
and write files and directories over WebDAV.

I don't know wheter WebDAV functions should be in a php extension (like file
system and FTP) or in a PEAR class (HTTP). [EMAIL PROTECTED]
has opened a project called phpdav on Sourceforge some months ago, but the
files are not yet published.

Christoph





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




Re: [PHP-DEV] Security Issues

2001-07-24 Thread Zeev Suraski

Setting register_globals to off (which is highly recommended) would prevent 
PHP from defining form variables as global variables.  For quite a while, 
since the PHP 3.0 times, PHP provided an alternative way of accessing 
variables - using special designated arrays - $HTTP_POST_VARS, 
$HTTP_GET_VARS, and so forth.  As of PHP 4.0.3 (IIRC), these variables are 
always defined, and are protected (to a degree) by PHP.  Setting 
register_globals to off effectively prevents any outer access to your 
namespace, outside $HTTP_*_VARS[].

Zeev

At 12:28 24/07/2001, PHP wrote:

>Hey all,
>
> I am new to this list so if this topic has already been beaten to 
> death let me know.
>
> I assume that many of you have already read this article
>
> http://lwn.net/2001/0704/a/study-in-scarlet.php3 
>
>
> about many of the basic security risks you need to be aware of 
> when developing in PHP.  I was curious what ideas have already been 
> covered in the areas of stopping this.  I also wanted to offer up my own 
> suggestion.
>
> It seems that all the issues arise from the feature that sets PHP 
> variable to be form variables.  The cleanest solution I can think of 
> (albeit it breaks backward compatibility) would be to split the 
> names-pace of form variables.  If normal or session variable stayed as 
> $foo and $bar then form variables would be %foo and %bar, or something 
> similar.   Breaking backward compatibility is bad but it would allow 
> future applications to be free of these dangers and could be something 
> set in the php.ini or rather a directive in the php script to allow old 
> an new style scripts on the same server.
>
> If there is work already being done in this area please point me 
> to where I can read more about it.  PHP is far and away the best web 
> development language and is really only hindered by security issues like this.
>
> Orion
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

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


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




[PHP-DEV] Bug #12354 Updated: getImageSize() fails for some JPEGs

2001-07-24 Thread andy

ID: 12354
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GetImageSize related
Operating System: linux
PHP Version: 4.0.6
New Comment:

works fine for me with 4.0.6 release.

Previous Comments:


[2001-07-24 20:12:15] [EMAIL PROTECTED]

... and checking the image you posted, it works fine for me with the current 
getimagesize() in CVS.  And I don't think it has changed since 4.0.6




[2001-07-24 20:04:05] [EMAIL PROTECTED]

Are you absolutely sure you are using PHP 4.0.6?  This was a bug in 4.0.5.



[2001-07-24 19:57:23] [EMAIL PROTECTED]

JPEGs saved directly from some digital cameras do not contain whatever data 
getImageSize relies on to produce an array of size and type data. Opening such an 
image and re-saving (even as JPEG) within an image editor (photoshop or equivalent) 
will 'fix' the image, allowing getImageSize() to read it.

Here's an image that causes getImageSize() to fail:
http://sitefoundry.com/php/DSC00021.JPG

Here's the same image after opening/saving; getImageSize() copes fine with this one:
http://sitefoundry.com/php/DSC00021fixed.jpg

Here's the output of ImageMagick's 'identify' utility for both images:
DSC00021fixed.jpg 640x480 DirectClass 81kb JPEG 1s
DSC00021.JPG[1] 640x480 DirectClass 88kb JPEG 2s

Here's the output of 'file':
DSC00021fixed.jpg: JPEG image data, JFIF standard
DSC00021.JPG:  JPEG image data






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


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




[PHP-DEV] Bug #12349 Updated: Broken PNG image

2001-07-24 Thread andy

ID: 12349
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

Which version of GD do you have?

Previous Comments:


[2001-07-24 21:43:36] [EMAIL PROTECTED]

No, only with PNG, with JPG format working fine,
and i dont install GIF support, only standart installation of PHP 4.0.6

And - i copy php_gd.dll from PHP 4.0.5 in to PHP 4.0.6 directory - CopyResized 
working, but some GD function not working - PHP crashed.

PS Sorry for bad english, im living in Ukraine and dont have big language practic



[2001-07-24 17:39:23] [EMAIL PROTECTED]

does this happen with jpgs or gifs (if you have support for
gifs)?



[2001-07-24 14:33:30] [EMAIL PROTECTED]

i have problem with create small copy of PNG transparent images:

Windows 98
apache 1.3.20
php 4.0.6

$s[1])
$z = $s[0]/60;
else
$z = $s[1]/60;
$x = (int)($s[0]/$z);
$y = (int)($s[1]/$z);
$dst_img = ImageCreate($x,$y);
$src_img = ImageCreateFromPNG("../img/test.png");
$colT = ImageColorAllocate($dst_img,0,255,0);
ImageFill($dst_img,0,0,$colT);
ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$s[0],$s[1]);
ImageColorTransparent($dst_img,$colT);
ImagePNG($dst_img);
ImageDestroy($src_img);
ImageDestroy($dst_img);
?>

and i have broken fullcolored rectangle

BUT - with php 4.0.5 work all best





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


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




[PHP-DEV] Bug #12349 Updated: Broken PNG image

2001-07-24 Thread design

ID: 12349
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

No, only with PNG, with JPG format working fine,
and i dont install GIF support, only standart installation of PHP 4.0.6

And - i copy php_gd.dll from PHP 4.0.5 in to PHP 4.0.6 directory - CopyResized 
working, but some GD function not working - PHP crashed.

PS Sorry for bad english, im living in Ukraine and dont have big language practic

Previous Comments:


[2001-07-24 17:39:23] [EMAIL PROTECTED]

does this happen with jpgs or gifs (if you have support for
gifs)?



[2001-07-24 14:33:30] [EMAIL PROTECTED]

i have problem with create small copy of PNG transparent images:

Windows 98
apache 1.3.20
php 4.0.6

$s[1])
$z = $s[0]/60;
else
$z = $s[1]/60;
$x = (int)($s[0]/$z);
$y = (int)($s[1]/$z);
$dst_img = ImageCreate($x,$y);
$src_img = ImageCreateFromPNG("../img/test.png");
$colT = ImageColorAllocate($dst_img,0,255,0);
ImageFill($dst_img,0,0,$colT);
ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$s[0],$s[1]);
ImageColorTransparent($dst_img,$colT);
ImagePNG($dst_img);
ImageDestroy($src_img);
ImageDestroy($dst_img);
?>

and i have broken fullcolored rectangle

BUT - with php 4.0.5 work all best





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


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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread rasmus

ID: 12325
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

No bug here.  The default php.ini file has error_reporting set to E_ALL & ~E_NOTICE.  
You have it set to E_ALL which is why you get the warning.
The proper way to code this is to use:

if(isset($QUERY_STRING)) ...

And no, $QUERY_STRING should not be set when there is no query string arguments in the 
URL.

Previous Comments:


[2001-07-24 20:28:02] [EMAIL PROTECTED]

register globals is on.  The php.ini is the same one that came with the installer 
available at php.net.  We made no changes to it.



[2001-07-24 17:21:38] [EMAIL PROTECTED]

in your php.ini file make sure this line is included...

register_globals = on



[2001-07-24 16:18:17] [EMAIL PROTECTED]

I think this is the relevant section:
;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  = E_ALL; display all errors, warnings and notices

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if 
there is no querystring specified.




[2001-07-24 09:24:54] [EMAIL PROTECTED]

Can you include a copy of your php.ini file?



[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


-- 
PHP Devel

[PHP-DEV] Bug #12353 Updated: PHP4.0.05, should be apache 1.3 API, not EAPI, please recompile DEAPI

2001-07-24 Thread andy

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

does this happen with 4.0.6?

Previous Comments:


[2001-07-24 19:52:51] [EMAIL PROTECTED]

Error : [warn] Loaded DSO c:/usr/php/sapi/php4apache.dll plain apache 1.3 API, this 
module might crash under EAPI! (please recompile with DEAPI)

I have apache 1.3.20 installed using indigostar.  I downloaded the 4.0.5 php binary 
and installed it as per instructions.  It runs with the error message above.  How do I 
recompile with DEAPI or resolve this problem using compiled binaries.


Dave







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


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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread danradigan

ID: 12325
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

register globals is on.  The php.ini is the same one that came with the installer 
available at php.net.  We made no changes to it.

Previous Comments:


[2001-07-24 17:21:38] [EMAIL PROTECTED]

in your php.ini file make sure this line is included...

register_globals = on



[2001-07-24 16:18:17] [EMAIL PROTECTED]

I think this is the relevant section:
;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  = E_ALL; display all errors, warnings and notices

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if 
there is no querystring specified.




[2001-07-24 09:24:54] [EMAIL PROTECTED]

Can you include a copy of your php.ini file?



[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


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




[PHP-DEV] Bug #12354 Updated: getImageSize() fails for some JPEGs

2001-07-24 Thread rasmus

ID: 12354
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GetImageSize related
Operating System: linux
PHP Version: 4.0.6
New Comment:

... and checking the image you posted, it works fine for me with the current 
getimagesize() in CVS.  And I don't think it has changed since 4.0.6


Previous Comments:


[2001-07-24 20:04:05] [EMAIL PROTECTED]

Are you absolutely sure you are using PHP 4.0.6?  This was a bug in 4.0.5.



[2001-07-24 19:57:23] [EMAIL PROTECTED]

JPEGs saved directly from some digital cameras do not contain whatever data 
getImageSize relies on to produce an array of size and type data. Opening such an 
image and re-saving (even as JPEG) within an image editor (photoshop or equivalent) 
will 'fix' the image, allowing getImageSize() to read it.

Here's an image that causes getImageSize() to fail:
http://sitefoundry.com/php/DSC00021.JPG

Here's the same image after opening/saving; getImageSize() copes fine with this one:
http://sitefoundry.com/php/DSC00021fixed.jpg

Here's the output of ImageMagick's 'identify' utility for both images:
DSC00021fixed.jpg 640x480 DirectClass 81kb JPEG 1s
DSC00021.JPG[1] 640x480 DirectClass 88kb JPEG 2s

Here's the output of 'file':
DSC00021fixed.jpg: JPEG image data, JFIF standard
DSC00021.JPG:  JPEG image data






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


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




[PHP-DEV] Bug #12354 Updated: getImageSize() fails for some JPEGs

2001-07-24 Thread rasmus

ID: 12354
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GetImageSize related
Operating System: linux
PHP Version: 4.0.6
New Comment:

Are you absolutely sure you are using PHP 4.0.6?  This was a bug in 4.0.5.

Previous Comments:


[2001-07-24 19:57:23] [EMAIL PROTECTED]

JPEGs saved directly from some digital cameras do not contain whatever data 
getImageSize relies on to produce an array of size and type data. Opening such an 
image and re-saving (even as JPEG) within an image editor (photoshop or equivalent) 
will 'fix' the image, allowing getImageSize() to read it.

Here's an image that causes getImageSize() to fail:
http://sitefoundry.com/php/DSC00021.JPG

Here's the same image after opening/saving; getImageSize() copes fine with this one:
http://sitefoundry.com/php/DSC00021fixed.jpg

Here's the output of ImageMagick's 'identify' utility for both images:
DSC00021fixed.jpg 640x480 DirectClass 81kb JPEG 1s
DSC00021.JPG[1] 640x480 DirectClass 88kb JPEG 2s

Here's the output of 'file':
DSC00021fixed.jpg: JPEG image data, JFIF standard
DSC00021.JPG:  JPEG image data






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


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




[PHP-DEV] Bug #12354: getImageSize() fails for some JPEGs

2001-07-24 Thread matt

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: GetImageSize related
Bug description:  getImageSize() fails for some JPEGs

JPEGs saved directly from some digital cameras do not contain whatever data
getImageSize relies on to produce an array of size and type data. Opening
such an image and re-saving (even as JPEG) within an image editor
(photoshop or equivalent) will 'fix' the image, allowing getImageSize() to
read it.

Here's an image that causes getImageSize() to fail:
http://sitefoundry.com/php/DSC00021.JPG

Here's the same image after opening/saving; getImageSize() copes fine with
this one:
http://sitefoundry.com/php/DSC00021fixed.jpg

Here's the output of ImageMagick's 'identify' utility for both images:
DSC00021fixed.jpg 640x480 DirectClass 81kb JPEG 1s
DSC00021.JPG[1] 640x480 DirectClass 88kb JPEG 2s

Here's the output of 'file':
DSC00021fixed.jpg: JPEG image data, JFIF standard
DSC00021.JPG:  JPEG image data

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


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




[PHP-DEV] Bug #12353: PHP4.0.05, should be apache 1.3 API, not EAPI, please recompile DEAPI

2001-07-24 Thread DOvens

From: [EMAIL PROTECTED]
Operating system: Windows
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  PHP4.0.05, should be apache 1.3 API, not EAPI, please recompile 
DEAPI 

Error : [warn] Loaded DSO c:/usr/php/sapi/php4apache.dll plain apache 1.3
API, this module might crash under EAPI! (please recompile with DEAPI)

I have apache 1.3.20 installed using indigostar.  I downloaded the 4.0.5
php binary and installed it as per instructions.  It runs with the error
message above.  How do I recompile with DEAPI or resolve this problem using
compiled binaries.


Dave


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


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




[PHP-DEV] Bug #12348 Updated: Call to undefined function: mssql_next_result()

2001-07-24 Thread fmk

ID: 12348
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: MSSQL related
Operating System: linux 7.1
PHP Version: 4.0.6
New Comment:

Please notice that the FreeTDS stuff might be broken for SQL Server 2000 and up.

Previous Comments:


[2001-07-24 18:37:30] [EMAIL PROTECTED]

We do have a patch that you can roll out in your next release i will send in soon 
after removing junk comments.



[2001-07-24 17:18:13] [EMAIL PROTECTED]

please send your patch (when you are done) to
[EMAIL PROTECTED]



[2001-07-24 16:45:26] [EMAIL PROTECTED]

the issue is i am using the sybase C files and the function is for the mssql C files.  
I am working with a coworker to rewrite the sybase C files to support the 
mssql_next_result function.  If you have a version that does please let me know and if 
we get this to work i will give you the C files for the next release.

// error
Fatal error: Call to undefined function: mssql_next_result() in 
/usr/local/apache/htdocs/reporting/reports/rpttrafficdetailsbycpc.dll on line 12






[2001-07-24 14:26:35] [EMAIL PROTECTED]

could you post the exact error message, or put the script
on the internet so I can view it.



[2001-07-24 14:24:14] [EMAIL PROTECTED]

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000





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


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




Re: [PHP-DEV] * New Parameter Parsing Functions *

2001-07-24 Thread Andrei Zmievski

On Tue, 24 Jul 2001, Markus Fischer wrote:
> I see, this coming from PHP-GTK developing ?
> 
> Can you give an example for a function that takes some fixed
> parameter (take a resource of some kind as an example) and the
> next parameter being another resource OR an array of that other
> resources ?
> 
> I'm just wondering if I can put this all into a single
> zend_parse_parameters() or if I'ld need to use some kind of if()
> statement for this one.

You will need to use something like this until [] specifiers are
implemented.

if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "rr", &res1, 
&res2) == FAILURE) {
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "ra", 
&res1, &res_arr) == FAILURE) {
// output error message here
}
}

-Andrei

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




[PHP-DEV] Bug #12348 Updated: Call to undefined function: mssql_next_result()

2001-07-24 Thread glenn

ID: 12348
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: MSSQL related
Operating System: linux 7.1
PHP Version: 4.0.6
New Comment:

We do have a patch that you can roll out in your next release i will send in soon 
after removing junk comments.

Previous Comments:


[2001-07-24 17:18:13] [EMAIL PROTECTED]

please send your patch (when you are done) to
[EMAIL PROTECTED]



[2001-07-24 16:45:26] [EMAIL PROTECTED]

the issue is i am using the sybase C files and the function is for the mssql C files.  
I am working with a coworker to rewrite the sybase C files to support the 
mssql_next_result function.  If you have a version that does please let me know and if 
we get this to work i will give you the C files for the next release.

// error
Fatal error: Call to undefined function: mssql_next_result() in 
/usr/local/apache/htdocs/reporting/reports/rpttrafficdetailsbycpc.dll on line 12






[2001-07-24 14:26:35] [EMAIL PROTECTED]

could you post the exact error message, or put the script
on the internet so I can view it.



[2001-07-24 14:24:14] [EMAIL PROTECTED]

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000





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


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




[PHP-DEV] Bug #12352: Unable to load dynamic library php_oci8.dll

2001-07-24 Thread aragornx

From: [EMAIL PROTECTED]
Operating system: Win 2000
PHP version:  4.0.6
PHP Bug Type: Oracle related
Bug description:  Unable to load dynamic library php_oci8.dll

I've got Oracle ver. 8.0.6 installed on my Win2000 and Apache 1.3.20 with
PHP 4.0.6. There is error during starting Apache service. I've got error
message: can't find entry point of procedure OCILobOpen in library OCI.dll
( sorry for translating error message but i've got polish version of
windows). Whhat should i do ?

extension=php_imap.dll
extension=php_oci8.dll

thank you ... 
-- 
Edit bug report at: http://bugs.php.net/?id=12352&edit=1


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




Re: [PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-24 Thread Andy

Thank you for testing this.

On Tue, 24 Jul 2001, Brian Foddy wrote:
> I tried on our 2.6 system and the script returned
> Successfully sent the email "PHP test mail()
> 
> message was properly sent.
> 
> 
> [EMAIL PROTECTED] wrote:
> > 
> > ID: 12335
> > Updated by: andy
> > Reported By: [EMAIL PROTECTED]
> > Status: Open
> > Bug Type: Mail related
> > Operating System: Sun Solaris 2.6
> > PHP Version: 4.0.6
> > New Comment:
> > 
> > works fine on RH Linux 7.  Can anybody with Solaris reproduce this?
> > 
> > Previous Comments:
> > 
> > 
> > [2001-07-24 08:03:30] [EMAIL PROTECTED]
> > 
> > I had first the bug with id 12024 and I have fixed it like described in the bug 
>report.
> > Now I can send mails, but the mail() function returns false altough the mail was 
>sent.
> > I use the following script to test the mail() function.
> > 
> > 
> >  > 
> > $mail_to = "[EMAIL PROTECTED]";
> > $mail_subject = "PHP test mail() gesendet obwohl failed gemeldet.";
> > $mail_body = " i hope that this mail() function works ! \n";
> > $mail_body .= " this is supposed to come on the second line \n";
> > $mail_body .= " and this on the third line \n";
> > 
> > if (mail($mail_to, $mail_subject, $mail_body))
> > echo "Successfully sent the email \"$mail_subject\" to 
>$mail_to .";
> > else echo "Failed to send the e-mail \"$mail_subject\"." ;
> > ?>
> > 
> > 
> > 
> > Edit this bug report at http://bugs.php.net/?id=12335&edit=1
> > 
> > --
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-24 Thread andy

ID: 12335
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

Since everybody else that has tried this says it works fine,
can you put this script on the internet so that I can see
this happen?

Previous Comments:


[2001-07-24 08:49:13] [EMAIL PROTECTED]

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?



[2001-07-24 08:03:30] [EMAIL PROTECTED]

I had first the bug with id 12024 and I have fixed it like described in the bug 
report.
Now I can send mails, but the mail() function returns false altough the mail was sent.
I use the following script to test the mail() function.
 







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


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




[PHP-DEV] Bug #12349 Updated: Broken PNG image

2001-07-24 Thread andy

ID: 12349
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

does this happen with jpgs or gifs (if you have support for
gifs)?

Previous Comments:


[2001-07-24 14:33:30] [EMAIL PROTECTED]

i have problem with create small copy of PNG transparent images:

Windows 98
apache 1.3.20
php 4.0.6

$s[1])
$z = $s[0]/60;
else
$z = $s[1]/60;
$x = (int)($s[0]/$z);
$y = (int)($s[1]/$z);
$dst_img = ImageCreate($x,$y);
$src_img = ImageCreateFromPNG("../img/test.png");
$colT = ImageColorAllocate($dst_img,0,255,0);
ImageFill($dst_img,0,0,$colT);
ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$s[0],$s[1]);
ImageColorTransparent($dst_img,$colT);
ImagePNG($dst_img);
ImageDestroy($src_img);
ImageDestroy($dst_img);
?>

and i have broken fullcolored rectangle

BUT - with php 4.0.5 work all best





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


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




Re: [PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-24 Thread Brian Foddy

I tried on our 2.6 system and the script returned
Successfully sent the email "PHP test mail()

message was properly sent.


[EMAIL PROTECTED] wrote:
> 
> ID: 12335
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: Mail related
> Operating System: Sun Solaris 2.6
> PHP Version: 4.0.6
> New Comment:
> 
> works fine on RH Linux 7.  Can anybody with Solaris reproduce this?
> 
> Previous Comments:
> 
> 
> [2001-07-24 08:03:30] [EMAIL PROTECTED]
> 
> I had first the bug with id 12024 and I have fixed it like described in the bug 
>report.
> Now I can send mails, but the mail() function returns false altough the mail was 
>sent.
> I use the following script to test the mail() function.
> 
> 
>  
> $mail_to = "[EMAIL PROTECTED]";
> $mail_subject = "PHP test mail() gesendet obwohl failed gemeldet.";
> $mail_body = " i hope that this mail() function works ! \n";
> $mail_body .= " this is supposed to come on the second line \n";
> $mail_body .= " and this on the third line \n";
> 
> if (mail($mail_to, $mail_subject, $mail_body))
> echo "Successfully sent the email \"$mail_subject\" to $mail_to 
>.";
> else echo "Failed to send the e-mail \"$mail_subject\"." ;
> ?>
> 
> 
> 
> Edit this bug report at http://bugs.php.net/?id=12335&edit=1
> 
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread andy

ID: 12325
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

in your php.ini file make sure this line is included...

register_globals = on

Previous Comments:


[2001-07-24 16:18:17] [EMAIL PROTECTED]

I think this is the relevant section:
;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  = E_ALL; display all errors, warnings and notices

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if 
there is no querystring specified.




[2001-07-24 09:24:54] [EMAIL PROTECTED]

Can you include a copy of your php.ini file?



[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


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




[PHP-DEV] Bug #12348 Updated: Call to undefined function: mssql_next_result()

2001-07-24 Thread andy

ID: 12348
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: MSSQL related
Operating System: linux 7.1
PHP Version: 4.0.6
New Comment:

please send your patch (when you are done) to
[EMAIL PROTECTED]

Previous Comments:


[2001-07-24 16:45:26] [EMAIL PROTECTED]

the issue is i am using the sybase C files and the function is for the mssql C files.  
I am working with a coworker to rewrite the sybase C files to support the 
mssql_next_result function.  If you have a version that does please let me know and if 
we get this to work i will give you the C files for the next release.

// error
Fatal error: Call to undefined function: mssql_next_result() in 
/usr/local/apache/htdocs/reporting/reports/rpttrafficdetailsbycpc.dll on line 12






[2001-07-24 14:26:35] [EMAIL PROTECTED]

could you post the exact error message, or put the script
on the internet so I can view it.



[2001-07-24 14:24:14] [EMAIL PROTECTED]

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000





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


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




Re: [PHP-DEV] * New Parameter Parsing Functions *

2001-07-24 Thread Markus Fischer

I see, this coming from PHP-GTK developing ?

Can you give an example for a function that takes some fixed
parameter (take a resource of some kind as an example) and the
next parameter being another resource OR an array of that other
resources ?

I'm just wondering if I can put this all into a single
zend_parse_parameters() or if I'ld need to use some kind of if()
statement for this one.

- Markus

On Tue, Jul 10, 2001 at 10:35:04AM -0500, Andrei Zmievski wrote : 
> New parameter parsing functions
> ===
> 
> It should be easier to parse input parameters to an extension function.
> Hence, borrowing from Python's example, there are now a set of functions
> that given the string of type specifiers, can parse the input parameters
> and store the results in the user specified variables. This avoids most
> of the IS_* checks and convert_to_* conversions. The functions also
> check for the appropriate number of parameters, and try to output
> meaningful error messages.
> 
> 
> Prototypes
> --
> /* Implemented. */
> zend_parse_parameters(int num_args, char *type_spec, ...);
> zend_parse_parameters_ex(int flags, int num_args, char *type_spec, ...);
> 
> /* Not implemented yet. */
> zend_parse_parameters_hash(HashTable *ht, char *type_spec, ...);
> zend_parse_parameters_hash_ex(int flags, HashTable *ht, char *type_spec, ...);
> 
> 
> The zend_parse_parameters() function takes the number of parameters
> passed to the extension function, the type specifier string, and the
> list of pointers to variables to store the results in. The _ex() version
> also takes 'flags' argument -- current only ZEND_PARSE_PARAMS_QUIET can
> be used as 'flags' to specify that the function should operate quietly
> and not output any error messages.
> 
> The auto-conversions are performed as necessary. Arrays, objects, and
> resources cannot be autoconverted.
> 
> 
> Type specifiers
> ---
>  l- long
>  d- double
>  s- string (with possible null bytes) and its length
>  b- boolean, stored in zend_bool
>  r- resource (stored in zval)
>  a- array
>  o- object (of any type)
>  O- object (of specific type, specified by class entry)
>  z- the actual zval
> 
>  The following characters also have a meaning in the specifier string:
>  | - indicates that the remaining parameters are optional, they
>should be initialized to default values by the extension since they
>will not be touched by the parsing function if they are not
>passed to it.
>/ - use SEPARATE_ZVAL_IF_NOT_REF() on the parameter it follows
>! - the parameter it follows can be of specified type or NULL (only applies
>to 'a', 'o', 'O', 'r', and 'z'). If NULL is passed, the results
>pointer is set to NULL as well.
> 
> Examples
> 
> /* Gets a long, a string and its length, and a zval */
> long l;
> char *s;
> int s_len;
> zval *param;
> zend_parse_parameters(ZEND_NUM_ARGS(), "lsz", &l, &s, &s_len, ¶m);
> 
> 
> /* Gets an object of class specified by my_ce, and an optional double. */
> zval *obj;
> double d = 0.5;
> zend_parse_parameters(ZEND_NUM_ARGS(), "O|d", &obj, my_ce, &d);
> 
> 
> /* Gets an object or null, and an array.
>If null is passed for object, obj will be set to NULL. */
> zval *obj;
> zval *arr;
> zend_parse_parameters(ZEND_NUM_ARGS(), "O!a", &obj, &arr);
> 
> 
> /* Gets a separated array. */
> zval *arr;
> zend_parse_parameters(ZEND_NUM_ARGS(), "a/", &arr));
> 
> 
> /* Get only the first three parameters (useful for varargs functions). */
> zval *z;
> zend_bool b;
> zval *r;
> zend_parse_parameters(2, "zbr!", &z, &b, &r);
> 
> 
> /* Get either a set of 3 longs or a string. */
> long l1, l2, l3;
> char *s;
> if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "lll", &l1, 
>&l2, &l3)) {
>   /* manipulate longs */
> } else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "s", 
>&s)) {
>   /* manipulate string */
> } else {
>   /* output error */
> }
> 
> Comments and feedback are welcome.
> 
> -Andrei
> * If it's never finished, you can't prove it doesn't work. *
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

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




[PHP-DEV] Bug #12348 Updated: Call to undefined function: mssql_next_result()

2001-07-24 Thread glenn

ID: 12348
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: MSSQL related
Operating System: linux 7.1
PHP Version: 4.0.6
New Comment:

the issue is i am using the sybase C files and the function is for the mssql C files.  
I am working with a coworker to rewrite the sybase C files to support the 
mssql_next_result function.  If you have a version that does please let me know and if 
we get this to work i will give you the C files for the next release.

// error
Fatal error: Call to undefined function: mssql_next_result() in 
/usr/local/apache/htdocs/reporting/reports/rpttrafficdetailsbycpc.dll on line 12




Previous Comments:


[2001-07-24 14:26:35] [EMAIL PROTECTED]

could you post the exact error message, or put the script
on the internet so I can view it.



[2001-07-24 14:24:14] [EMAIL PROTECTED]

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000





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


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




[PHP-DEV] Re: Bug #12341 Updated: Don't is appears the object

2001-07-24 Thread Luiz Fernando \(Tuca\)

I need of commands of word, too.


Thanks

Luiz Fernando

<[EMAIL PROTECTED]> escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
> ID: 12341
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: COM related
> Operating System: NT 4.0 WorkStation
> PHP Version: 4.0.6
> New Comment:
>
> I thought this is what the commands were supposed to do.
>
> If you wanted to open word wouldn't you do something
> like this:
>
> exec("c:\path\to\winword");
>
>
> Previous Comments:
> 
>
> [2001-07-24 12:17:04] [EMAIL PROTECTED]
>
> Did the document save correctly?
>
> 
>
> [2001-07-24 10:43:11] [EMAIL PROTECTED]
>
> A take a sample of function COM.
>
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
> $word->Visible = 1; // command that show window
> $word->Documents->Add();
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
>
> The commands execute, but the window of word don't appears.
>
> I make a test with Autocad too, but the window don't appears.
> When a had a ohter version PHP, don't remember, the window appears
>
> thanks
>
> Luiz Fernando
>
>
> 
>
>
>
> Edit this bug report at http://bugs.php.net/?id=12341&edit=1
>



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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread danradigan

ID: 12325
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

I think this is the relevant section:
;;
; Error handling and logging ;
;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING- warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING- user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  = E_ALL; display all errors, warnings and notices

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off

However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if 
there is no querystring specified.


Previous Comments:


[2001-07-24 09:24:54] [EMAIL PROTECTED]

Can you include a copy of your php.ini file?



[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


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




[PHP-DEV] Bug #12350: Referencing multiple arrays in classes from inside methods doesn't work

2001-07-24 Thread m . stenzel

From: [EMAIL PROTECTED]
Operating system: W2K
PHP version:  4.0.6
PHP Bug Type: Class/Object related
Bug description:  Referencing multiple arrays in classes from inside methods doesn't 
work

Configuration: IIS 4 dll with Win32 binaries

Okay I'm new to the game so forgive me a small mistake but I have tested
and reproduced this weird behavior for more than 6 hours.

A class wrapping multiple array variables doesn't allow to access both
arrays as individual references from inside a function.

The following code does not what I expected from the language:

class test {
  VAR $firstarray;  // defining one array
  VAR $secondarray; // defining another array

  function testit () {
$i = 0;
while ($i < 14) {
  $this->$firstarray[$i] = uniqid ("test", false);
  $this->$secondarray[$i] = uniqid ("different", false);
  echo "Set array #1, item $i to ".$this->$firstarray[$i]." and array
#2 to ".$this->$secondarray[$i]."\n";
  $i++;
}
  }

  function doitlocal () {
$i = 0;
while ($i < 14) {
  $firstarray[$i] = uniqid ("test", false);
  $secondarray[$i] = uniqid ("different", false);
  echo "Set array #1, item $i to ".$firstarray[$i]." and array #2 to
".$secondarray[$i]."\n";
  $i++;
}
  }
  
}

  $temp = new test;
  $temp->testit();
  echo "The (wrong) result shows that both arrays contain the same
data.\n\n";
  echo "Now lets do it local:\n";
  $temp->doitlocal();
  echo "With local variables everything works as expected.";

I expected the same result from both the testit() and doitlocal() methods
and that would be creating two distinctive arrays and accessing them later
in the script just with different values. This seems not to be possible if
the array is capsulated in the class.

I think i read the manual thorougly and haven't found a hint about this
behavior :(

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


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




[PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread lael

ID: 12323
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

For those asking for an example of the script and the 
output.

Using the following:

");
print("Still working next line is going to be a 
comment");
// This line should be a comment
print("This is the next line past the comment");
?>


I get the following result:

// This line should be a comment print("This is the next 
line past the comment
"); Working so far 
Still working next line is going to be a comment


Thanking everyone for the help.  Greatly appreciate it.

Lael

Previous Comments:


[2001-07-24 14:28:59] [EMAIL PROTECTED]

Also in reply to the other suggestions regarding one liners 
vs multiple line comments:

The lines I have commented are all on their own line and 
are one liners.  More or less, anywhere I use a "//" to 
comment, the entire line is displayed to the user.  The 
following two scripts will give me the same result.





I noticed in the documentation that the "//" was considered 
a C++ style of commenting.  Do I possibly need a particular 
module or directive to say that "//" is a comment?

Thanks,
Lael



[2001-07-24 14:27:13] [EMAIL PROTECTED]

I received an email stating that it could not be reproduced 
on a  RH Linux 7 machine.  This problem is specific to Mac 
OS X client, so I'm sure that you were unable to reproduce 
it on your box.

Either way, this is definately happening and is not "bogus" 
as you said.



[2001-07-24 14:16:26] [EMAIL PROTECTED]

unable to reproduce on RH Linux 7.

This sounds very bogus.



[2001-07-23 18:35:15] [EMAIL PROTECTED]

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris



[2001-07-23 18:31:24] [EMAIL PROTECTED]

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris



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


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


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




[PHP-DEV] Security Issues

2001-07-24 Thread PHP


Hey all, 

I am new to this list so if this topic has already been beaten to death let me 
know.

I assume that many of you have already read this article 

http://lwn.net/2001/0704/a/study-in-scarlet.php3   
 

about many of the basic security risks you need to be aware of when developing 
in PHP.  I was curious what ideas have already been covered in the areas of stopping 
this.  I also wanted to offer up my own suggestion.

It seems that all the issues arise from the feature that sets PHP variable to 
be form variables.  The cleanest solution I can think of (albeit it breaks backward 
compatibility) would be to split the names-pace of form variables.  If normal or 
session variable stayed as $foo and $bar then form variables would be %foo and %bar, 
or something similar.   Breaking backward compatibility is bad but it would allow 
future applications to be free of these dangers and could be something set in the 
php.ini or rather a directive in the php script to allow old an new style scripts on 
the same server.  

If there is work already being done in this area please point me to where I 
can read more about it.  PHP is far and away the best web development language and is 
really only hindered by security issues like this.

Orion



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




Re: [PHP-DEV] Bug #12267 Updated: Session (concurrency ?) problem

2001-07-24 Thread Thomas Morin

Hello Sascha,

Well...

In the current case, even if it is not the cleanest solution, calling 
session_end before making the redirection would solve my problem in a 
acceptable manner.

The model described in this function documentation is nice, and the 
existence of session_end and session_read_only function seems to be is 
really relevant in the case of concurrent access to the same session 
using the files session handler (useful for people using frames as 
mentionned).

Do you know if you or somebody else plan to implement this function soon ?

Thank you very much !

Regards,

-tom

--
== Thomas.Morin @webmotion.comSysAdmin/R&D
== Phone: +1 613 731 4046 ext113 \Fax: +1 613 260 9545
== PGP/keyID: 8CEA233D
== PGP/KeyFP: 503BF6CFD3AE8719377B832A02FB94E08CEA233D
--



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




Re: [PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread Vlad Krupin

MacOS? Hmmm... I bet the problem is in that the end-lines are not
recognized correctly. That is, the newline on a MAC ('\r') on the line
that has a comment on it is not recognized as a valid newline, thus the
closing tag "?>" will appear on the same line after the comment, as far
as PHP is concerned and will be commented out.

We had similar problems discussed on the list recently. Should we
ask Lael to try and fix the endline so it is either '\n' or '\r\n'? And, if
this fixes the problem look into the code and see why it does not like
the MacOS-style newlines in comments?

Just a thought

Vlad


[EMAIL PROTECTED] wrote:

>ID: 12323
>User updated by: [EMAIL PROTECTED]
>Reported By: [EMAIL PROTECTED]
>Status: Open
>Bug Type: Output Control
>Operating System: Mac OS X
>PHP Version: 4.0.6
>New Comment:
>
>Also in reply to the other suggestions regarding one liners 
>vs multiple line comments:
>
>The lines I have commented are all on their own line and 
>are one liners.  More or less, anywhere I use a "//" to 
>comment, the entire line is displayed to the user.  The 
>following two scripts will give me the same result.
>
>// This comment will show on the web page
>?>
>
>print('// This comment will show on the web page');
>?>
>
>I noticed in the documentation that the "//" was considered 
>a C++ style of commenting.  Do I possibly need a particular 
>module or directive to say that "//" is a comment?
>
>Thanks,
>Lael
>
>Previous Comments:
>
>
>[2001-07-24 14:27:13] [EMAIL PROTECTED]
>
>I received an email stating that it could not be reproduced 
>on a  RH Linux 7 machine.  This problem is specific to Mac 
>OS X client, so I'm sure that you were unable to reproduce 
>it on your box.
>
>Either way, this is definately happening and is not "bogus" 
>as you said.
>
>
>
>[2001-07-24 14:16:26] [EMAIL PROTECTED]
>
>unable to reproduce on RH Linux 7.
>
>This sounds very bogus.
>
>
>
>[2001-07-23 18:35:15] [EMAIL PROTECTED]
>
>Okay it would happen on more than one liners.
>
>basically if you have a ?> on the same line as the // comment it will do this.
>
>I know there is some other bugs on this same problem, but I don't have the numbers 
>handy.
>
>-Chris
>
>
>
>[2001-07-23 18:31:24] [EMAIL PROTECTED]
>
>The only situation I can think of where this would happen is
>
>
>
>i.e. one liners
>
>If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
>that reproduces the problem.
>
>-Chris
>
>
>
>[2001-07-23 17:19:38] [EMAIL PROTECTED]
>
>When I use the "//" as the comment, the text behind the tag 
>is displayed out to the user.  I can replace it with a "/*" 
>and put a "*/" at the end to make it work.  But I was 
>hoping I had missed some compile option or something that 
>is causing this to not work.
>
>
>
>
>
>To make the installs on my G3 PowerMac Laptop, I have used 
>the instructions found at: http://www.devshed.com/
>Server_Side/Administration/BuildingOnOSX/
>
>Any suggestions are welcome.
>
>Thanks,
>Lael
>
>
>
>
>
>
>Edit this bug report at http://bugs.php.net/?id=12323&edit=1
>
>




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




[PHP-DEV] Bug #12349: Broken PNG image

2001-07-24 Thread design

From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  Broken PNG image

i have problem with create small copy of PNG transparent images:

Windows 98
apache 1.3.20
php 4.0.6

$s[1])
$z = $s[0]/60;
else
$z = $s[1]/60;
$x = (int)($s[0]/$z);
$y = (int)($s[1]/$z);
$dst_img = ImageCreate($x,$y);
$src_img = ImageCreateFromPNG("../img/test.png");
$colT = ImageColorAllocate($dst_img,0,255,0);
ImageFill($dst_img,0,0,$colT);
ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$s[0],$s[1]);
ImageColorTransparent($dst_img,$colT);
ImagePNG($dst_img);
ImageDestroy($src_img);
ImageDestroy($dst_img);
?>

and i have broken fullcolored rectangle

BUT - with php 4.0.5 work all best
-- 
Edit bug report at: http://bugs.php.net/?id=12349&edit=1


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




Re: [PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread Andy

Can you post an example on the internet (along
with a .phps [php source] file that corresponds
to it)?

Thanks,
Andy

On Tue, 24 Jul 2001, [EMAIL PROTECTED] wrote:
> ID: 12323
> User updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: Output Control
> Operating System: Mac OS X
> PHP Version: 4.0.6
> New Comment:
> 
> I received an email stating that it could not be reproduced 
> on a  RH Linux 7 machine.  This problem is specific to Mac 
> OS X client, so I'm sure that you were unable to reproduce 
> it on your box.
> 
> Either way, this is definately happening and is not "bogus" 
> as you said.
> 
> Previous Comments:
> 
> 
> [2001-07-24 14:16:26] [EMAIL PROTECTED]
> 
> unable to reproduce on RH Linux 7.
> 
> This sounds very bogus.
> 
> 
> 
> [2001-07-23 18:35:15] [EMAIL PROTECTED]
> 
> Okay it would happen on more than one liners.
> 
> basically if you have a ?> on the same line as the // comment it will do this.
> 
> I know there is some other bugs on this same problem, but I don't have the numbers 
>handy.
> 
> -Chris
> 
> 
> 
> [2001-07-23 18:31:24] [EMAIL PROTECTED]
> 
> The only situation I can think of where this would happen is
> 
> 
> 
> i.e. one liners
> 
> If this is your case this is expected behavior IIRC.  Otherwsie submit a small 
>script that reproduces the problem.
> 
> -Chris
> 
> 
> 
> [2001-07-23 17:19:38] [EMAIL PROTECTED]
> 
> When I use the "//" as the comment, the text behind the tag 
> is displayed out to the user.  I can replace it with a "/*" 
> and put a "*/" at the end to make it work.  But I was 
> hoping I had missed some compile option or something that 
> is causing this to not work.
> 
> 
> 
> 
> 
> To make the installs on my G3 PowerMac Laptop, I have used 
> the instructions found at: http://www.devshed.com/
> Server_Side/Administration/BuildingOnOSX/
> 
> Any suggestions are welcome.
> 
> Thanks,
> Lael
> 
> 
> 
> 
> 
> 
> Edit this bug report at http://bugs.php.net/?id=12323&edit=1
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread lael

ID: 12323
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

Also in reply to the other suggestions regarding one liners 
vs multiple line comments:

The lines I have commented are all on their own line and 
are one liners.  More or less, anywhere I use a "//" to 
comment, the entire line is displayed to the user.  The 
following two scripts will give me the same result.





I noticed in the documentation that the "//" was considered 
a C++ style of commenting.  Do I possibly need a particular 
module or directive to say that "//" is a comment?

Thanks,
Lael

Previous Comments:


[2001-07-24 14:27:13] [EMAIL PROTECTED]

I received an email stating that it could not be reproduced 
on a  RH Linux 7 machine.  This problem is specific to Mac 
OS X client, so I'm sure that you were unable to reproduce 
it on your box.

Either way, this is definately happening and is not "bogus" 
as you said.



[2001-07-24 14:16:26] [EMAIL PROTECTED]

unable to reproduce on RH Linux 7.

This sounds very bogus.



[2001-07-23 18:35:15] [EMAIL PROTECTED]

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris



[2001-07-23 18:31:24] [EMAIL PROTECTED]

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris



[2001-07-23 17:19:38] [EMAIL PROTECTED]

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael






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


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




[PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread lael

ID: 12323
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

I received an email stating that it could not be reproduced 
on a  RH Linux 7 machine.  This problem is specific to Mac 
OS X client, so I'm sure that you were unable to reproduce 
it on your box.

Either way, this is definately happening and is not "bogus" 
as you said.

Previous Comments:


[2001-07-24 14:16:26] [EMAIL PROTECTED]

unable to reproduce on RH Linux 7.

This sounds very bogus.



[2001-07-23 18:35:15] [EMAIL PROTECTED]

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris



[2001-07-23 18:31:24] [EMAIL PROTECTED]

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris



[2001-07-23 17:19:38] [EMAIL PROTECTED]

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael






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


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




[PHP-DEV] Bug #12348 Updated: Call to undefined function: mssql_next_result()

2001-07-24 Thread andy

ID: 12348
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: MSSQL related
Operating System: linux 7.1
PHP Version: 4.0.6
New Comment:

could you post the exact error message, or put the script
on the internet so I can view it.

Previous Comments:


[2001-07-24 14:24:14] [EMAIL PROTECTED]

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000





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


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




[PHP-DEV] Re: HAL 2K1

2001-07-24 Thread

In article <[EMAIL PROTECTED]>, Hellekin O. Wolf 
wrote:
>As the Apache conference in Dublin is cancelled, I wanted to know if there 
>is an alternative for meeting...
>
>Are there some PHPers going to to the Netherlands on August 10-12 ? =8)
>
>http://www.hal2001.org/

I know that some will attend. Be aware of all kinds of cops that will check 
if you are trying to do something illegal.

Regards,

Hans
>
>hellekin
>

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




[PHP-DEV] Bug #12348: Call to undefined function: mssql_next_result()

2001-07-24 Thread glenn

From: [EMAIL PROTECTED]
Operating system: linux 7.1
PHP version:  4.0.6
PHP Bug Type: MSSQL related
Bug description:  Call to undefined function: mssql_next_result() 

name ."";
}
// this is the problem ??? the sp has 2 result sets 
// i am trying to get to the second set.
mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000
-- 
Edit bug report at: http://bugs.php.net/?id=12348&edit=1


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




Re: [PHP-DEV] Re: Bug #12324 Updated: arg_separator.output/input broken

2001-07-24 Thread Andy

The script I showed you worked fine on my machine
(RH LInux 7)  Can anybody else verify this?

On Tue, 24 Jul 2001, voudras wrote:
> This doesn't seem to work still.. my example is in the same location and
> has the changes shown below, and then some. Am i a complete retard or
> what?
> 
> 
> 
> 
> 
> 
> 
> Bug Database wrote:
> > 
> > ID: 12324
> > Updated by: andy
> > Reported By: [EMAIL PROTECTED]
> > Old Status: Open
> > Status: Bogus
> > Bug Type: *Configuration Issues
> > Operating System: linux
> > PHP Version: 4.0.6
> > New Comment:
> > 
> > you have your params mixed up.  replace arg_separator.output
> > with arg_separator.input and things will work.  I modified
> > your script below.  This one works as you wanted it to.
> > 
> >  > global $HTTP_POST_VARS,$HTTP_GET_VARS, $HTTP_COOKIE_VARS,
> > $PHP_SELF;
> > 
> > ini_set("arg_separator.input", ";");
> > define("a", ini_get("arg_separator.input"));
> > 
> > if($HTTP_GET_VARS){
> > $total = count($HTTP_GET_VARS);
> > echo "Displaying GET variables";
> > while(list($key, $val) = each($HTTP_GET_VARS)) {
> > echo "Key: '$key'   Value '$val'";
> > }
> > }
> > 
> > echo "";
> > echo "Click to
> > activate test";
> > echo "";
> > 
> > ?>
> > 
> > Previous Comments:
> > 
> > 
> > [2001-07-23 20:22:46] [EMAIL PROTECTED]
> > 
> > I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on 
>other machines. I will not however, that this problem does not seem to occur on 
>windows/apache machines.
> > 
> > the problem is that get vars using an arg_separator.output other than '&' will be 
>ignored when attempting to parse HTTP_GET_VARS.
> > 
> > there is an example avaliable at
> > http://wart.phpking.org/test.php
> > the source is visible at
> > http://wart.phpking.org/test.phps
> > 
> > a side note - it would seem that the transparent session info appended to a url by 
>php will also not follow a new 'arg_separator.output' value.. for example - if i set 
>the arg_separator.output to ';'..  my PHPSESSID will still be appended to the url 
>with a '&'
> > 
> > -voudras
> > 
> > 
> > 
> > ATTENTION! Do NOT reply to this email!
> > To reply, use the web interface found at http://bugs.php.net/?id=12324&edit=2
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP-DEV] Bug #12341 Updated: Don't is appears the object

2001-07-24 Thread andy

ID: 12341
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: COM related
Operating System: NT 4.0 WorkStation
PHP Version: 4.0.6
New Comment:

I thought this is what the commands were supposed to do.

If you wanted to open word wouldn't you do something
like this:

exec("c:\path\to\winword");


Previous Comments:


[2001-07-24 12:17:04] [EMAIL PROTECTED]

Did the document save correctly?



[2001-07-24 10:43:11] [EMAIL PROTECTED]

A take a sample of function COM.

$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1; // command that show window
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

The commands execute, but the window of word don't appears.

I make a test with Autocad too, but the window don't appears.
When a had a ohter version PHP, don't remember, the window appears

thanks

Luiz Fernando






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


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




[PHP-DEV] Bug #12323 Updated: // comment tag does not work

2001-07-24 Thread andy

ID: 12323
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Summary: "//" comment tag does not work
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

unable to reproduce on RH Linux 7.

This sounds very bogus.

Previous Comments:


[2001-07-23 18:35:15] [EMAIL PROTECTED]

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris



[2001-07-23 18:31:24] [EMAIL PROTECTED]

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris



[2001-07-23 17:19:38] [EMAIL PROTECTED]

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael






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


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




[PHP-DEV] Re: Bug #12324 Updated: arg_separator.output/input broken

2001-07-24 Thread voudras

This doesn't seem to work still.. my example is in the same location and
has the changes shown below, and then some. Am i a complete retard or
what?







Bug Database wrote:
> 
> ID: 12324
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Bogus
> Bug Type: *Configuration Issues
> Operating System: linux
> PHP Version: 4.0.6
> New Comment:
> 
> you have your params mixed up.  replace arg_separator.output
> with arg_separator.input and things will work.  I modified
> your script below.  This one works as you wanted it to.
> 
>  global $HTTP_POST_VARS,$HTTP_GET_VARS, $HTTP_COOKIE_VARS,
> $PHP_SELF;
> 
> ini_set("arg_separator.input", ";");
> define("a", ini_get("arg_separator.input"));
> 
> if($HTTP_GET_VARS){
> $total = count($HTTP_GET_VARS);
> echo "Displaying GET variables";
> while(list($key, $val) = each($HTTP_GET_VARS)) {
> echo "Key: '$key'   Value '$val'";
> }
> }
> 
> echo "";
> echo "Click to
> activate test";
> echo "";
> 
> ?>
> 
> Previous Comments:
> 
> 
> [2001-07-23 20:22:46] [EMAIL PROTECTED]
> 
> I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on 
>other machines. I will not however, that this problem does not seem to occur on 
>windows/apache machines.
> 
> the problem is that get vars using an arg_separator.output other than '&' will be 
>ignored when attempting to parse HTTP_GET_VARS.
> 
> there is an example avaliable at
> http://wart.phpking.org/test.php
> the source is visible at
> http://wart.phpking.org/test.phps
> 
> a side note - it would seem that the transparent session info appended to a url by 
>php will also not follow a new 'arg_separator.output' value.. for example - if i set 
>the arg_separator.output to ';'..  my PHPSESSID will still be appended to the url 
>with a '&'
> 
> -voudras
> 
> 
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=12324&edit=2

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




Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Markus Fischer

On Tue, Jul 24, 2001 at 08:34:44AM -0700, Chris Vandomelen wrote : 
> > > The new version (renamed, cleaned up) is fairly new, so it should be fine
> > > to do that.
> >
> > While we're at it, wouldn't it be more intuitiv to modify the
> > socket_fd_*() calls to accept the fd_set resource as first
> > parameter and the fd to add or remove as second parameter ?
> >
> 
> No problem with that request. I'll still get them confused though. :)
> 
> > For socket_fd_set() I'ld also vote to let the second parameter be
> > a single socket or an array of sockets (when you're dealing with
> > many connection you're likely holding them in an array than in
> > separate vars); same for socket_fd_clear(). Maybe, but I haven't
> > thought more about it, it would make sense for _isset() [after
> > writing this sentence I think not :) ].
> 
> *_set() and *_clear() it makes sense to accept an array for. *_isset(),
> OTOH, it doesn't. "Oh, I want to know if any of the fds 5, 6, 7, or 8 are
> set"... somehow that doesn't seem quite kosher. :)

I've come up with a patch based on the ideas and suggestion that
came up in this thread:

- Let the fd_set resource keep track of the highest socket; nuked
  _select() first parameter and determine it ourself
- Swapped _set(), _clear() and _isset() parameters and
  recognize plain sockets as well as array of sockets

The patch is against current CVS and only compiled unter linux
(debian unstable) so far.

Please everyone interested test and verify it and let me know
what you think. Due my lack of karma I can't commit it anyway,
feel free to do so if you find it appropriate.

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0


? .php_sockets.h.swp
? .sockets.c.swp
Index: php_sockets.h
===
RCS file: /repository/php4/ext/sockets/php_sockets.h,v
retrieving revision 1.10
diff -u -r1.10 php_sockets.h
--- php_sockets.h   21 May 2001 19:36:22 -  1.10
+++ php_sockets.h   24 Jul 2001 17:59:52 -
@@ -82,6 +82,11 @@
unsigned int count;
 } php_iovec_t;
 
+typedef struct php_fd_set {
+   fd_set set;
+   int max_fd;
+} php_fd_set_t;
+
 typedef struct {
 #ifdef PHP_WIN32
SOCKET socket;
Index: sockets.c
===
RCS file: /repository/php4/ext/sockets/sockets.c,v
retrieving revision 1.56
diff -u -r1.56 sockets.c
--- sockets.c   16 Jul 2001 04:31:13 -  1.56
+++ sockets.c   24 Jul 2001 18:00:01 -
@@ -178,8 +178,8 @@
 
 static void destroy_fd_sets(zend_rsrc_list_entry *rsrc)
 {
-   fd_set *set = (fd_set *) rsrc->ptr;
-   efree(set);
+   php_fd_set_t *the_set = (php_fd_set_t *) rsrc->ptr;
+   efree(the_set);
 }
 
 static void destroy_iovec(zend_rsrc_list_entry *rsrc)
@@ -397,13 +397,14 @@
Allocates a new file descriptor set */
 PHP_FUNCTION(socket_fd_alloc)
 {
-   fd_set *set;
+   php_fd_set_t *the_set;
 
-   set = emalloc(sizeof *set);
+   the_set = emalloc(sizeof(php_fd_set_t));

-   FD_ZERO(set);
+   FD_ZERO(&(the_set->set));
+   the_set->max_fd = -1;

-   ZEND_REGISTER_RESOURCE(return_value, set, le_destroy);
+   ZEND_REGISTER_RESOURCE(return_value, the_set, le_destroy);
 }
 /* }}} */
 
@@ -412,75 +413,97 @@
 PHP_FUNCTION(socket_fd_free)
 {
zval **arg1;
-   fd_set *the_set;
+   php_fd_set_t *the_set;

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

-   ZEND_FETCH_RESOURCE(the_set, fd_set *, arg1, -1, le_destroy_name, le_destroy);
+   ZEND_FETCH_RESOURCE(the_set, php_fd_set_t *, arg1, -1, le_destroy_name, 
+le_destroy);

zend_list_delete(Z_RESVAL_PP(arg1));
RETURN_TRUE;
 }
 /* }}} */
 
-/* {{{ proto bool socket_fd_set(resource socket, resource set)
+/* {{{ proto bool socket_fd_set(resource set, mixed socket)
Adds a file descriptor to a set */
 PHP_FUNCTION(socket_fd_set)
 {
-   zval **arg1, **arg2;
-   fd_set *the_set;
+   zval **arg1, **arg_socket, **arg_socket_entry;
+   php_fd_set_t *the_set;
php_socket *php_sock;
 
-   if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == 
FAILURE) {
+   if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg_socket) == 
+FAILURE) {
WRONG_PARAM_COUNT;
}
 
-   ZEND_FETCH_RESOURCE(php_sock, php_socket*, arg1, -1, le_socket_name, 
le_socket);
-   ZEND_FETCH_RESOURCE(the_set, fd_set*, arg2, -1, le_destroy_name, le_destroy);
+   ZEND_FETCH_RESOURCE(the_set, php_fd_set_t*, arg1, -1, le_destroy_name, 
+le_destroy);
+   if( Z_TYPE_PP( arg_socket) == IS_ARRAY) {
+   zend_hash_internal_pointer_reset( 

[PHP-DEV] Re: Bug #12323 Updated: "//" comment tag does not work

2001-07-24 Thread Lael Griffith

The lines I have commented are all on their own line and are one liners.
More or less, anywhere I use a "//" to comment, the entire line is displayed
to the user.  The following two scripts will give me the same result.





I noticed in the documentation that the "//" was considered a C++ style of
commenting.  Do I possibly need a particular module or directive to say that
"//" is a comment?

Thanks,
Lael


> ID: 12323
> Updated by: cnewbill
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: Output Control
> Operating System: Mac OS X
> PHP Version: 4.0.6
> New Comment:
> 
> Okay it would happen on more than one liners.
> 
> basically if you have a ?> on the same line as the // comment it will do this.
> 
> I know there is some other bugs on this same problem, but I don't have the
> numbers handy.
> 
> -Chris
> 
> Previous Comments:
> 
> 
> [2001-07-23 18:31:24] [EMAIL PROTECTED]
> 
> The only situation I can think of where this would happen is
> 
> 
> 
> i.e. one liners
> 
> If this is your case this is expected behavior IIRC.  Otherwsie submit a small
> script that reproduces the problem.
> 
> -Chris
> 
> 
> 
> [2001-07-23 17:19:38] [EMAIL PROTECTED]
> 
> When I use the "//" as the comment, the text behind the tag
> is displayed out to the user.  I can replace it with a "/*"
> and put a "*/" at the end to make it work.  But I was
> hoping I had missed some compile option or something that
> is causing this to not work.
> 
> 
> 
> 
> 
> To make the installs on my G3 PowerMac Laptop, I have used
> the instructions found at: http://www.devshed.com/
> Server_Side/Administration/BuildingOnOSX/
> 
> Any suggestions are welcome.
> 
> Thanks,
> Lael
> 
> 
> 
> 
> 
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=12323&edit=2
> 


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




[PHP-DEV] Bug #12346: 4.0.6 imap refuses to authenticate to VMS IMAP4rev1 Server PMDF V6.0-24.1

2001-07-24 Thread goebel

From: [EMAIL PROTECTED]
Operating system: Tru64 4.0G
PHP version:  4.0.6
PHP Bug Type: IMAP related
Bug description:  4.0.6 imap refuses to authenticate to VMS IMAP4rev1 Server PMDF 
V6.0-24.1


Couldn't figure out why I could use Webmail/PHP to connect 
to unix boxes but not our VMS cluster.  Eventually discoveredthat VMS was
rejecting all IMAP authentication requests from PHP.  Swaped the
ext/imap/php_imap.c from 4.0.5 to the 4.0.6 code, and it now works. (4.0.5
works fine 
out of the box) Compiled both : ./configure --prefix=/skunk \./configure
--prefix=/skunk \
  --with-imap=/skunk/src/imap-4.7c \
  --with-mysql \
  --with-apxs=/skunk/bin/apxs \
  --with-ldap=/sql
Don't see any imap changes listed for 4.0.6, but the two 
php_imap.c files differ fairly significantly.

Probably just an issue talking with PMDF's imap.

Matt Goebel
-- 
Edit bug report at: http://bugs.php.net/?id=12346&edit=1


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




[PHP-DEV] Bug #12345: Error in yp_match return value

2001-07-24 Thread jmaziarz

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.6
PHP Bug Type: YP/NIS related
Bug description:  Error in yp_match return value

After upgrading to PHP v4.0.6 from v4.0.5 this problem seems to have
started. When using yp_match() the documentation states:

"yp_match() returns the value associated with the passed key out of the
specified map or FALSE"

However, FALSE is *NOT* returned if the key does not exist. Instead, I get
the warning:

"Warning: no such key in map in [my script] on line [my line]"

As a quick fix, I surpress the error with @yp_match(). Has the function
changed or is the documentation wrong?

My config is as follows:
./configure  
--with-apxs=/afs/rcf/apps/apache/sun4x_57/1.3.20/bin/apxs 
--with-config-file-path=/afs/rcf/apps/apache/sun4x_57/1.3.20/conf
--prefix=/afs/rcf/apps/apache/sun4x_57/1.3.20 
--with-pgsql=/afs/rcf/apps/pgsql 
--with-imap=/afs/rcf/admin/local 
--with-ldap=/afs/rcf/admin/local 
--with-xml 
--without-mysql 
--enable-track-vars 
--enable-magic-quotes 
--enable-yp 
--enable-debug 
--disable-short-tags
-- 
Edit bug report at: http://bugs.php.net/?id=12345&edit=1


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




[PHP-DEV] Re: Bug #12341 Updated: Don't is appears the object

2001-07-24 Thread Luiz Fernando \(Tuca\)

Yes, all commands are executed correctly


Luiz Fernando

<[EMAIL PROTECTED]> escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
> ID: 12341
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Feedback
> Bug Type: COM related
> Operating System: NT 4.0 WorkStation
> PHP Version: 4.0.6
> New Comment:
>
> Did the document save correctly?
>
> Previous Comments:
> 
>
> [2001-07-24 10:43:11] [EMAIL PROTECTED]
>
> A take a sample of function COM.
>
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
> $word->Visible = 1; // command that show window
> $word->Documents->Add();
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
>
> The commands execute, but the window of word don't appears.
>
> I make a test with Autocad too, but the window don't appears.
> When a had a ohter version PHP, don't remember, the window appears
>
> thanks
>
> Luiz Fernando
>
>
> 
>
>
>
> Edit this bug report at http://bugs.php.net/?id=12341&edit=1
>



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




[PHP-DEV] Re: Bug #12341 Updated: Don't is appears the object

2001-07-24 Thread Luiz Fernando (Tuca)

Yes all commands are executed...

Luiz Fernando
- Original Message -
From: Bug Database <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 5:17 PM
Subject: Bug #12341 Updated: Don't is appears the object


> ID: 12341
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Feedback
> Bug Type: COM related
> Operating System: NT 4.0 WorkStation
> PHP Version: 4.0.6
> New Comment:
>
> Did the document save correctly?
>
> Previous Comments:
> 
>
> [2001-07-24 10:43:11] [EMAIL PROTECTED]
>
> A take a sample of function COM.
>
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
> $word->Visible = 1; // command that show window
> $word->Documents->Add();
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
>
> The commands execute, but the window of word don't appears.
>
> I make a test with Autocad too, but the window don't appears.
> When a had a ohter version PHP, don't remember, the window appears
>
> thanks
>
> Luiz Fernando
>
>
> 
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=12341&edit=2


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




[PHP-DEV] Bug #12344: Handling of multiples responses in ftp client is buggy

2001-07-24 Thread at

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3-RELEASE
PHP version:  4.0.6
PHP Bug Type: FTP related
Bug description:  Handling of multiples responses in ftp client is buggy

When doing FTP on localhost with small files, "236 Transfer complete"
response is sent in the same TCP segment as "150 Opening ...". Decoding of
multiple response in same my_recv() is buggy, because buffer is shifted
after numerical code compute, but ->extra data is not shifted, resulting in
a timeout because response is never read.

This patch fixes this problem. This patch implements  too ftp_quit()
properly (actual code was never called).

There is also a problem if ftp_fget relating to error handling.

I don't know if this fucking textarea will permit to properly insert a
patch, you can get it at 
http://www.rominet.net/~at/php-4.0.6.ftp.patch

diff -ru php-4.0.6/ext/ftp/ftp.c php-4.0.6.patched/ext/ftp/ftp.c
--- php-4.0.6/ext/ftp/ftp.c Fri Nov  3 22:53:24 2000
+++ php-4.0.6.patched/ext/ftp/ftp.c Tue Jul 24 19:12:17 2001
@@ -841,6 +841,7 @@
(ftp->inbuf[2] - '0');
 
memmove(ftp->inbuf, ftp->inbuf + 4, FTP_BUFSIZE - 4);
+if (ftp->extra) ftp->extra-=4;
 
return 1;
 }
diff -ru php-4.0.6/ext/ftp/php_ftp.c php-4.0.6.patched/ext/ftp/php_ftp.c
--- php-4.0.6/ext/ftp/php_ftp.c Thu May 24 14:41:51 2001
+++ php-4.0.6.patched/ext/ftp/php_ftp.c Tue Jul 24 18:43:59 2001
@@ -512,7 +512,7 @@
convert_to_string(arg3);
XTYPE(xtype, arg4);
 
-   if (!ftp_get(ftp, fp, Z_STRVAL_P(arg3), xtype) || ferror(fp)) {
+   if (!ftp_get(ftp, fp, Z_STRVAL_P(arg3), xtype)) {
php_error(E_WARNING, "ftp_get: %s", ftp->inbuf);
RETURN_FALSE;
}
@@ -847,6 +847,7 @@
 {
pval*arg1;
int id, type;
+   ftpbuf_t*ftp;
 
/* arg1 - ftp
 */
@@ -855,8 +856,11 @@
}
 
id = Z_LVAL_P(arg1);
-   if (zend_list_find(id, &type) && type == le_ftpbuf)
+   if (zend_list_find(id, &type) && type == le_ftpbuf) {
+   FTPBUF(ftp, arg1);
+ftp_quit(ftp);
zend_list_delete(id);
+}
 
RETURN_TRUE;
 }

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


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




[PHP-DEV] Bug #12343: libtool version not properly tested

2001-07-24 Thread jcelle

From: [EMAIL PROTECTED]
Operating system: Sun Sparc Solaris 8
PHP version:  4.0.5
PHP Bug Type: *Configuration Issues
Bug description:  libtool version not properly tested

I am using libtool 1.4.
Minimum requirement as indicated in build/buildcheck.sh is 1.3.3. 

1.4 is not properly evaluated against 1.3.3 making buildconf abort.
-- 
Edit bug report at: http://bugs.php.net/?id=12343&edit=1


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




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-24 Thread schulte

ID: 5653
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS["cookie3"] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line 298 (in ver 4.0.6 
of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, &mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you set.

The Problen is _not_ on the side of the webserver. I found out (and may proove) that 
the roxen-php-module will recieve more than only one cookie if you like, i would 
make some php-scripts that will show you...


 


Previous Comments:


[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...


go down to the section about the "HTTP Headers Information"
then go to the "HTTP Response Headers."  Either post this
information here, or give us the address to that page.



[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'





[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say "only lets you set ONE"



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



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


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


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




[PHP-DEV] Bug #12341 Updated: Don't is appears the object

2001-07-24 Thread andy

ID: 12341
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: COM related
Operating System: NT 4.0 WorkStation
PHP Version: 4.0.6
New Comment:

Did the document save correctly?

Previous Comments:


[2001-07-24 10:43:11] [EMAIL PROTECTED]

A take a sample of function COM.

$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1; // command that show window
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

The commands execute, but the window of word don't appears.

I make a test with Autocad too, but the window don't appears.
When a had a ohter version PHP, don't remember, the window appears

thanks

Luiz Fernando






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


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




[PHP-DEV] Fwd: PHP Bug 8664

2001-07-24 Thread Andy

Does anyone have an opinion on this?

--  Forwarded Message  --
Subject: PHP Bug 8664
Date: Tue, 24 Jul 2001 17:48:31 +0200
From: Frank Loeffler <[EMAIL PROTECTED]>


Hi,

you adviced in this bug to use ImageColorExtract to set a color 
transparent. As far as I know, this information is already in a (loaded) 
picture (ImageCreateFromPNG). I tried - in PHP this information is not 
used. I would like to have PHP set the transparent color in 
ImageCreateFromPNG (or GIF), then the user does not have to take care 
about the RGB of the transparent color (the PHP-script maybe does not 
know anything about the picture).
Using ImageColorExtract has maybe also another problem: what happens, if 
two or more colors have the same RGB-value?

So, my question is, if it would be ok to report this as bug or if I am 
wrong.

Thanks, Frank
---

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




Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Chris Vandomelen

> > The new version (renamed, cleaned up) is fairly new, so it should be fine
> > to do that.
>
> While we're at it, wouldn't it be more intuitiv to modify the
> socket_fd_*() calls to accept the fd_set resource as first
> parameter and the fd to add or remove as second parameter ?
>

No problem with that request. I'll still get them confused though. :)

> For socket_fd_set() I'ld also vote to let the second parameter be
> a single socket or an array of sockets (when you're dealing with
> many connection you're likely holding them in an array than in
> separate vars); same for socket_fd_clear(). Maybe, but I haven't
> thought more about it, it would make sense for _isset() [after
> writing this sentence I think not :) ].

*_set() and *_clear() it makes sense to accept an array for. *_isset(),
OTOH, it doesn't. "Oh, I want to know if any of the fds 5, 6, 7, or 8 are
set"... somehow that doesn't seem quite kosher. :)

Chris


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




[PHP-DEV] Bug #12342: error in configuration with pthread

2001-07-24 Thread longinos . ferrando

From: [EMAIL PROTECTED]
Operating system: RH 7.1
PHP version:  4.0.6
PHP Bug Type: PHP options/info functions
Bug description:  error in configuration with pthread

make version 3.79.1
automake version 1.4
gcc version 2.96
kernel 2.4.3-12enterprise
when run ./configure \
--prefix=/usr \
--disable-debug \
--enable-pic \
--enable-shared \
--enable-inline-optimization \
$* \
--with-exec-dir=/usr/bin \
--with-regex=system \
--with-gettext \
--with-gd \
--with-jpeg-dir=/usr \
--with-config-file-path=/etc \
--with-png \
--with-zlib \
--with-bz2 \
--with-gdbm \
--with-mysql \
--without-db2 \
--without-db3 \
--enable-debugger \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-yp \
--enable-ftp \
--enable-wddx \
--with-oracle \
--with-oci8 \
--with-xml \
--with-java \
--with-smtp
I have no errors in the screen but in the config.log I get a lot of error
messages same as:
configure:2572: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccarKgpO.o: In function `main':
/varios/php-4.0.6/configure:2567: undefined reference to
`pthread_mutexattr_init'
/varios/php-4.0.6/configure:2568: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2554 "configure"
#include "confdefs.h"

#include 
#include 

void *thread_routine(void *data) {
return data;
}

int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}
configure:2592: checking for pthreads_cflags
configure:2625: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/tmp/ccVNfWDx.o: In function `main':
/varios/php-4.0.6/configure:2620: undefined reference to
`pthread_mutexattr_init'
/varios/php-4.0.6/configure:2621: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2607 "configure"
#include "confdefs.h"

#include 
#include 

void *thread_routine(void *data) {
return data;
}

int main() {
pthread_t thd;
pthread_mutexattr_t mattr;
int data = 1;
pthread_mutexattr_init(&mattr);
return pthread_create(&thd, NULL, thread_routine, &data);
}

 and then the make does´t run properly.
Same as the 9788 bug but without the --with-crack option.


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


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




Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Markus Fischer

On Tue, Jul 24, 2001 at 05:48:33AM -0700, Chris Vandomelen wrote : 
> > On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote:
> > > Great :-)
> > >
> > > So we're seeing this getting implemented soon ?
> > >
> > > Volunteers, anyone ? :-))
> >
> > Is this select stuff so brand new that it's okay to change the API?
> > If it is, we should do it quickly before too many people get to
> > play with it.
> >
> > I think I agree now with just using the max, we can always optimize
> > more later if we feel it's necessary, I think the most important
> > thing now is to get rid of that argument if possible (:
> 
> The new version (renamed, cleaned up) is fairly new, so it should be fine
> to do that.

While we're at it, wouldn't it be more intuitiv to modify the
socket_fd_*() calls to accept the fd_set resource as first
parameter and the fd to add or remove as second parameter ?

For socket_fd_set() I'ld also vote to let the second parameter be
a single socket or an array of sockets (when you're dealing with
many connection you're likely holding them in an array than in
separate vars); same for socket_fd_clear(). Maybe, but I haven't
thought more about it, it would make sense for _isset() [after
writing this sentence I think not :) ].

- Markus

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




[PHP-DEV] Bug #12339 Updated: Seg Fault in PHP under 2k /w ODBC and Globals (apparently)...

2001-07-24 Thread nlange

ID: 12339
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: ODBC related
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

Ok... 
Changing the connect to a pconnect, removing the out db connection (which was closed 
via odbc_close())
solves the problem.. so what exactly is going on I don't know...
nick

Previous Comments:


[2001-07-24 10:47:11] [EMAIL PROTECTED]

Sigh...
I'm not so sure it's with globals anymore, I just knowit's with ODBC
I had this problem once before and ended up re-writing and inlining all my code to get 
it go away. (side note, php cvs build for win2k from php4win project (approaching 
4.0.7 release) exhibited the same problem)
this particular file is also the only one to crash out of all the php files.. what 
makes it unique is the rather long subroutine
but I've gotten a stack trace and some more information
it dies with the following
Fatal error:  Call to undefined function:  () in C:\dev\isis\web\view_
user_info.php on line 39
and it's 0Xc0005, typically a buffer issue...
01222f10()
ODBC32! 1f7d792e()
ODBC32! 1f7d7866()
PHP4TS! 100026a9()
PHP! 00401a43()
PHP! 0040207b()
KERNEL32! 77e97d08()

echo's removed, but assignments left in to give a general idea what's going on...

Offending Trimmed Code
--
function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, 
$zhead="")
{
  $dmy = sizeof($tarray); //dummy var
  $elem_colspan = ((($total-($total%$dmy))/$dmy) == 1)?"":"COLSPAN 
=\"".(($total-($total%$dmy))/$dmy)."\"";
  //header on table 1
  if (strlen($zhead)>0)
  {
  $CLASS = "CLASS=\"".$sarray['Header']['Class']."\""; 
  $STYLE = "STYLE=\"".$sarray['Header']['Style']."\"";
  
  }
  foreach ($tarray as $header => $tname)
  {
$CLASS = ($sarray[$header]['THClass'] != 
'')?"CLASS=\"".$sarray[$header]['THClass']."\"":"CLASS=\"sort\"";
$STYLE = ($sarray[$header]['THStyle'] != 
'')?"STYLE=\"".$sarray[$header]['THStyle']."\"":"";
  }
  echo "\n";
  $DBHX = odbc_connect("QUAL7000","QUAL_RPT","QUALRPT") or die 
(odbc_errormsg());
/**
Dies Here 
*/
  $sh = odbc_prepare($DBHX,$query) or die (odbc_errormsg().$query);
  odbc_execute($sh) or die (odbc_errormsg());
  $rownum = 0;
  while(odbc_fetch_into($sh,$rownum,$rez))
  {
$trim_row($rez);
reset($rez);
foreach ($tarray as $header => $s)
{
$CLASS = ($sarray[$header]['TDClass'] != 
'')?"CLASS=\"".$sarray[$header]['TDClass']."\"":"CLASS=\"main\"";
$STYLE = ($sarray[$header]['TDStyle'] != 
'')?"STYLE=\"".$sarray[$header]['TDStyle']." $x\"":"STYLE=\"$x\"";
next($rez);
}
  }
  if (odbc_num_rows($sh) == 0)
  {
$c = 0;
foreach ($tarray as $header => $s)
{
$CLASS = ($sarray[$header]['TDClass'] != 
'')?"CLASS=\"".$sarray[$header]['TDClass']."\"":"CLASS=\"main\"";
$STYLE = ($sarray[$header]['TDStyle'] != 
'')?"STYLE=\"".$sarray[$header]['TDStyle']." $x\"":"STYLE=\"$x\"";
if ((++$c) < sizeof($tarray))
{
}
else
{
}
}
echo '';
  }

  odbc_free_result($sh);
  odbc_close($DBHX);
}

   report($queryuso,$uasuso_trans,$uasuso_style,"User does not have access to any 
objects",sizeof($uasusa_trans)*2,1,"Object Access");
   



[2001-07-24 10:31:14] [EMAIL PROTECTED]

could you send in a short, yet more complete script than what
you have given us now.



[2001-07-24 10:20:04] [EMAIL PROTECTED]

All right, this is a rough one to report as I only have vagure ideas as to what's 
going on ... but it really sucks either way. 

the function call...

report($queryusa,$uasusa_trans,$uasusa_style,"User does not have access to any 
systems",sizeof($uasusa_trans)*2,0,"System Access");

the function 

function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, $zhead="")

The crash

the overwrite (I'm convinced it's an overwrite because EIP is 0x00d72f10 and memor

[PHP-DEV] Bug #12339 Updated: Seg Fault in PHP under 2k /w ODBC and Globals (apparently)...

2001-07-24 Thread nlange

ID: 12339
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: ODBC related
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

Sigh...
I'm not so sure it's with globals anymore, I just knowit's with ODBC
I had this problem once before and ended up re-writing and inlining all my code to get 
it go away. (side note, php cvs build for win2k from php4win project (approaching 
4.0.7 release) exhibited the same problem)
this particular file is also the only one to crash out of all the php files.. what 
makes it unique is the rather long subroutine
but I've gotten a stack trace and some more information
it dies with the following
Fatal error:  Call to undefined function:  () in C:\dev\isis\web\view_
user_info.php on line 39
and it's 0Xc0005, typically a buffer issue...
01222f10()
ODBC32! 1f7d792e()
ODBC32! 1f7d7866()
PHP4TS! 100026a9()
PHP! 00401a43()
PHP! 0040207b()
KERNEL32! 77e97d08()

echo's removed, but assignments left in to give a general idea what's going on...

Offending Trimmed Code
--
function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, 
$zhead="")
{
  $dmy = sizeof($tarray); //dummy var
  $elem_colspan = ((($total-($total%$dmy))/$dmy) == 1)?"":"COLSPAN 
=\"".(($total-($total%$dmy))/$dmy)."\"";
  //header on table 1
  if (strlen($zhead)>0)
  {
  $CLASS = "CLASS=\"".$sarray['Header']['Class']."\""; 
  $STYLE = "STYLE=\"".$sarray['Header']['Style']."\"";
  
  }
  foreach ($tarray as $header => $tname)
  {
$CLASS = ($sarray[$header]['THClass'] != 
'')?"CLASS=\"".$sarray[$header]['THClass']."\"":"CLASS=\"sort\"";
$STYLE = ($sarray[$header]['THStyle'] != 
'')?"STYLE=\"".$sarray[$header]['THStyle']."\"":"";
  }
  echo "\n";
  $DBHX = odbc_connect("QUAL7000","QUAL_RPT","QUALRPT") or die 
(odbc_errormsg());
/**
Dies Here 
*/
  $sh = odbc_prepare($DBHX,$query) or die (odbc_errormsg().$query);
  odbc_execute($sh) or die (odbc_errormsg());
  $rownum = 0;
  while(odbc_fetch_into($sh,$rownum,$rez))
  {
$trim_row($rez);
reset($rez);
foreach ($tarray as $header => $s)
{
$CLASS = ($sarray[$header]['TDClass'] != 
'')?"CLASS=\"".$sarray[$header]['TDClass']."\"":"CLASS=\"main\"";
$STYLE = ($sarray[$header]['TDStyle'] != 
'')?"STYLE=\"".$sarray[$header]['TDStyle']." $x\"":"STYLE=\"$x\"";
next($rez);
}
  }
  if (odbc_num_rows($sh) == 0)
  {
$c = 0;
foreach ($tarray as $header => $s)
{
$CLASS = ($sarray[$header]['TDClass'] != 
'')?"CLASS=\"".$sarray[$header]['TDClass']."\"":"CLASS=\"main\"";
$STYLE = ($sarray[$header]['TDStyle'] != 
'')?"STYLE=\"".$sarray[$header]['TDStyle']." $x\"":"STYLE=\"$x\"";
if ((++$c) < sizeof($tarray))
{
}
else
{
}
}
echo '';
  }

  odbc_free_result($sh);
  odbc_close($DBHX);
}

   report($queryuso,$uasuso_trans,$uasuso_style,"User does not have access to any 
objects",sizeof($uasusa_trans)*2,1,"Object Access");
   

Previous Comments:


[2001-07-24 10:31:14] [EMAIL PROTECTED]

could you send in a short, yet more complete script than what
you have given us now.



[2001-07-24 10:20:04] [EMAIL PROTECTED]

All right, this is a rough one to report as I only have vagure ideas as to what's 
going on ... but it really sucks either way. 

the function call...

report($queryusa,$uasusa_trans,$uasusa_style,"User does not have access to any 
systems",sizeof($uasusa_trans)*2,0,"System Access");

the function 

function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, $zhead="")

The crash

the overwrite (I'm convinced it's an overwrite because EIP is 0x00d72f10 and memory is 
the same value, and a rudimentary jump (albeit confusedly)into msdev vdebug showed 
something similar)
happens at the call to odbc prepare...

$sh = odbc_prepare($DBH,$query) or die (odbc_errormsg().$query);

the odbc_connect looks like
$DBH = odbc_connect($GLOBALS['DSN'],$GLOBALS['DSN_U

[PHP-DEV] Bug #12341: Don't is appears the object

2001-07-24 Thread tuca

From: [EMAIL PROTECTED]
Operating system: NT 4.0 WorkStation
PHP version:  4.0.6
PHP Bug Type: COM related
Bug description:  Don't is appears the object

A take a sample of function COM.

$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1; // command that show window
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

The commands execute, but the window of word don't appears.

I make a test with Autocad too, but the window don't appears.
When a had a ohter version PHP, don't remember, the window appears

thanks

Luiz Fernando

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


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




[PHP-DEV] Bug #12339 Updated: Seg Fault in PHP under 2k /w ODBC and Globals (apparently)...

2001-07-24 Thread andy

ID: 12339
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: ODBC related
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

could you send in a short, yet more complete script than what
you have given us now.

Previous Comments:


[2001-07-24 10:20:04] [EMAIL PROTECTED]

All right, this is a rough one to report as I only have vagure ideas as to what's 
going on ... but it really sucks either way. 

the function call...

report($queryusa,$uasusa_trans,$uasusa_style,"User does not have access to any 
systems",sizeof($uasusa_trans)*2,0,"System Access");

the function 

function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, $zhead="")

The crash

the overwrite (I'm convinced it's an overwrite because EIP is 0x00d72f10 and memory is 
the same value, and a rudimentary jump (albeit confusedly)into msdev vdebug showed 
something similar)
happens at the call to odbc prepare...

$sh = odbc_prepare($DBH,$query) or die (odbc_errormsg().$query);

the odbc_connect looks like
$DBH = odbc_connect($GLOBALS['DSN'],$GLOBALS['DSN_USER'],$GLOBALS['DSN_PW']) or die 
(odbc_errormsg());

as it stands now I am under a deadline so I can't dig too deep (I have to find a 
workaround) ,but I'll follow up  with any supplemental material I can..
oh, ODBC Driver is Tandem NONStop..






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


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




Re: [PHP-DEV] Bug #11489 Updated: Sybase query result is gettingdestructed

2001-07-24 Thread Paul Moosman

Joey Smith wrote:

> Paul:
> Right. It seems the other situations that caused the bug to
> appear have closed, but I still intend to apply your patch as soon as I
> have a spare moment. Thanks. :)

Thank you for all your effort. However, I was able to get cvs access and I checked-in
the my fix into version 1.52 of sybase_ct/php_sybase_ct.c.

Thanks again for all your help.
--
Paul Moosman
[EMAIL PROTECTED]



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




[PHP-DEV] Bug #12339: Seg Fault in PHP under 2k /w ODBC and Globals (apparently)...

2001-07-24 Thread nlange

From: [EMAIL PROTECTED]
Operating system: Win2k
PHP version:  4.0.6
PHP Bug Type: ODBC related
Bug description:  Seg Fault in PHP under 2k /w ODBC and Globals (apparently)... 

All right, this is a rough one to report as I only have vagure ideas as to
what's going on ... but it really sucks either way. 

the function call...

report($queryusa,$uasusa_trans,$uasusa_style,"User does not have access to
any systems",sizeof($uasusa_trans)*2,0,"System Access");

the function 

function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0,
$zhead="")

The crash

the overwrite (I'm convinced it's an overwrite because EIP is 0x00d72f10
and memory is the same value, and a rudimentary jump (albeit
confusedly)into msdev vdebug showed something similar)
happens at the call to odbc prepare...

$sh = odbc_prepare($DBH,$query) or die (odbc_errormsg().$query);

the odbc_connect looks like
$DBH =
odbc_connect($GLOBALS['DSN'],$GLOBALS['DSN_USER'],$GLOBALS['DSN_PW']) or
die (odbc_errormsg());

as it stands now I am under a deadline so I can't dig too deep (I have to
find a workaround) ,but I'll follow up  with any supplemental material I
can..
oh, ODBC Driver is Tandem NONStop..

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


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




[PHP-DEV] Bug #12338: Cannot open two connection simultaneously

2001-07-24 Thread dragosoft

From: [EMAIL PROTECTED]
Operating system: Windows ME & Windows 2000
PHP version:  4.0.6
PHP Bug Type: InterBase related
Bug description:  Cannot open two connection simultaneously

index.HTML

{provaSX.php}
{provaDX.php}


//provaDX.PHP
";
while ($Riga=ibase_fetch_row($RisultatoQuery))
{
echo "";
echo " $Riga[0]  $Riga[1] ";
echo "";
}
echo "";
}
else
{
echo "La query è vuota!";
}
}
else
echo "Connessione a $NomeDB fallita";
?>

//provaSX.PHP
";
while ($Riga=ibase_fetch_row($RisultatoQuery))
{
echo "";
echo " $Riga[0]  $Riga[1] ";
echo "";
}
echo "";
}
else
{
echo "La query è vuota!";
}
}
else
echo "Connessione a $NomeDB fallita";
?>

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


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




[PHP-DEV] Bug # 11790

2001-07-24 Thread Johan Ekenberg

Hi!

I ran into the same compile problem on a Slackware libc5 system with PHP 4.0.6.

  cp /usr/src/linux/include/asm-i386/statfs.h /usr/include/sys
+ reconfiguring and rebuilding PHP worked for me.

Hope this helps,
/Johan Ekenberg


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




[PHP-DEV] Bug #12332 Updated: Reading and Writing files

2001-07-24 Thread mfischer

ID: 12332
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.0.6
New Comment:

You actually use pack() and unpack() to prepare binary data to be written or to be 
read, see their manual entries.

Previous Comments:


[2001-07-24 05:55:57] [EMAIL PROTECTED]

Hi,
There is no fonction in PHP to read or write an integer or a long value from a file.

Actually, I read a 2 or 4 characters string, and convert it into the corresponding 
numeric value with this function :

function readNum( $f, $len )
{
$tmp = strrev( fread( $f, $len ) );
$val = 0;
for( $i=0; $i<$len; $i++ )
$val += ord(substr($tmp,$i,1)) * pow(256,$len-1-$i);
return $val;
}

Regards,
Fred.






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


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




[PHP-DEV] Bug #12337: Function fscanf does not correctly handle "\t" in format string

2001-07-24 Thread premysl . dedic

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 6.2
PHP version:  4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description:  Function fscanf does not correctly handle "\t" in format string

When I copy&paste sample from documentation of fscanf function, I found,
that it work incorrectly:

Sample:
while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) {
list ($name, $profession, $countrycode) = $userinfo;
}

Sample file:
abcdef ghi jkl . 
Note:  means here a "tabelator" character (\t)

Result:
$name = 'abc'
$profession = 'def';
$contrycode = 'jkl';

I expect:
$name = 'abc'
$profession = 'def ghi jkl';
$contrycode = '  ';

What si wrong???


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


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




[PHP-DEV] Bug #12336: Unable to load dynamic library liboci8.so

2001-07-24 Thread Pavel . Zakouril

From: [EMAIL PROTECTED]
Operating system: SCO UnixWare 7.1.1
PHP version:  4.0.6
PHP Bug Type: OCI8 related
Bug description:  Unable to load dynamic library liboci8.so

I am trying to get working oci8 as a dynamic (shared) module. When I build
a static oci8 support, everything works fine. But when I switch to
dynamic:

export CC=cc; ./configure --with-oci8=shared --with-apxs -without-mysql

compilation and installations proceeds O.K., but when I try to load
liboci8.so in my PHP script, I obtain the following message:

Warning: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20001222/liboci8.so' -
dynamic linker:
/usr/local/sbin/httpd: relocation error: symbol not found: lio_listio64;
referenced from:
/u01/app/oracle/product/8.1.6/lib/libclntsh.so.8.0 in
/usr/www/mff/oratest.htm on line 26

What can be wrong ?
-- 
Edit bug report at: http://bugs.php.net/?id=12336&edit=1


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




[PHP-DEV] Bug #12325 Updated: Query_string not defined

2001-07-24 Thread andy

ID: 12325
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

Can you include a copy of your php.ini file?

Previous Comments:


[2001-07-23 21:30:26] [EMAIL PROTECTED]

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.





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


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




[PHP-DEV] Bug #12324 Updated: arg_separator.output broken

2001-07-24 Thread andy

ID: 12324
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Configuration Issues
Operating System: linux
PHP Version: 4.0.6
New Comment:

you have your params mixed up.  replace arg_separator.output
with arg_separator.input and things will work.  I modified
your script below.  This one works as you wanted it to.

Key: '$key'   Value '$val'";
}
}


echo "";
echo "Click to
activate test";
echo "";

?>


Previous Comments:


[2001-07-23 20:22:46] [EMAIL PROTECTED]

I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on 
other machines. I will not however, that this problem does not seem to occur on 
windows/apache machines.

the problem is that get vars using an arg_separator.output other than '&' will be 
ignored when attempting to parse HTTP_GET_VARS.

there is an example avaliable at
http://wart.phpking.org/test.php
the source is visible at
http://wart.phpking.org/test.phps

a side note - it would seem that the transparent session info appended to a url by php 
will also not follow a new 'arg_separator.output' value.. for example - if i set the 
arg_separator.output to ';'..  my PHPSESSID will still be appended to the url with a 
'&'

-voudras





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


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




[PHP-DEV] Returning only one error

2001-07-24 Thread Matt Allen

Hi All,

My XMLRPC Error Patch got submitted last week and all is good, except
when PHP returns more than one error, ie a warning then a fatal.  A
"double" XMLRPC Fault packet gets returned instead of just one, making
most clients bork.

Is there anyway of making PHP die one the first error it receives?

Cheers,
Matt
-- 
Matt Allen
Technical Director
Investigation Marketplace
0413 777 771
[EMAIL PROTECTED]

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




[PHP-DEV] Bug #12329 Updated: dfdf

2001-07-24 Thread andy

ID: 12329
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: IIS related
Operating System: win
PHP Version: 4.0.6
New Comment:

obviosly somebody trying to be funny...

Previous Comments:


[2001-07-24 03:28:23] [EMAIL PROTECTED]

dfdf dfd dfdf dfdf





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


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




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-24 Thread andy

ID: 5653
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...


go down to the section about the "HTTP Headers Information"
then go to the "HTTP Response Headers."  Either post this
information here, or give us the address to that page.

Previous Comments:


[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'





[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say "only lets you set ONE"



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



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


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


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




[PHP-DEV] Bug #11976 Updated: image_copy_resized does not work properly

2001-07-24 Thread andy

ID: 11976
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: GD related
Operating System: windows 98 SE
PHP Version: 4.0.6
New Comment:

exactly the result I got.  Can anybody else reproduce this?

I still think this is bogus.

Previous Comments:


[2001-07-24 03:08:00] [EMAIL PROTECTED]

The image result supposed to be a png image like this:

---|-
 | |  | |  | |  | |  | |   |
 | |  | |   -   | |  | |   |
 | |   -| |  | |   |
  -  -   | |   |
  -|
   |
   |

So it is supposed to be a graph with blue rectangles and two black lines, not a black 
square.



[2001-07-23 11:43:58] [EMAIL PROTECTED]

My script should not draw a black image but a blue graph( blue rectangles).
Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script 
draw a graphics with blue rectangles.
It works with php4.0.6 only if I don't use the function image_copy_resized. So In 
conclusion, I think that there is a problem with this function on php4.0.6 with W98 
OS??



[2001-07-23 09:33:38] [EMAIL PROTECTED]

so what is the problem.  The image works now...  Just make sure
you set the header to "image/png" or whatever file type
the image is.



[2001-07-23 06:24:34] [EMAIL PROTECTED]

When I removed the header function (or set it to "text/html"), I have this on my 
browser:
" PNG "??
If I keept "image/png" or "image/jpeg", I have a all-in black image??  



[2001-07-21 20:51:42] [EMAIL PROTECTED]

Works fine for me (I am using Linux.)  Try removing the
header function (or set it to "text/html") and see if there
are any errors/warnings that are corrupting the image.



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


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


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




[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-24 Thread andy

ID: 12335
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?

Previous Comments:


[2001-07-24 08:03:30] [EMAIL PROTECTED]

I had first the bug with id 12024 and I have fixed it like described in the bug 
report.
Now I can send mails, but the mail() function returns false altough the mail was sent.
I use the following script to test the mail() function.
 







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


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




Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Chris Vandomelen

> On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote:
> > Great :-)
> >
> > So we're seeing this getting implemented soon ?
> >
> > Volunteers, anyone ? :-))
>
> Is this select stuff so brand new that it's okay to change the API?
> If it is, we should do it quickly before too many people get to
> play with it.
>
> I think I agree now with just using the max, we can always optimize
> more later if we feel it's necessary, I think the most important
> thing now is to get rid of that argument if possible (:

The new version (renamed, cleaned up) is fairly new, so it should be fine
to do that.

Chris



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




[PHP-DEV] Bug #12335: mail() function returns false but the email was sent.

2001-07-24 Thread sascha . winkler

From: [EMAIL PROTECTED]
Operating system: Sun Solaris 2.6
PHP version:  4.0.6
PHP Bug Type: Mail related
Bug description:  mail() function returns false but the email was sent.

I had first the bug with id 12024 and I have fixed it like described in the
bug report.
Now I can send mails, but the mail() function returns false altough the
mail was sent.
I use the following script to test the mail() function.
 


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


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




[PHP-DEV] Bug #12334: BZIP2 compiled as loadable extention

2001-07-24 Thread darryl

From: [EMAIL PROTECTED]
Operating system: i686-linux 2.4.x
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  BZIP2 compiled as loadable extention


When building 'bz2' modules as loadable extention libbz2 symbols remain
undefined in PHPs 'bz2.so' module.  Also libbz2.so.1.0.1 doesn't appear as
a dependant libary when 'ldd' is run on the resultant PHP 'bz2.so'
module.

This patch seems to cause the build process to include a private copy of
the system libbz2.a into the PHP 'bz2.so' modules, leaving no undefined
symbols.


--- ext/bz2/Makefile.in~Wed Oct 18 19:32:21 2000
+++ ext/bz2/Makefile.in Tue Jul 24 12:09:02 2001
@@ -3,5 +3,6 @@
 LTLIBRARY_NAME= libbz2.la
 LTLIBRARY_SOURCES = bz2.c
 LTLIBRARY_SHARED_NAME = bz2.la
+LTLIBRARY_SHARED_LIBADD = $(BZ2_SHARED_LIBADD)

 include $(top_srcdir)/build/dynlib.mk

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


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




[PHP-DEV] Bug #12333 Updated: pdf_open_image_file fails for gif-pictures

2001-07-24 Thread rjs

ID: 12333
Updated by: rjs
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: PDF related
Operating System: SuSE Linux 7.1
PHP Version: 4.0.4pl1
New Comment:

The PDFlib documentation describes this behavior in Chapter 3.4.1.

Also you should check the result of pdf_open_image_file to avoid running into problems 
later.

As it is not possible to copy the complete content of the PDFlib Manual to the PHP 
Documentation it is recommended to use the original PDFlib manual when working with 
PDFlib.

Previous Comments:


[2001-07-24 06:24:40] [EMAIL PROTECTED]

Hello!
I have tested your pdf_open_image_file -function. 
It fails when I use gif-pictures that have a color-depth smaller than 16 bits per 
pixel. That means gifs with 16(4bpp) or 2 colors (b/w) will fail. With 256(16bpp) and 
16,7M(24bpp) colors everything runs fine.
I used the following simple script for testing it:




The output of the script in case of errors was:

Warning: Could not open image in /usr/local/httpd/htdocs/regent/pdftest.php on line 8

Warning: Unable to find file identifier 0 in 
/usr/local/httpd/htdocs/regent/pdftest.php on line 9

Warning: Unable to find file identifier 0 in 
/usr/local/httpd/htdocs/regent/pdftest.php on line 10


My PHP-commandline is the following:
'./configure' '--prefix=/usr' '--bindir=/usr/bin' '--libdir=/usr/lib' 
'--with-exec-dir=%{libdir}/php/bin' '--with-mysql=/usr' '--with-gd=/usr' '--with-imap' 
'--with-imap-ssl=/usr' '--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=yes' 
'--with-ldap=yes' '--with-zlib=yes' '--with-xml' '--with-ttf' '--with-readline' 
'--with-ftp' '--with-ndbm' '--with-gdbm' '--with-mcrypt=/usr/lib/libmcrypt' 
'--with-mm' '--with-interbase' '--enable-versioning' '--enable-yp' '--enable-bcmath' 
'--enable-trans-sid' '--enable-inline-optimization' '--enable-track-vars' 
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-calendar' 
'--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--enable-exif' '--enable-ftp' 
'--enable-memory-limit' '--enable-wddx' '--enable-filepro' '--enable-dbase' 
'--with-config-file-path=/etc/httpd' '--with-apxs=/usr/sbin/apxs' 
'--with-exec-dir=/usr/lib/apache/bin' 'i386-suse-linux-gnu'


If this is not a bug, a comment in the documentation could be very useful...

Greetings,

Christian Gäking





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


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




[PHP-DEV] Bug #12191 Updated: Certificate Environment Variables missing with ISAPI

2001-07-24 Thread jmoore

ID: 12191
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Assigned
Bug Type: IIS related
Operating System: Win2K
PHP Version: 4.0.6
Assigned To: jmoore
New Comment:

User Feedback:
==
Hi James!

> Can you send me a list of these variables names 
> and we can get this fixed.

The variable names I am missing are:

CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT

I am attaching the output of the following script:

";
  echo $HTTP_ENV_VARS["CERT_SUBJECT"];

  phpinfo();
?>

As you will see the CGI-version knows both variables, while the
ISAPI-version
knows neither!


Another thing I noticed with PHP 4.0.2:

I have to use $HTTP_ENV_VARS["CERT_SUBJECT"] with CGI and
$HTTP_SERVER_VARS["CERT_SUBJECT"] with ISAPI.

Many thanks for your efforts
   Christian

 <>  <> 

===
Ill add these variables to the list as soon as I get 5 mins to think.

- James

Previous Comments:


[2001-07-23 14:34:40] [EMAIL PROTECTED]

Can you send me a list of these variables names and we can get this fixed.

Thanks,

- James



[2001-07-16 11:51:34] [EMAIL PROTECTED]

I am using the PHP 4.0.2 ISAPI-Modul with IIS 5.0 on Win2K which set the certificate 
environment variables 
(e.g. $HTTP_SEVER_VARS["CERT_SUBJECT"]) correctly.

Now I want to switch to PHP 4.0.6 but the variables are
missing in the ISAPI-Modul (phpinfo() shows them under
ISAPI but NOT under Environment!) but in CGI they are
here again.

greetings
  Christian







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


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




[PHP-DEV] Bug #12333: pdf_open_image_file fails for gif-pictures

2001-07-24 Thread christian

From: [EMAIL PROTECTED]
Operating system: SuSE Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: PDF related
Bug description:  pdf_open_image_file fails for gif-pictures

Hello!
I have tested your pdf_open_image_file -function. 
It fails when I use gif-pictures that have a color-depth smaller than 16
bits per pixel. That means gifs with 16(4bpp) or 2 colors (b/w) will fail.
With 256(16bpp) and 16,7M(24bpp) colors everything runs fine.
I used the following simple script for testing it:




The output of the script in case of errors was:

Warning: Could not open image in /usr/local/httpd/htdocs/regent/pdftest.php
on line 8

Warning: Unable to find file identifier 0 in
/usr/local/httpd/htdocs/regent/pdftest.php on line 9

Warning: Unable to find file identifier 0 in
/usr/local/httpd/htdocs/regent/pdftest.php on line 10


My PHP-commandline is the following:
'./configure' '--prefix=/usr' '--bindir=/usr/bin' '--libdir=/usr/lib'
'--with-exec-dir=%{libdir}/php/bin' '--with-mysql=/usr' '--with-gd=/usr'
'--with-imap' '--with-imap-ssl=/usr' '--with-tiff-dir=/usr'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6'
'--with-pdflib=yes' '--with-ldap=yes' '--with-zlib=yes' '--with-xml'
'--with-ttf' '--with-readline' '--with-ftp' '--with-ndbm' '--with-gdbm'
'--with-mcrypt=/usr/lib/libmcrypt' '--with-mm' '--with-interbase'
'--enable-versioning' '--enable-yp' '--enable-bcmath' '--enable-trans-sid'
'--enable-inline-optimization' '--enable-track-vars'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop'
'--enable-exif' '--enable-ftp' '--enable-memory-limit' '--enable-wddx'
'--enable-filepro' '--enable-dbase' '--with-config-file-path=/etc/httpd'
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/lib/apache/bin'
'i386-suse-linux-gnu'


If this is not a bug, a comment in the documentation could be very
useful...

Greetings,

Christian Gäking
-- 
Edit bug report at: http://bugs.php.net/?id=12333&edit=1


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




[PHP-DEV] Bug #12332: Reading and Writing files

2001-07-24 Thread fred

From: [EMAIL PROTECTED]
Operating system: All
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Reading and Writing files

Hi,
There is no fonction in PHP to read or write an integer or a long value
from a file.

Actually, I read a 2 or 4 characters string, and convert it into the
corresponding numeric value with this function :

function readNum( $f, $len )
{
$tmp = strrev( fread( $f, $len ) );
$val = 0;
for( $i=0; $i<$len; $i++ )
$val += ord(substr($tmp,$i,1)) * pow(256,$len-1-$i);
return $val;
}

Regards,
Fred.

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


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




[PHP-DEV] Re: Bug #12319 Updated: Apache shutdowns with a distant MSSQL 6.5 if connection failed

2001-07-24 Thread BENFADEL

Dear Sir,

Unfortunately yes..

Thanks for helping..
AB

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




[PHP-DEV] Bug #11781 Updated: Seg Fault apache and 0 bytes request.. apache died

2001-07-24 Thread wilco

ID: 11781
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating System: Linux Slackware 7.1
PHP Version: 4.0.6


Previous Comments:


[2001-06-28 10:25:40] [EMAIL PROTECTED]

The crash happens after a random (half) hours at with my busy visited website +/- 2 
mil. pageviews a month.
Lots of these messages in my apache error_log
[Thu Jun 28 15:51:13 2001] [notice] child pid 21954 exit signal Segmentation fault 
(11)
apachectl restart won't help!! only apachectl stop and start makes it work again.

all the configure and compile went good!
I already tried it with apc enabled and disabled in php.ini with no results.
this is my configure string:

 './configure' '--with-config-file-path=/www' '--with-apache=../apache_1.3.20' 
'--with-mcrypt=../libmcrypt-2.4.11' '--with-mysql=/usr/local/mysql' 
'--with-openssl=/usr/local/openssl' '--with-zlib-dir=/usr/local' 
'--with-zlib=/usr/local' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' 
'--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-ttf' 
'--enable-gd-native-ttf' '--with-xml' '--disable-debug' '--enable-memory-limit' 
'--enable-shared' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' 
'--enable-magic-quotes' '--enable-bcmath' '--enable-apc'

php405 worked great but then I was unable to configure gd and freetype.





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


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




[PHP-DEV] Bug #12331: segfault with incorrect mysql_connect() parameters

2001-07-24 Thread deryk

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.7
PHP version:  4.0.6
PHP Bug Type: Reproducible crash
Bug description:  segfault with incorrect mysql_connect() parameters

Linux 2.4.7
  Apache 1.3.20 + mod_php 4.0.6 (--with-mysql --with-ldap 
--with-ftp)

Script to reproduce segfault is available here:
http://users.iitowns.com/deryk/segfault.php.txt


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


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




[PHP-DEV] Bug #12314 Updated: include_path does not work

2001-07-24 Thread tarique

ID: 12314
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
PHP Version: 4.0.6
New Comment:

OK! you can call this bug somewhat of a bummer the problems disappear if I use Win98. 
I found this when I copied my setup to a different computer.


Previous Comments:


[2001-07-23 08:40:24] [EMAIL PROTECTED]

Hmm... looks like very rarely do people really mean what they say in bug reports ;-)

OK! here goes 
--
Fatal error: Failed opening required 'countrylist2.inc' (include_path='./;./inc/') in 
c:\program files\apache group\apache\htdocs\bobp\latest\propertyadd.php3 on line 52
--

I have also tried the following variants

include_path=".\;.\inc\"
include_path=".;.\inc\"
include_path="."

No settings works for anything between Version 4.0.3 to 4.0.6 However the same is 
working on a live site running Ver4.0.2

and I dont know where to get Win binaries of 4.0.2 from  ... 

Cheers





[2001-07-23 07:49:30] [EMAIL PROTECTED]

well, I use include_path on NT 4 and NT 5 without problems. since you did not do what 
the Dos & Donts page tells you to do (include related php.ini settings in the report), 
I can only guess that you forgot to put the value in quotes.

Anyway, could you try this?

php.ini:
include_path = "./;./inc/"

somewhere/test.php:


somewhere/inc/include.inc:


and load somewhere/test.php. If it gives you any error, paste it here, please.

Thanks!



[2001-07-23 07:12:07] [EMAIL PROTECTED]

without being cynical and with all due respect - yes I have
read the do's and dont's of bug reporting

I also know that the similar bug has been reported for Win2K
and like I said - whatever the include_path setting it does
not work

for all practical purposes the setting in the php.ini is

include_path =

It would be nice if someone could let me know where to find
the Win binaries of PHP4.0.2 that is the latest confirmed
(of course by me) version which does not have this problem.

Also - under  Linux V 4.0.6 works fine

Tarique





[2001-07-23 06:30:02] [EMAIL PROTECTED]

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here from 
your php.ini.)



[2001-07-23 05:48:57] [EMAIL PROTECTED]

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the 
current directory

Cheers
Tarique





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


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




RE: [PHP-DEV] Am I still subscribed

2001-07-24 Thread Stanislav Malyshev

CN>> Not that it may be the same thing, but I had my server setup for
CN>> ORBS RBL and somehow the lists.php.net server got on that list.
CN>> I'm not even sure if ORBS is active.

ORBS is officially dead. Moreover, one of the 11 ORBS nameservers now
returns positive identification for every address. Use other relay
checkers.

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



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




[PHP-DEV] Bug #12330: ibase_query not support class

2001-07-24 Thread IT_KTS

From: [EMAIL PROTECTED]
Operating system: WINDOWS 98
PHP version:  4.0.6
PHP Bug Type: InterBase related
Bug description:  ibase_query not support class

class dbsql {
  function selectquery() {   

  /*in $this->qryresult the problem start. it displays
illegal operation and will be shutdown ...*/

  $this->qryresult=ibase_query($this->dbh,$this->dbsqlstmt);

   if($this->qryresult) {

 $this->count=0;   //initializes back to zero
 while($rec_qry=ibase_fetch_object($this->qryresult)) {

$this->rec_result[$this->count++]= $rec_qry;  
 }
  return true;
   }
  return false;
}
-- 
Edit bug report at: http://bugs.php.net/?id=12330&edit=1


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




[PHP-DEV] Bug #12329 Updated: dfdf

2001-07-24 Thread zak

ID: 12329
Updated by: zak
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: win
PHP Version: 4.0.6


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


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




[PHP-DEV] Bug #12329: dfdf

2001-07-24 Thread dfdf

From: [EMAIL PROTECTED]
Operating system: win
PHP version:  4.0.6
PHP Bug Type: IIS related
Bug description:  dfdf

dfdf dfd dfdf dfdf
-- 
Edit bug report at: http://bugs.php.net/?id=12329&edit=1


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




Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Stig Venaas

On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote:
> Great :-)
> 
> So we're seeing this getting implemented soon ?
> 
> Volunteers, anyone ? :-))

Is this select stuff so brand new that it's okay to change the API?
If it is, we should do it quickly before too many people get to
play with it.

I think I agree now with just using the max, we can always optimize
more later if we feel it's necessary, I think the most important
thing now is to get rid of that argument if possible (:

Stig

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