[PHP-DOC] #36603 [NEW]: Documentation references to PHP6

2006-03-03 Thread kills at online dot de
From: kills at online dot de
Operating system: 
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  Documentation references to PHP6

Description:

Hi,

in the documentation there is something written about PHP6:
http://www.php.net/manual/en/function.sort.php

[quote]
SORT_LOCALE_STRING - compare items as strings, based on the current
locale. Added in PHP 4.4.0 and 5.0.2. Before PHP 6, it uses the system
locale, which can be changed using setlocale(). Since PHP 6, you must use
the i18n_loc_set_default() function.
[/quote]

Bye,
Markus


-- 
Edit bug report at http://bugs.php.net/?id=36603edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36603r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36603r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36603r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36603r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=36603r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=36603r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=36603r=needscript
Try newer version:http://bugs.php.net/fix.php?id=36603r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=36603r=support
Expected behavior:http://bugs.php.net/fix.php?id=36603r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=36603r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=36603r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36603r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36603r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36603r=dst
IIS Stability:http://bugs.php.net/fix.php?id=36603r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=36603r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36603r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=36603r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=36603r=mysqlcfg


[PHP-DOC] #36603 [Opn-Bgs]: Documentation references to PHP6

2006-03-03 Thread betz
 ID:  36603
 Updated by:  [EMAIL PROTECTED]
 Reported By: kills at online dot de
-Status:  Open
+Status:  Bogus
 Bug Type:Documentation problem
 PHP Version: Irrelevant
 New Comment:

Yes, we are documenting PHP 6 too, although it is not released yet.
You can find documentation for PHP 6 in various other places in the
manual.

Thanks
Friedhelm


Previous Comments:


[2006-03-03 11:38:17] kills at online dot de

Description:

Hi,

in the documentation there is something written about PHP6:
http://www.php.net/manual/en/function.sort.php

[quote]
SORT_LOCALE_STRING - compare items as strings, based on the current
locale. Added in PHP 4.4.0 and 5.0.2. Before PHP 6, it uses the system
locale, which can be changed using setlocale(). Since PHP 6, you must
use the i18n_loc_set_default() function.
[/quote]

Bye,
Markus






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


[PHP-DOC] #36596 [Opn]: xml_get_current_byte_index reports in relation to utf8

2006-03-03 Thread preben at infofab dot no
 ID:   36596
 User updated by:  preben at infofab dot no
 Reported By:  preben at infofab dot no
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux FC4
 PHP Version:  Irrelevant
 New Comment:

Sorry, an error in statement - correct version

$ch = substr($data, $byte, 7);

The bug still stands though...


Previous Comments:


[2006-03-03 00:12:33] preben at infofab dot no

Description:

The function xml_get_current_byte_index() returns byte index according
to utf8 encoded text - disregarding if input is in ISO-8859-1. If you
would like to cach a chunk of data from a xml file you would need to
convert input to utf8 to get the correct calculations.

Reproduce code:
---
$data = ?xml version='1.0'
encoding='iso8859-1'?\ndata\ndummyøææø/dummy\nrowÆØÅdata/row\n/data\n;
function startElement($parser, $name, $attrs)
{
   global $data;
   if($name != ROW) return;
   $byte = xml_get_current_byte_index($parser) + 41;
   $ch = substr($data, $byte + 41, 7);
   # The following calculates correct
   # $ch = utf8_decode(substr(utf8_encode($data), $byte, 7));
   echo $name ($byte): $ch\n;
   exit();
}
function endElement($parser, $name)
{
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, startElement, endElement);
xml_parse($xml_parser, $data, 1);

Expected result:

ROW (79): ÆØÅd

Actual result:
--
ROW (79):





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


[PHP-DOC] #36596 [Opn]: xml_get_current_byte_index reports in relation to utf8

2006-03-03 Thread preben at infofab dot no
 ID:   36596
 User updated by:  preben at infofab dot no
 Reported By:  preben at infofab dot no
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux FC4
 PHP Version:  Irrelevant
 New Comment:

Sorry, an error in statement - correct version

$ch = substr($data, $byte, 7);

The bug still stands though...


Previous Comments:


[2006-03-03 12:37:32] preben at infofab dot no

Sorry, an error in statement - correct version

$ch = substr($data, $byte, 7);

The bug still stands though...



[2006-03-03 00:12:33] preben at infofab dot no

Description:

The function xml_get_current_byte_index() returns byte index according
to utf8 encoded text - disregarding if input is in ISO-8859-1. If you
would like to cach a chunk of data from a xml file you would need to
convert input to utf8 to get the correct calculations.

Reproduce code:
---
$data = ?xml version='1.0'
encoding='iso8859-1'?\ndata\ndummyøææø/dummy\nrowÆØÅdata/row\n/data\n;
function startElement($parser, $name, $attrs)
{
   global $data;
   if($name != ROW) return;
   $byte = xml_get_current_byte_index($parser) + 41;
   $ch = substr($data, $byte + 41, 7);
   # The following calculates correct
   # $ch = utf8_decode(substr(utf8_encode($data), $byte, 7));
   echo $name ($byte): $ch\n;
   exit();
}
function endElement($parser, $name)
{
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, startElement, endElement);
xml_parse($xml_parser, $data, 1);

Expected result:

ROW (79): ÆØÅd

Actual result:
--
ROW (79):





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


[PHP-DOC] cvs: phpdoc /en/reference/ps/functions ps-add-note.xml

2006-03-03 Thread Uwe Steinmann
steinm  Fri Mar  3 12:42:34 2006 UTC

  Modified files:  
/phpdoc/en/reference/ps/functions   ps-add-note.xml 
  Log:
  - fixed a typo (bug #36580)
  
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/ps/functions/ps-add-note.xml?r1=1.5r2=1.6diff_format=u
Index: phpdoc/en/reference/ps/functions/ps-add-note.xml
diff -u phpdoc/en/reference/ps/functions/ps-add-note.xml:1.5 
phpdoc/en/reference/ps/functions/ps-add-note.xml:1.6
--- phpdoc/en/reference/ps/functions/ps-add-note.xml:1.5Fri Mar  3 
12:31:04 2006
+++ phpdoc/en/reference/ps/functions/ps-add-note.xmlFri Mar  3 12:42:34 2006
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/ps.xml, last change in rev 1.12 --
 refentry id=function.ps-add-note
  refnamediv
@@ -23,16 +23,10 @@
   /methodsynopsis
   para
Adds a note at a certain position on the page. Notes are like little
- ps-add-note.xml
rectangular sheets with text on it, which can be placed anywhere on
a page. They
are shown either folded or unfolded. If unfolded, the specified icon
-===
-   rectangular sheets with text on it, which can be place somewhere on
-   a page. The notes
-   are shown either folded or unfolded. If unfolded the specified icon
- 1.4
-   is used as placeholder.
+   is used as a placeholder.
   /para
   para
The note will not be visible if the document is printed or viewed but


[PHP-DOC] cvs: phpdoc /en/reference/ps/functions ps-translate.xml

2006-03-03 Thread Uwe Steinmann
steinm  Fri Mar  3 12:49:53 2006 UTC

  Modified files:  
/phpdoc/en/reference/ps/functions   ps-translate.xml 
  Log:
  - fixed typo in tag name
  
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/ps/functions/ps-translate.xml?r1=1.2r2=1.3diff_format=u
Index: phpdoc/en/reference/ps/functions/ps-translate.xml
diff -u phpdoc/en/reference/ps/functions/ps-translate.xml:1.2 
phpdoc/en/reference/ps/functions/ps-translate.xml:1.3
--- phpdoc/en/reference/ps/functions/ps-translate.xml:1.2   Fri Mar  3 
12:31:05 2006
+++ phpdoc/en/reference/ps/functions/ps-translate.xml   Fri Mar  3 12:49:53 2006
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/ps.xml, last change in rev 1.12 --
 refentry id=function.ps-translate
  refnamediv
@@ -124,7 +124,7 @@
 para
  On the second page a slighty different and more elegant approach is
  applied. Instead of undoing the translation with a second call of
- funktionps_translate/function the graphics context is saved before
+ functionps_translate/function the graphics context is saved before
  modifying the coordinate system and restored after drawing the rectangle.
 /para
/example


[PHP-DOC] #36598 [Opn]: incorrect example for date() constant

2006-03-03 Thread bjori
 ID:   36598
 Updated by:   [EMAIL PROTECTED]
 Reported By:  d dot begley at uws dot edu dot au
 Status:   Open
 Bug Type: Documentation problem
-Operating System: Solaris 9 (SPARC)
+Operating System: *
 PHP Version:  Irrelevant
 New Comment:

I've kinda been expecting reports like this.

We'll need to document the changed behaviour.
Something along the lines of this patch maybe..
http://php.is/bugs/36598/phpdoc.datetime.patch.txt

Index: constants.xml
===
RCS file: /repository/phpdoc/en/reference/datetime/constants.xml,v
retrieving revision 1.6
diff -u -r1.6 constants.xml
--- constants.xml   31 Jan 2006 21:10:31 -  1.6
+++ constants.xml   4 Mar 2006 01:39:00 -
@@ -17,6 +17,9 @@
 simpara
  Atom (example: 2005-08-15T15:52:01+00:00)
 /simpara
+note
+ paraPrior to PHP5.1.3 DATE_ATOM didn't have colon in the
timezone offset/para
+/note
/listitem
   /varlistentry
   varlistentry
@@ -114,8 +117,11 @@
/term
listitem
 simpara
- World Wide Web Consortium (example: 2005-08-15T15:52:01+)
+ World Wide Web Consortium (example: 2005-08-15T15:52:01+00:00)
 /simpara
+note
+ paraPrior to PHP5.1.3 DATE_W3C didn't have colon in the
timezone offset/para
+/note
/listitem
   /varlistentry
  /variablelist



Previous Comments:


[2006-03-03 08:46:31] [EMAIL PROTECTED]

The documentation for DATE_ATOM is correct, the one for DATE_W3C isn't.
I will fix the code in a bit too.



[2006-03-03 06:06:51] d dot begley at uws dot edu dot au

Description:

The documentation for date() gives a number of examples for the new
constants added in PHP 5.1.1:

http://www.php.net/manual/en/ref.datetime.php

The first example:

DATE_ATOM  (string)
Atom (example: 2005-08-15T15:52:01+00:00)

is incorrect - the actual output has no colon in the timezone offset
(though I believe one is missing from the W3C format, though I'll file
a separate bug for that).


Reproduce code:
---
Simple function call:

date( DATE_ATOM, getlastmod() )

produces output of the form:

2006-03-03T15:41:46+1100

which according to the documentation should be:

2006-03-03T15:41:46+11:00

(ie., colon in timezone offset).  The documentation and code are
inconsistent.


Expected result:

See reproduce code section;  expected output (as per documentation)
is:

2006-03-03T15:41:46+11:00

Actual result:
--
See reproduce code section;  actual result is:

2006-03-03T15:41:46+1100






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


Re: [PHP-DOC] cvs: phpdoc /en/reference/ps/functions ps-add-bookmark.xml ps-add-launchlink.xml ps-add-locallink.xml ps-add-note.xml ps-add-pdflink.xml ps-add-weblink.xml ps-arc.xml ps-arcn.xml ps-begi

2006-03-03 Thread TAKAGI Masahiro
Hi,

At Fri, 03 Mar 2006 12:31:05 -,
Uwe Steinmann wrote:
 
 steinmFri Mar  3 12:31:05 2006 UTC
 
(snip)
   Log:
   - completed the list of function parameters
   - added examples where needed
   

Thank you very much for updating documents.
But I found some typo in these modifications.

See the attached patch.

-- 
TAKAGI Masahiro mailto:[EMAIL PROTECTED]


ps.patch
Description: Binary data


[PHP-DOC] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_language_parser.y /tests break_label01.phpt break_label02.phpt break_label03.phpt break_label04.ph

2006-03-03 Thread Andi Gutmans

Thanks for your help Sara!

Any chance someone from the Doc project has time to update the manual? Thanks.

Andi

At 05:09 AM 3/3/2006, Dmitry Stogov wrote:

dmitry  Fri Mar  3 13:09:13 2006 UTC

  Added files:
/ZendEngine2/tests  break_label01.phpt break_label02.phpt
break_label03.phpt break_label04.phpt
break_label05.phpt break_label06.phpt
break_label07.phpt break_label08.inc
break_label08.phpt break_label09.phpt

  Modified files:
/php-srcNEWS
/ZendEngine2zend_compile.c zend_compile.h zend_globals.h
zend_language_parser.y
  Log:
  Added support for continue and break operators with labels. 
Each loop or switch statement can be marked by label and then it is 
possible to write break label instead of break number.




--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php