Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bug with php7 - mysql7 with email ?


Recommended Posts

Hello,

 

 I don't know if you have this pb but I have a pb with php7 and mysql 7 with email

For example in admin

EMAIL_FROM = test<test@[member=test].com>
var_dump(EMAIL_FROM)  = test

between <> it's removed.

It's not good, because the email does'nt work, newsletter also. It's affect all variable use email like this.

 

Also when you import your sql data this element between <> is removed.

 

Do you identified this problem ?

 

 


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

I haven't tried PHP 7 yet, so I can't tell you for sure, but it sounds like maybe either PHP or MySQL is treating <> as special characters (like the notorious {} pair). Try

EMAIL_FROM = test\<test@[member=test].com\>

(escape the < and >) and see if it works then. If it does, that would be a problem. By the way, is that the actual PHP code, or did you omit $ and ' from your post? If you did not have quotes, perhaps this is being interpreted as a command line, where < and > are redirection operators.

Link to comment
Share on other sites

@@MrPhil

 

Yes I tried this, doesn't work

 

 

The problem is important because you change this element since administration.

mon service \<test@[member=test].fr\>
newsletter.php:36: string(37) "mon service \"
mon service <test@[member=test].fr>
newsletter.php:36: string(35) "mon service "

Ok with that

test@[member=test].fr
newsletter.php:36: string(21) "test@[member=test].fr"


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

It's simple : in newsletter you have this element : EMAIL_FROM come from Db and EMAIL_FROM  has value test<test@@test.com>

if you write this code :

var_dump(EMAIL_FROM)

the result is : test

 

Above I tried different configuration and I write the result.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

If your output is to a browser, might it be eating <text> as an HTML tag, and the tag is invalid and therefore ignored. If you want to print (display) something with <...>, consider using htmlentities() to convert < to < and > to >.

 

This is not a recent change -- it should have behaved this way in earlier PHP versions. I've looked, and I don't see anything restricting the use of <> in PHP.

Link to comment
Share on other sites

before PHP7 /msql7, I haven't been this problem. strict mode could a way.

 

ok, your idea seems to work.

var_dump(htmlentities(EMAIL_FROM)) = mon service <test@[member=test].fr>

Tk.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...