[PHP-DEV] Bug #14793: Setlocale not working for Japanese

2002-01-01 Thread danradigan

From: [EMAIL PROTECTED]
Operating system: Redhat Linux 7.1 J edition
PHP version:  4.0.6
PHP Bug Type: Strings related
Bug description:  Setlocale not working for Japanese

When I set setlocale (LC_ALL, ja_JP) and then call the function print
(strftime (%A.\n)), japanese format dates do not appear.  I do get the Y
character with monies though.

When I run the code below, I do not get compete info for the Japanese
locale. 

setlocale(LC_ALL, en_US);

$locale_info = localeconv();

echo PRE\n;
echo \n;
echo   Monetary information for current locale:  \n;
echo \n\n;

echo int_curr_symbol:   {$locale_info[int_curr_symbol]}\n;
echo currency_symbol:   {$locale_info[currency_symbol]}\n;
echo mon_decimal_point: {$locale_info[mon_decimal_point]}\n;
echo mon_thousands_sep: {$locale_info[mon_thousands_sep]}\n;
echo positive_sign: {$locale_info[positive_sign]}\n;
echo negative_sign: {$locale_info[negative_sign]}\n;
echo int_frac_digits:   {$locale_info[int_frac_digits]}\n;
echo frac_digits:   {$locale_info[frac_digits]}\n;
echo p_cs_precedes: {$locale_info[p_cs_precedes]}\n;
echo p_sep_by_space:{$locale_info[p_sep_by_space]}\n;
echo n_cs_precedes: {$locale_info[n_cs_precedes]}\n;
echo n_sep_by_space:{$locale_info[n_sep_by_space]}\n;
echo p_sign_posn:   {$locale_info[p_sign_posn]}\n;
echo n_sign_posn:   {$locale_info[n_sign_posn]}\n;
echo /PRE\n;
 
 
 
 
-- 
Edit bug report at: http://bugs.php.net/?id=14793edit=1


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




[PHP-DEV] Bug #12386: Mac Carriage Returns cause PHP to choke

2001-07-25 Thread danradigan

From: [EMAIL PROTECTED]
Operating system: macintosh
PHP version:  4.0.4
PHP Bug Type: Unknown/Other Function
Bug description:  Mac Carriage Returns cause PHP to choke

When authoring php on the macintosh, php will not compile 
scripts when using macintosh native carriage returns.
-- 
Edit bug report at: http://bugs.php.net/?id=12386edit=1


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




[PHP-DEV] 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 = font color=ff

; String to output after an error message.
;error_append_string = /font

; 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=12325edit=1


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




[PHP-DEV] 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 = font color=ff

; String to output after an error message.
;error_append_string = /font

; 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=12325edit=1


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




[PHP-DEV] Bug #6960 Updated: Cannot find/load truetype font

2001-07-23 Thread danradigan

ID: 6960
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: *Graphics related
Operating System: Win 2000
PHP Version: 4.0.2
New Comment:

Bug has reappeared in 4.0.6 when i downloaded the zip version of PHP.

Previous Comments:


[2000-10-18 07:51:17] [EMAIL PROTECTED]

fixed in cvs



[2000-09-30 10:25:15] [EMAIL PROTECTED]

the file adventure.ttf is in the same dir as the script --Dan



[2000-09-30 10:23:46] [EMAIL PROTECTED]

I ran the PHP Easy installer for windows and get this error on my win2k system.  The 
behavior exists on NT4 as well.  It seems to run OK on Linux though.

PHP OUTPUT---
br
bWarning/b:  Could not find/open font in 
bc:\inetpub\wwwroot\freeways\test\gd2.php3/b on line b5/bbr
br
bWarning/b:  Could not find/open font in 
bc:\inetpub\wwwroot\freeways\test\gd2.php3/b on line b15/bbr
br
bWarning/b:  Could not find/open font in 
bc:\inetpub\wwwroot\freeways\test\gd2.php3/b on line b16/bbr
‰PNG


IHDRýÑÞ_  PLTE,m¯°ØõpŠIDATxœíÁ1 õOm
 
ÐõQJýIEND®B`‚br
bWarning/b:  Unknown list entry type in request shutdown (15605704) in 
bc:\inetpub\wwwroot\freeways\test\gd2.php3/b on line b18/bbr

MY CODE---

?
  
   Header( Content-type: image/png);
$s=40;
$size = imagettfbbox($s,0, Adventure.ttf,$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
 $im = imagecreate(400,400);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 176,0,0);
$font= Adventure.ttf;
ImageTTFText($im, $s, 0, (int)($xpad/2)+22, (int)($ypad/2)-8, $black, $font, 
$text);
ImageTTFText($im, $s, 0, (int)($xpad/2)+10, (int)($ypad/2)+9, $white, $font, 
$text);
Imagepng($im);
 ImageDestroy($im);
?







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


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




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

2001-07-23 Thread danradigan

From: [EMAIL PROTECTED]
Operating system: Win 2k
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Query_string not defined

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 bug report at: http://bugs.php.net/?id=12325edit=1


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