|
DangerMouse
|
 |
« on: February 27, 2008, 04:39:09 AM » |
|
Hey all, Following on from the brief comments on PHP6 and UTF-8 support, I was wondering what the general consensus on the PHP6 proposed feature set was? Will you be making the switch? http://houstonphp.org/presentations/bryan/php6_features.pdf - a fairly decent summary. From my point of view as I don't really have any complex applications and I'm still learning its probably worth my while to jump on board straightaway. Although the one major feature (as far as I can tell) namespaces will apparently be appearing in PHP 5.3. I don't really have any applications large enough to reap the benefits of namespaces but I guess its kind of a best practice issue and will help my understanding of OO design. DM
|
|
|
|
|
Logged
|
|
|
|
|
perkiset
|
 |
« Reply #1 on: February 27, 2008, 07:43:41 AM » |
|
That presentation makes PHP6 look like an incremental update (like 5.3) rather than a full version increase. NBs will be happy with the dropping of magicquotes LOL.
I dunno yet.. gonna have to see how stable it is. Couple nice feature make things a little easier (APC in core, for example) but nothing jumps out as a Gotta Have just yet.
|
|
|
|
|
Logged
|
It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
|
|
|
|
jammaster82
|
 |
« Reply #2 on: February 27, 2008, 08:36:25 AM » |
|
NBs will be happy with the dropping of magicquotes LOL.
Whats the deal with magic quotes?
|
|
|
|
|
Logged
|
The watched pot, never boils... But if you walk away from it , the soup burns. What gives?
|
|
|
|
vsloathe
|
 |
« Reply #3 on: February 27, 2008, 08:46:39 AM » |
|
What *isn't* the deal with magic quotes?
|
|
|
|
|
Logged
|
hai
|
|
|
|
nutballs
|
 |
« Reply #4 on: February 27, 2008, 12:26:20 PM » |
|
fuck magic quotes.
I now just run a magic-quotes un-magicifier. the world is good now...
|
|
|
|
|
Logged
|
I could eat a bowl of Alphabet Soup and shit a better argument than that.
|
|
|
|
Phaëton
|
 |
« Reply #5 on: September 04, 2010, 02:45:35 AM » |
|
php6?!?!?!?!?! How come i cant find anything substantial on this?
and yea i feel the magic quotes and goofy character pain... just migrated some swedish phpbb board data to my machine... to the tune of 8 hours..... should have taken 30 minutes but I had to figure out which versions of php/blah blah were all playing a part in showing me something like :
----------------->  <------------------------------
in a line like:
INSERT INTO MYTABLE VALUES("
As opposed to VALUES(" with just a open paren and a double quote...
It was php doing it to the data somehow...
Supposedly php 6 was gonna fix this issue? Im kinda confused..( not that this isnt now public record lol) But im confused I used utf-8, which I *thought* would handle all ickies the right way but apparently not.
Magic quotes, mysql escape string... all these weird rules and tecnicals have wasted more of my time.. . shouldnt utf-8 or some other 'catch all' be the standard?
|
|
|
|
|
Logged
|
When I was your age we used to walk to the TV to change the channel.... _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
|
|
|
|
perkiset
|
 |
« Reply #6 on: September 04, 2010, 12:59:22 PM » |
|
UTF8 will help in a big way when you are sending/receiving data from a client. But in this case, your talking about the EDITOR having the problem I think.
Don't think php 6 or 6000 would help you with that, neither would you find much IMO because that would not be a php problem.
UNLESS what you just posted is debug line from someone hitting your BBS - in which case, it's more likely malicious post, trying to break. Your system or DB.
|
|
|
|
|
Logged
|
It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
|
|
|
|
nutballs
|
 |
« Reply #7 on: September 04, 2010, 02:36:09 PM » |
|
also. everything needs to be talking UTF8. I have had similar problems that I was never able to resolve because something along the way, either php, linux, or mysql (and inside mysql there are things to set like column, table and database collation) that seem to affect success.
then of course spitting out to the web, you have the browser, php, contenttype (both header and html declaration), etc etc. it sucks.
|
|
|
|
|
Logged
|
I could eat a bowl of Alphabet Soup and shit a better argument than that.
|
|
|
|
nop_90
|
 |
« Reply #8 on: September 04, 2010, 03:37:57 PM » |
|
There is no PHP 6 The versioning process of PHP has been exceptionally modified to clear the situation about the long-expected PHP 6. The last stable release, PHP 5.3.2, has been transformed in PHP 6 using the powerful Unix-based tool sed and finally released as PHP 6.0.I am not 100% sure what the reason is. Maybe for the same reason python 1.6 changed into python 2.0
|
|
|
|
|
Logged
|
|
|
|
|
Phaëton
|
 |
« Reply #9 on: September 05, 2010, 10:08:18 AM » |
|
Okay well i want to write some functions i can put in my toolbox to deal with this.
im going to write a process that :
extracts all data from a table and converts the data to hex.
then put the hex data in an xml record.
then, hopefully i will have a charset agnostic view of the data?
i guess my question is if i create a table with one row of data and store ascii 0-255 in it will that be an example of all the data that could possibly be stored in a field or is there something else i should consider.. the target being to create a sample table with all possible characters in it... will ascii 0-255 utf-8 table cover it or is there something else i should consider.
I want to store all characters and put some tests at each phase of my functions to check to see at each point that the data is true... what type of record would be all possible characters, i guess is my question... so i can work from there, prove my process works with a record containing all possible characters?
|
|
|
|
|
Logged
|
When I was your age we used to walk to the TV to change the channel.... _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
|
|
|
|
perkiset
|
 |
« Reply #10 on: September 05, 2010, 12:07:09 PM » |
|
hmm... "all possible" would have to include 0x00 which is a bitch to store in anything other than a BLOB (if it's in the middle of an array of characters)
|
|
|
|
|
Logged
|
It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
|
|
|
|
kurdt
|
 |
« Reply #11 on: September 06, 2010, 12:17:41 AM » |
|
Naah.. after coding with Ruby there's nothing in PHP6 that was able raise even slightest of interest. Like perk said, looks like PHP 5.3 instead of a whole new version. One thing that would impress would be if they could get rid of ; endings and {} block markers. After coding with javascript and Ruby, remembering to write ; is really annoying. {} isn't that big deal but it just makes code more readable when you do and end. Of course those are only two things compared to Ruby that I could see PHP team implementing.. the rest would require to modify PHP to a whole new language 
|
|
|
|
|
Logged
|
I met god and he had nothing to say to me.
|
|
|
|
vsloathe
|
 |
« Reply #12 on: September 08, 2010, 11:27:36 AM » |
|
Naah.. after coding with Ruby there's nothing in PHP6 that was able raise even slightest of interest. Like perk said, looks like PHP 5.3 instead of a whole new version. One thing that would impress would be if they could get rid of ; endings and {} block markers. After coding with javascript and Ruby, remembering to write ; is really annoying. {} isn't that big deal but it just makes code more readable when you do and end. Of course those are only two things compared to Ruby that I could see PHP team implementing.. the rest would require to modify PHP to a whole new language  Code blocks and reverse conditionals, PLS PHP DEVS! e.g.: Math.rand() if myVar == 1
Also, give us nil!
|
|
|
|
|
Logged
|
hai
|
|
|
|
vsloathe
|
 |
« Reply #13 on: September 08, 2010, 11:29:35 AM » |
|
In PHP I am stuck going: <?php ( $myVar == 1 ? rand() : 0 )
stupid backwards notation
|
|
|
|
|
Logged
|
hai
|
|
|
|