# Standards for developers

- Thread: https://externals.io/message/44237
- Original archive: https://news-web.php.net/php.internals/44237
- Started by Lester Caine on 2009-06-11T08:23:31+00:00
- Messages: 11
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #44237 — Lester Caine — 2009-06-11T08:23:31+00:00

URL: https://externals.io/message/44237#44237

<rantish mode>
One of the problems with playing with a new platform is getting things 
they way you are used to them. Linux is somewhat easier than Windows in 
that respect, but using Eclipse has at least provided a level playing 
field and now that I've got it tidied up and working on the Vista64 box 
( has to use w32 jave to run ;) ) I can now get around some of the 
little niggles.

Files that are common to windows and linux will naturally follow linux 
rules on new line, so can't be displayed in 'notepad', and I've had to 
switch some of the windows defaults to get 'wordpad' used instead. I had 
forgotten to switch the wrap to ruler off which was causing a little 
confusion with white space, but once I get Eclipse configured to the 
windows php framework the problem will go away. Being used to 'notepad' 
I kept opening files the wrong way at first, although some files do 
actually display correctly in notepad.
</rantish mode>

Bottom line - rather than reinventing the wheel - is anybody else 
actually using Eclipse and has a simple set-up guide for how they have 
configured things? Ideally for windows, but I'd like to pull this up on 
the Linux boxes as well. If I'm going to have to start working on 
extension code it's easier on the linux box anyway and then I can cross 
test on windows.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #44238 — Nuno Lopes — 2009-06-11T08:27:37+00:00

URL: https://externals.io/message/44237#44238 · In reply to: #44237

> Bottom line - rather than reinventing the wheel - is anybody else actually 
> using Eclipse and has a simple set-up guide for how they have configured 
> things? Ideally for windows, but I'd like to pull this up on the Linux 
> boxes as well. If I'm going to have to start working on extension code 
> it's easier on the linux box anyway and then I can cross test on windows.

I guess I have another option for you: use cygwin's cvs client. When you 
checkout, it translates the EOLs to windows style, and when you commit it 
translates the EOLs back to unix. This way you can code in any editor you 
want, but without surprises when doing diffs and when commiting.

Nuno

---

## #44240 — Lester Caine — 2009-06-11T08:41:30+00:00

URL: https://externals.io/message/44237#44240 · In reply to: #44238

Nuno Lopes wrote:
> > […]
> 
> I guess I have another option for you: use cygwin's cvs client. When you 
> checkout, it translates the EOLs to windows style, and when you commit 
> it translates the EOLs back to unix. This way you can code in any editor 
> you want, but without surprises when doing diffs and when commiting.

But that defeats the whole point ...
Eclipse handles the CVS along with everything else so why would I want 
to add cygwin? Actually I don't want the files converted - that is just 
another possible area of confusion if both formats are being used in the 
php code I'd rather know that anyway.
I'm just looking for some help to get a cross platform solution based on 
Eclipse working.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #44243 — Pierre Joye — 2009-06-11T11:44:18+00:00

URL: https://externals.io/message/44237#44243 · In reply to: #44238

> > […]
>
> I guess I have another option for you: use cygwin's cvs client. When you
> checkout, it translates the EOLs to windows style, and when you commit it
> translates the EOLs back to unix. This way you can code in any editor you
> want, but without surprises when doing diffs and when commiting.

Every CVS does that, not only cygwin. That's the case for all text
files. However, some files have to be in one mode (can't find an
example right now). Other should not be in a given mode, usually mac
EOL are not supported on windows (compiler or makefiles).

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #44245 — Niel Archer — 2009-06-11T17:04:59+00:00

URL: https://externals.io/message/44237#44245 · In reply to: #44237

> <rantish mode>
> One of the problems with playing with a new platform is getting things 
> they way you are used to them. Linux is somewhat easier than Windows in 
> that respect, but using Eclipse has at least provided a level playing 
> field and now that I've got it tidied up and working on the Vista64 box 
> ( has to use w32 jave to run ;) ) I can now get around some of the 
> little niggles.

I do not understand why you have to run with win32 Java.  There is a 64
bit version of Java from Sun which runs on Windows.  Like most 64 bit
support on Windows, it takes some work to locate, the Java site mentions
it, but despite referring to a download I can't find it there.  Instead,
I use this link:

http://java.sun.com/javase/downloads/index.jsp

Also, there is a 64 bit version of Eclipse, although you have to do some
digging to find it exists.  Go to the mirror of your choice and look for
the 'eclipse-platform-SDK-3.4-win32-x86_64.zip' file.  This requires
that you add any dependencies for PDT etc yourself, but as each project
lists its dependencies this is not a real problem. However, it's the
only 64 bit version of Eclipse I have been able to find, PDT does not do
a bundle for x64 yet :-(

> Files that are common to windows and linux will naturally follow linux 
> rules on new line, so can't be displayed in 'notepad', and I've had to 
> switch some of the windows defaults to get 'wordpad' used instead. I had 
> forgotten to switch the wrap to ruler off which was causing a little 
> confusion with white space, but once I get Eclipse configured to the 
> windows php framework the problem will go away. Being used to 'notepad' 
> I kept opening files the wrong way at first, although some files do 
> actually display correctly in notepad.
> </rantish mode>
> 
> Bottom line - rather than reinventing the wheel - is anybody else 
> actually using Eclipse and has a simple set-up guide for how they have 
> configured things? Ideally for windows, but I'd like to pull this up on 
> the Linux boxes as well. If I'm going to have to start working on 
> extension code it's easier on the linux box anyway and then I can cross 
> test on windows.
> 
> -- 
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/index.php
> 
> -- 
> 
> 
> 
--
Niel Archer
niel.archer (at) blueyonder.co.uk

---

## #44248 — Lester Caine — 2009-06-11T18:25:27+00:00

URL: https://externals.io/message/44237#44248 · In reply to: #44245

Niel Archer wrote:
> > […]
> 
> I do not understand why you have to run with win32 Java.  There is a 64
> bit version of Java from Sun which runs on Windows.  Like most 64 bit
> support on Windows, it takes some work to locate, the Java site mentions
> it, but despite referring to a download I can't find it there.  Instead,
> I use this link:
> 
> http://java.sun.com/javase/downloads/index.jsp
> 
> Also, there is a 64 bit version of Eclipse, although you have to do some
> digging to find it exists.  Go to the mirror of your choice and look for
> the 'eclipse-platform-SDK-3.4-win32-x86_64.zip' file.  This requires
> that you add any dependencies for PDT etc yourself, but as each project
> lists its dependencies this is not a real problem. However, it's the
> only 64 bit version of Eclipse I have been able to find, PDT does not do
> a bundle for x64 yet :-(

PHPEclipse is still x86 as well ... I have no plans to move to PDT any 
time soon as I know most of the PHPEclipse code quite well now!
Along with a couple of other SQL packages. I tried the x86_64 build but 
could not install the other bits that I use successfully on the 64 bit 
version on Linux ... not enough hours to waste even more time fixing 
side issues, so I switched to what I was told DID work, and it's doing 
what I need.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #44249 — Pierre Joye — 2009-06-11T18:28:41+00:00

URL: https://externals.io/message/44237#44249 · In reply to: #44248

> PHPEclipse is still x86 as well ... I have no plans to move to PDT any time
> soon as I know most of the PHPEclipse code quite well now!
> Along with a couple of other SQL packages. I tried the x86_64 build but
> could not install the other bits that I use successfully on the 64 bit
> version on Linux ... not enough hours to waste even more time fixing side
> issues, so I switched to what I was told DID work, and it's doing what I
> need.

please move this discussion elsewhere, it has nothing to do with php internals.

-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #44250 — Stanislav Malyshev — 2009-06-11T18:33:07+00:00

URL: https://externals.io/message/44237#44250 · In reply to: #44237

Hi!

> Files that are common to windows and linux will naturally follow linux 
> rules on new line, so can't be displayed in 'notepad', and I've had to 

Drop notepad, it wasn't a good tool even in Windows 3.1, much less now. 
Use something like Notepad++. :)
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #44251 — Lester Caine — 2009-06-11T18:43:28+00:00

URL: https://externals.io/message/44237#44251 · In reply to: #44250

Stanislav Malyshev wrote:
> Hi!
> 
> > […]
> 
> Drop notepad, it wasn't a good tool even in Windows 3.1, much less now. 
> Use something like Notepad++. :)

Wordpad works OK - the problem on Vista is that 'Open With' does not 
appear so you have to manually reset the .bat entries to open it.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #44252 — Lester Caine — 2009-06-11T19:04:27+00:00

URL: https://externals.io/message/44237#44252 · In reply to: #44249

Pierre Joye wrote:
> 
> 
> > […]
> 
> please move this discussion elsewhere, it has nothing to do with php internals.

The only reason I'm trying to sort this out is because of your request 
to actually work on our own extensions. If questions and help on setting 
up PHP development platforms is nothing to do with php internals where 
should that discussion take place?

Niel - your suggested search string took me to a different download 
area, and the package there was a later version to the one I had 
downloaded. Eclipse and PHPEclipse now running x64 on Vista64. I think 
there is still a problem with the Xdebug plugin, but I can live without 
that for the time being. Thanks for the push in the right direction ...

Next step is to get build a project that accesses the PHP build process 
via cvs - if no one has already done that?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #44253 — Pierre Joye — 2009-06-11T19:50:13+00:00

URL: https://externals.io/message/44237#44253 · In reply to: #44252

> Pierre Joye wrote:
> > […]
>
> The only reason I'm trying to sort this out is because of your request to
> actually work on our own extensions. If questions and help on setting up PHP
> development platforms is nothing to do with php internals where should that
> discussion take place?

Discussions about IDEs, editors, etc. have nothing to do here, period.


-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
