Re: [PHP-DOC] Re: [PHPDOC] PEAR package PHP_Compat.

2004-06-02 Thread Derick Rethans
On Tue, 1 Jun 2004, Gabor Hojtsy wrote:

  Create a FAQ, put it in the migration docs, maybe even
  somewhere within the tutorial, but everywhere is too
  much information.  IMHO of course :)

 The full explanation should not be there on all pages. A small portion
 of text could be around on the relevant pages however, linking to that
 FAQ entry.

IMO this is blatent advertising, it can be in the FAQ/Migration docs,
but that's it.

Derick


Re: [PHP-DOC] #28519 [NEW]: TASK: identify orphan user notes and mass assign

2004-06-02 Thread Jakub Vrana
Gabor Hojtsy wrote:
 Then still I am conserned about the vulnerability of this code against
 SQL injection in case magic_quotes is turned off, but AFAIK some other
 code in the master module also relies on that setting. I would like to
 ask the system guys first if we still should rely on it?

Relying on magic_quotes is not the biggest problem. E.g. this line makes
me scared:

 DELETE FROM note WHERE id=$id

Jakub Vrana


Re: [PHP-DOC] cvs: phpdoc /en/appendices configure.xml reserved.xml /en/appendices/configure misc.xml php.xml servers.xml /en/chapters install.configure.databases.xml install.configure.graphics.xml install.configure.misc.xml install.configure.php.xml install.configure.servers.xml install.configure.xml

2004-06-02 Thread Antony Dovgal
On Tue, 01 Jun 2004 19:39:12 -
Gabor Hojtsy [EMAIL PROTECTED] wrote:

 goba  Tue Jun  1 15:39:12 2004 EDT
 
   Added files: 
 /phpdoc/en/appendices configure.xml 
 /phpdoc/en/appendices/configure   misc.xml php.xml servers.xml 
 

docs are broken after this commit by sect1 in configure.xml
attached patch should fix the problem.
Goba, take a look at it, plz. 

---
WBR,
Antony Dovgal aka tony2001
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Index: configure.xml
===
RCS file: /repository/phpdoc/en/appendices/configure.xml,v
retrieving revision 1.1
diff -u -r1.1 configure.xml
--- configure.xml   1 Jun 2004 19:39:11 -   1.1
+++ configure.xml   2 Jun 2004 07:09:40 -
@@ -1,63 +1,66 @@
 ?xml version=1.0 encoding=iso-8859-1?
 !-- $Revision: 1.1 $ --
-sect1 id=configure
- titleList of core configure options/title
- para
-  Below is a partial list of configure options used by the PHP
-  filenameconfigure/filename scripts when compiling in Unix-like
-  environments. Most configure options are listed in their appropriate
-  locations on the extension reference pages and not here. For a complete
-  up-to-date list of configure options, run command./configure --help/command
-  in your PHP source directory after running commandautoconf/command
-  (see also the link linkend=installationInstallation chapter/link).
-  You may also be interested in reading the
-  ulink url=url.gnu.configure;GNU configure/ulink documentation for
-  information on additional commandconfigure/command options such as
-  literal--prefix=PREFIX/literal.
- /para
- 
- note
+appendix id=configure
+ titleConfigure options/title
+
+ sect1 id=configure.about
+  titleList of core configure options/title
   para
-   These are only used at compile time. If you want to alter PHP's
-   runtime configuration, please see the chapter on link
-   linkend=configurationRuntime Configuration/link.
+   Below is a partial list of configure options used by the PHP
+   filenameconfigure/filename scripts when compiling in Unix-like
+   environments. Most configure options are listed in their appropriate
+   locations on the extension reference pages and not here. For a complete
+   up-to-date list of configure options, run command./configure --help/command
+   in your PHP source directory after running commandautoconf/command
+   (see also the link linkend=installationInstallation chapter/link).
+   You may also be interested in reading the
+   ulink url=url.gnu.configure;GNU configure/ulink documentation for
+   information on additional commandconfigure/command options such as
+   literal--prefix=PREFIX/literal.
   /para
- /note
-
- itemizedlist
-  listitem
-   para
-link linkend=configure.options.miscMiscellaneous/link
-   /para
-  /listitem
-  listitem
-   para
-link linkend=configure.options.phpPHP Behaviour/link
-   /para
-  /listitem
-  listitem
-   para
-link linkend=configure.options.serversServer/link
-   /para
-  /listitem
- /itemizedlist
-
- sect2 id=configure.options
-  titleConfigure Options in PHP 4/title
+  
   note
para
-These options are only used in PHP 4 as of PHP 4.1.0. 
-Some are available in older versions of PHP 4, some even in PHP 3, some only in 
PHP 4.1.0.
-If you want to compile an older version, some options will probably 
-not be available.
+These are only used at compile time. If you want to alter PHP's
+runtime configuration, please see the chapter on link
+linkend=configurationRuntime Configuration/link.
/para
   /note
-  appendices.configure.misc;
-  appendices.configure.php;
-  appendices.configure.servers;
- /sect2
-/sect1
 
+  itemizedlist
+   listitem
+para
+ link linkend=configure.options.miscMiscellaneous/link
+/para
+   /listitem
+   listitem
+para
+ link linkend=configure.options.phpPHP Behaviour/link
+/para
+   /listitem
+   listitem
+para
+ link linkend=configure.options.serversServer/link
+/para
+   /listitem
+  /itemizedlist
+
+  sect2 id=configure.options
+   titleConfigure Options in PHP 4/title
+   note
+para
+ These options are only used in PHP 4 as of PHP 4.1.0. 
+ Some are available in older versions of PHP 4, some even in PHP 3, some only in 
PHP 4.1.0.
+ If you want to compile an older version, some options will probably 
+ not be available.
+/para
+   /note
+   appendices.configure.misc;
+   appendices.configure.php;
+   appendices.configure.servers;
+  /sect2
+ /sect1
+/appendix
 !-- Keep this comment at the end of the file
 Local variables:
 mode: sgml


[PHP-DOC] cvs: phpdoc / manual.xml.in /en/appendices configure.xml /en/appendices/configure index.xml

2004-06-02 Thread Gabor Hojtsy
gobaWed Jun  2 05:49:02 2004 EDT

  Added files: 
/phpdoc/en/appendices/configure index.xml 

  Removed files:   
/phpdoc/en/appendices   configure.xml 

  Modified files:  
/phpdoc manual.xml.in 
  Log:
  moving the configure index to the appendices/configure folder, where it belongs for 
consistency, also applying the patch sent by Antony to fix containers used in that file
  
http://cvs.php.net/diff.php/phpdoc/manual.xml.in?r1=1.174r2=1.175ty=u
Index: phpdoc/manual.xml.in
diff -u phpdoc/manual.xml.in:1.174 phpdoc/manual.xml.in:1.175
--- phpdoc/manual.xml.in:1.174  Tue Jun  1 16:55:11 2004
+++ phpdoc/manual.xml.inWed Jun  2 05:49:01 2004
@@ -2,7 +2,7 @@
 !DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN
   @srcdir@/dtds/dbxml-4.1.2/docbookx.dtd [
 
-!-- $Revision: 1.174 $ --
+!-- $Revision: 1.175 $ --
 
 !-- Add translated specific definitions and snippets --
 !ENTITY % language-defs SYSTEM @srcdir@/@LANGDIR@/language-defs.ent
@@ -258,7 +258,7 @@
   appendices.migration;
   appendices.debugger;
   appendices.phpdevel;
-  appendices.configure;
+  appendices.configure.index;
   appendices.ini;
   appendices.aliases;
   appendices.reserved;

http://cvs.php.net/co.php/phpdoc/en/appendices/configure/index.xml?r=1.1p=1
Index: phpdoc/en/appendices/configure/index.xml
+++ phpdoc/en/appendices/configure/index.xml
?xml version=1.0 encoding=iso-8859-1?
!-- $Revision: 1.1 $ --
appendix id=configure
 titleConfigure options/title

 sect1 id=configure.about
  titleList of core configure options/title
  para
   Below is a partial list of configure options used by the PHP
   filenameconfigure/filename scripts when compiling in Unix-like
   environments. Most configure options are listed in their appropriate
   locations on the extension reference pages and not here. For a complete
   up-to-date list of configure options, run command./configure --help/command
   in your PHP source directory after running commandautoconf/command
   (see also the link linkend=installationInstallation chapter/link).
   You may also be interested in reading the
   ulink url=url.gnu.configure;GNU configure/ulink documentation for
   information on additional commandconfigure/command options such as
   literal--prefix=PREFIX/literal.
  /para
  
  note
   para
These are only used at compile time. If you want to alter PHP's
runtime configuration, please see the chapter on link
linkend=configurationRuntime Configuration/link.
   /para
  /note

  itemizedlist
   listitem
para
 link linkend=configure.options.miscMiscellaneous/link
/para
   /listitem
   listitem
para
 link linkend=configure.options.phpPHP Behaviour/link
/para
   /listitem
   listitem
para
 link linkend=configure.options.serversServer/link
/para
   /listitem
  /itemizedlist

  sect2 id=configure.options
   titleConfigure Options in PHP 4/title
   note
para
 These options are only used in PHP 4 as of PHP 4.1.0. 
 Some are available in older versions of PHP 4, some even in PHP 3, some only in 
PHP 4.1.0.
 If you want to compile an older version, some options will probably 
 not be available.
/para
   /note
   appendices.configure.misc;
   appendices.configure.php;
   appendices.configure.servers;
  /sect2
 /sect1
/appendix

!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:../../../manual.ced
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--


[PHP-DOC] cvs: phpdoc /RFC manual.xml.in

2004-06-02 Thread Gabor Hojtsy
gobaWed Jun  2 05:53:34 2004 EDT

  Modified files:  
/phpdoc/RFC manual.xml.in 
  Log:
  getting in sync
  
http://cvs.php.net/diff.php/phpdoc/RFC/manual.xml.in?r1=1.11r2=1.12ty=u
Index: phpdoc/RFC/manual.xml.in
diff -u phpdoc/RFC/manual.xml.in:1.11 phpdoc/RFC/manual.xml.in:1.12
--- phpdoc/RFC/manual.xml.in:1.11   Tue Jun  1 17:06:13 2004
+++ phpdoc/RFC/manual.xml.inWed Jun  2 05:53:34 2004
@@ -2,7 +2,7 @@
 !DOCTYPE book PUBLIC -//PHPDocGroup//DTD DocBook XML V4.1.2-Based Variant PHPBook 
V1.0//EN
   @srcdir@/dtds/phpbook.dtd [
 
-!-- $Revision: 1.11 $ -- !-- Last updated to comply to manual.xml.in 1.174 --
+!-- $Revision: 1.12 $ -- !-- Last updated to comply to manual.xml.in 1.175 --
 
 !-- Add translated specific definitions and snippets --
 !ENTITY % language-defs SYSTEM @srcdir@/@LANGDIR@/language-defs.ent
@@ -370,7 +370,7 @@
   appendices.migration;
   appendices.debugger;
   appendices.phpdevel;
-  appendices.configure;
+  appendices.configure.index;
   appendices.ini;
   appendices.aliases;
   appendices.reserved;


Re: [PHP-DOC] cvs: phpdoc /RFC reference_grouping

2004-06-02 Thread Gabor Hojtsy
hholzgraWed Apr 14 20:39:13 2004 EDT
  Modified files:  
/phpdoc/RFC	reference_grouping 
  Log:
  adding my thoughts on the topic (hartmut)
+refentry may not only occur wrapped up in reference but also in
+e.g. chapter and section. So a structure like this is completely
+legal with the current DTD:
+
+...
+parttitleFunction Reference/title
+ chaptertitleStandard Functions/title
+	...
+ /chapter
+ chaptertitleDatabase Functions/title
+  sectiontitleDB xyz Functions/title
+   paraintroduction/para
+   refentry id=function.xyz-1
+...
+   /refentry
+   refentry id=function.xyz-2
+...
+   /refentry
+   ...
+  /section
+ /chapter
+ ...
+/part
Hatmut, you solved the problem of having deeper sections here, by using 
chapter for the top most sections, and using section for the ones 
below. section is used as a container on the extension reference 
pages, and it does not break pages itself, so the rendering of the above 
structure with the default style sheet would probably be quite ugly (not 
tried yet). Otherwise it does not seem to be a bad approach. :)

Goba


Re: [PHP-DOC] #28519 [NEW]: TASK: identify orphan user notes and mass assign

2004-06-02 Thread Gabor Hojtsy
Then still I am conserned about the vulnerability of this code against
SQL injection in case magic_quotes is turned off, but AFAIK some other
code in the master module also relies on that setting. I would like to
ask the system guys first if we still should rely on it?
Relying on magic_quotes is not the biggest problem. E.g. this line makes
me scared:
DELETE FROM note WHERE id=$id
Well, how should I interpret this? How can we move forward?
Goba


[PHP-DOC] cvs: phpdoc /en/reference/info/functions ini-set.xml

2004-06-02 Thread Nuno Lopes
nlopess Wed Jun  2 14:00:06 2004 EDT

  Modified files:  
/phpdoc/en/reference/info/functions ini-set.xml 
  Log:
  update table, using new version of the script
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/ini-set.xml?r1=1.36r2=1.37ty=u
Index: phpdoc/en/reference/info/functions/ini-set.xml
diff -u phpdoc/en/reference/info/functions/ini-set.xml:1.36 
phpdoc/en/reference/info/functions/ini-set.xml:1.37
--- phpdoc/en/reference/info/functions/ini-set.xml:1.36 Fri May 21 09:14:17 2004
+++ phpdoc/en/reference/info/functions/ini-set.xml  Wed Jun  2 14:00:06 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.36 $ --
+!-- $Revision: 1.37 $ --
 !-- splitted from ./en/functions/info.xml, last change in rev 1.23 --
   refentry id=function.ini-set
refnamediv
@@ -408,18 +408,13 @@
   entryPHP_INI_ALL/entry
  /row
  row
-  entryhwapi.allow_persistent/entry
-  entry0/entry
-  entryPHP_INI_SYSTEM/entry
- /row
- row
   entryibase.allow_persistent/entry
   entry1/entry
   entryPHP_INI_SYSTEM/entry
  /row
  row
   entryibase.dateformat/entry
-  entry%m/%d/%Y/entry
+  entry%Y-%m-%d/entry
   entryPHP_INI_ALL/entry
  /row
  row
@@ -459,7 +454,7 @@
  /row
  row
   entryibase.timestampformat/entry
-  entry%m/%d/%Y %H:%M:%S/entry
+  entry%Y-%m-%d %H:%M:%S/entry
   entryPHP_INI_ALL/entry
  /row
  row
@@ -1140,11 +1135,6 @@
  row
   entrysession.cookie_secure/entry
   entry/entry
-  entryPHP_INI_ALL/entry
- /row
- row
-  entrysession.encode_sources/entry
-  entryglobals,track/entry
   entryPHP_INI_ALL/entry
  /row
  row


[PHP-DOC] #27211 [Com]: stream_socket_accept() returns Invalid argument

2004-06-02 Thread flugelaar at pandora dot be
 ID:   27211
 Comment by:   flugelaar at pandora dot be
 Reported By:  glox at glox dot be
 Status:   Assigned
 Bug Type: Documentation problem
 Operating System: *
 PHP Version:  5CVS-2004-02-12
 Assigned To:  nlopess
 New Comment:

Is there news about this bug?


Previous Comments:


[2004-04-30 13:53:39] i_kobayashi at rnk dot co dot jp

In communication by udp, it is not accept() but recvfrom(). However,
since there is no means to acquire an address and a port from
stream_socket_recvfrom(), a reply cannot be returned. Are there any of
other means?



[2004-03-15 10:27:04] [EMAIL PROTECTED]

Shame on me, but I've lost the e-mails I've exchanged with Wez (my ISP
fault).
I don't remeber very well how to reproduce the crash :(

Wez sent me some examples to fix the ones that are currently in the
docs, but I've lost them... :-(



[2004-03-15 10:20:55] [EMAIL PROTECTED]

Assigning to Nuno. (Please report the possible crash in different
report if you haven't done it already)




[2004-02-16 05:16:36] [EMAIL PROTECTED]

*_accept() doesn't make sense for UDP (which is a connection*less*
protocol).

I had a conversation about this example with Nuno
this weekend; he will fix the docs.  He also found
a segfault, but I don't have time to fix it right now.



[2004-02-12 14:27:50] glox at glox dot be

Well the server script is copy pasted from the manual page.
So, or the example is wrong, or there is a bug with those functions.



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/27211

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


[PHP-DOC] #28613 [NEW]: Output sent before header or setcookie

2004-06-02 Thread jsgoupil at lookstrike dot com
From: jsgoupil at lookstrike dot com
Operating system: WinXP
PHP version:  5.0.0RC2
PHP Bug Type: Documentation problem
Bug description:  Output sent before header or setcookie

Description:

In the documentation : Remember that header() must be called before any
actual output is sent...
We can find the same in setcookie() function.

In PHP5, when we use
header(Location: http://www.lookstrike.com;);
, the function doen't care if we sent something before.

If other function exists like that, perhaps it will do the same thing...

php.ini file : 
display_error = On
error_reporting = E_ALL

I don't know if you have to clarify the docs or if it is a function bug...

Reproduce code:
---
?php
echo A;
header(Location: http://www.lookstrike.com;); // Going to Website
?

of

?php
echo A;
setcookie(TEST); // No error
?


-- 
Edit bug report at http://bugs.php.net/?id=28613edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28613r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28613r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=28613r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=28613r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28613r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=28613r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=28613r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=28613r=support
Expected behavior:  http://bugs.php.net/fix.php?id=28613r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=28613r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=28613r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=28613r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28613r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=28613r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=28613r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=28613r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28613r=float