Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for XP 5.x #1

Closed
3 tasks done
thekid opened this issue Jan 3, 2016 · 4 comments
Closed
3 tasks done

No support for XP 5.x #1

thekid opened this issue Jan 3, 2016 · 4 comments
Labels
Milestone

Comments

@thekid
Copy link
Contributor

thekid commented Jan 3, 2016

It should be decided whether to support XP 5.x.

Seems like a rather minimal change:

  • In addition to class-main.php, search for class.php
  • Don't encode arguments
  • Encode output w/ iso-8859-1 instead of utf-8
@thekid thekid added the question label Jan 3, 2016
thekid added a commit that referenced this issue Jan 5, 2016
USE_XP=devel/xp-5x/core xp -v already works, need to skip encoding arguments

See issue #1
@thekid
Copy link
Contributor Author

thekid commented Jan 5, 2016

Committed to the branch feature/support-xp5. For a comparison, see https://github.com/xp-runners/reference/compare/feature/support-xp5

@thekid
Copy link
Contributor Author

thekid commented Jan 5, 2016

Situation before:

Timm@slate ~
$ XP_RT=5.6 USE_XP=devel/xp-5x/core xp -v
Uncaught exception: Exception ([bootstrap] Cannot determine boot class path from ...)

Situation after:

Timm@slate ~
$ XP_RT=5.6 USE_XP=devel/xp-5x/core xp -v
XP 5.12.0-dev { PHP 5.6.16 & ZE 2.6.0 } @ Windows NT SLATE 10.0 build 10586 (Windows 10) i586
Copyright (c) 2001-2013 the XP group
FileSystemCL<...\xp-5x\core\src\main\php\>
FileSystemCL<...\xp-5x\core\src\main\resources\>
FileSystemCL<...\xp-5x\core\src\test\php\>
FileSystemCL<...\xp-5x\core\src\test\resources\>
FileSystemCL<C:\tools\cygwin\home\Timm\>

Encoding

Timm@slate ~
$ XP_RT=5.6 USE_XP=devel/xp-5x/core xp -w '$argv[1]." => ".urlencode($argv[1])' Wörld
Wörld => W%F6rld

Timm@slate ~
$ XP_RT=5.6 USE_XP=devel/xp/core xp -w '$argv[1]." => ".urlencode($argv[1])' Wörld
Wörld => W%C3%B6rld

@thekid thekid mentioned this issue Jan 5, 2016
@thekid
Copy link
Contributor Author

thekid commented Jan 5, 2016

The patch is indeed quite short (+61 −17), so maybe this is not a black and white decision, but maybe boils down to this:

The first public release of the new runners (at the time of writing, this would be 7.0.0) still has support for this but it's officially deprecated and to be removed in the next major.... - how's that?

@thekid
Copy link
Contributor Author

thekid commented Jan 5, 2016

how's that?

👍

@thekid thekid closed this as completed Jan 5, 2016
@thekid thekid modified the milestone: 7.0.0 Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant