[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689166
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689166


Previous Comments:

[2023-12-27 14:59:25] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165


[2018-07-23 10:22:47] ka...@php.net

Coming back to this one, perhaps we look into using a database an sqlite 
database for lookups (I'm pretty sure we have such for indexing), and then a 
handler to determine where to redirect to based on a lookup so we never have to 
add new constants. It does also seem more efficient than my initial idea of 
extending the hack by letting PhD generate a list for php-web.


[2008-11-29 16:40:25] ka...@php.net

Couldn't PhD perhaps generate a file with core/standard constants for each time 
the manual is pushed to the mirrors?


[2007-10-10 11:40:48] bj...@php.net

I love the idea, but I really don't want _all_ the constants listed in the 
error handler - and needing to update the error handler on every new constant...

I however can't come up with better way..


[2007-10-01 16:44:59] ahar...@php.net

Description:

The (extremely useful) php.net/$keyword redirect currently doesn't support the 
array of pre-defined constants available within PHP. This is an extra problem 
because the manual search typically doesn't return relevant results for many of 
them: as an example, try <http://php.net/PHP_EOL> -- the right place to go 
would be <http://php.net/reserved.constants>, but that's not in the list.

I've concocted a patch for error.php to add support for the "core predefined 
constants" and the magic constants (including __NAMESPACE__, since it looks 
like we'll be getting that one soon enough), and it's at 
<http://www.adamharvey.name/stuff/error-constants.diff>. Hard-coding the 
constants into the manual page moves array probably isn't the best approach, 
but there's going to need to be an evil-looking list somewhere, I guess.

This patch doesn't address the longer list of "standard predefined constants", 
but it's a start. If the approach is acceptable (or a better one is 
recommended), I'll look at cooking up a patch for those as well.







--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167


Previous Comments:

[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167


[2023-12-27 14:59:25] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165


[2018-07-23 10:22:47] ka...@php.net

Coming back to this one, perhaps we look into using a database an sqlite 
database for lookups (I'm pretty sure we have such for indexing), and then a 
handler to determine where to redirect to based on a lookup so we never have to 
add new constants. It does also seem more efficient than my initial idea of 
extending the hack by letting PhD generate a list for php-web.


[2008-11-29 16:40:25] ka...@php.net

Couldn't PhD perhaps generate a file with core/standard constants for each time 
the manual is pushed to the mirrors?


[2007-10-10 11:40:48] bj...@php.net

I love the idea, but I really don't want _all_ the constants listed in the 
error handler - and needing to update the error handler on every new constant...

I however can't come up with better way..




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

https://bugs.php.net/bug.php?id=42816


--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165


Previous Comments:

[2018-07-23 10:22:47] ka...@php.net

Coming back to this one, perhaps we look into using a database an sqlite 
database for lookups (I'm pretty sure we have such for indexing), and then a 
handler to determine where to redirect to based on a lookup so we never have to 
add new constants. It does also seem more efficient than my initial idea of 
extending the hack by letting PhD generate a list for php-web.


[2008-11-29 16:40:25] ka...@php.net

Couldn't PhD perhaps generate a file with core/standard constants for each time 
the manual is pushed to the mirrors?


[2007-10-10 11:40:48] bj...@php.net

I love the idea, but I really don't want _all_ the constants listed in the 
error handler - and needing to update the error handler on every new constant...

I however can't come up with better way..


[2007-10-01 16:44:59] ahar...@php.net

Description:

The (extremely useful) php.net/$keyword redirect currently doesn't support the 
array of pre-defined constants available within PHP. This is an extra problem 
because the manual search typically doesn't return relevant results for many of 
them: as an example, try <http://php.net/PHP_EOL> -- the right place to go 
would be <http://php.net/reserved.constants>, but that's not in the list.

I've concocted a patch for error.php to add support for the "core predefined 
constants" and the magic constants (including __NAMESPACE__, since it looks 
like we'll be getting that one soon enough), and it's at 
<http://www.adamharvey.name/stuff/error-constants.diff>. Hard-coding the 
constants into the manual page moves array probably isn't the best approach, 
but there's going to need to be an evil-looking list somewhere, I guess.

This patch doesn't address the longer list of "standard predefined constants", 
but it's a start. If the approach is acceptable (or a better one is 
recommended), I'll look at cooking up a patch for those as well.







--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689168
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689168


Previous Comments:

[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689166
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689166


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167


[2023-12-27 14:59:25] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165


[2018-07-23 10:22:47] ka...@php.net

Coming back to this one, perhaps we look into using a database an sqlite 
database for lookups (I'm pretty sure we have such for indexing), and then a 
handler to determine where to redirect to based on a lookup so we never have to 
add new constants. It does also seem more efficient than my initial idea of 
extending the hack by letting PhD generate a list for php-web.


[2008-11-29 16:40:25] ka...@php.net

Couldn't PhD perhaps generate a file with core/standard constants for each time 
the manual is pushed to the mirrors?




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

https://bugs.php.net/bug.php?id=42816


--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689307
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689307


Previous Comments:

[2023-12-27 14:59:27] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689168
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689168


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689166
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689166


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167


[2023-12-27 14:59:25] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165


[2018-07-23 10:22:47] ka...@php.net

Coming back to this one, perhaps we look into using a database an sqlite 
database for lookups (I'm pretty sure we have such for indexing), and then a 
handler to determine where to redirect to based on a lookup so we never have to 
add new constants. It does also seem more efficient than my initial idea of 
extending the hack by letting PhD generate a list for php-web.




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

https://bugs.php.net/bug.php?id=42816


--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2023-12-27 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689373
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689373


Previous Comments:

[2023-12-27 15:01:47] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689307
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689307


[2023-12-27 14:59:27] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689168
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689168


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689166
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689166


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167


[2023-12-27 14:59:25] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689165
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689165




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

https://bugs.php.net/bug.php?id=42816


--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WEBMASTER] Bug #42816 [PATCH]: [PATCH] Add support for core and magic constants to error.php

2024-01-11 Thread test...@example.com
Edit report at https://bugs.php.net/bug.php?id=42816&edit=1

 ID: 42816
 Patch added by: test...@example.com
 Reported by:ahar...@php.net
 Summary:[PATCH] Add support for core and magic constants to
 error.php
 Status: Analyzed
 Type:   Bug
 Package:Website problem
 Operating System:   Irrelevant
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: WzdALfCz
Revision:   1704985776
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=WzdALfCz&revision=1704985776


Previous Comments:

[2023-12-27 15:02:53] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689373
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689373


[2023-12-27 15:01:47] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689307
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689307


[2023-12-27 14:59:27] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689168
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689168


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689166
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689166


[2023-12-27 14:59:26] testing at example dot com

The following patch has been added/updated:

Patch Name: tsSLAueP
Revision:   1703689167
URL:
https://bugs.php.net/patch-display.php?bug=42816&patch=tsSLAueP&revision=1703689167




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

https://bugs.php.net/bug.php?id=42816


--
Edit this bug report at https://bugs.php.net/bug.php?id=42816&edit=1

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php