1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions
comment 9y ago · link · parent
[1]: https://github.com/PHPMailer/PHPMailer/blame/4835657cd639fbd...
comment 9y ago · link · parent
1) PHPMailer can be configured to send mail through raw SMTP, by directly invoking sendmail, or by calling PHP's mail() function. The changes in this commit only affect the last mode.
2) The "From" address is typically chosen by the site operator/server administrator, not customizable by a site visitor. I have built sites with "share this page with a friend" functionality that sent email from one given email address to another, but this practice seems to have fallen out of favour when SPF became popular.
comment 9y ago · link · parent
I know InnoDB limits index sizes to 767 bytes, meaning VARCHAR(255) using utf8 can have all 255 characters indexed, but VARCHAR(255) using utf8mb4 can only index 191 characters (floor(767/4) == 191).
After a quick Google search, that seems to be the most common gotcha. What other gotchas did you have in mind?
comment 9y ago · link · parent
PHP has an inactive proposal to implement it as well [2].
comment 9y ago · link · parent
Note that PHP also has a JavaScript-style triple-equals comparison, which does not attempt type conversion and does not exhibit this bizarre behaviour.
comment 9y ago · link · parent
Another scenario I just thought of: your schema is more or less dynamic. For example, Drupal lets developers/site administrators create entities with custom fields, each field gets its own DB table, and to load an entity you need to
SELECT * FROM node
LEFT OUTER JOIN field_data_field_name_1 ON ..
LEFT OUTER JOIN field_data_field_name_2 ON ..
...comment 9y ago · link · parent
Anecdote: I was integrating a paid Magento extension (which charges about $1000 for a license) into an existing shop, and some poor code in their templates made me look deeper into their main code. Six hours later, I had:
* 4 different ways to read any file on the server that PHP can read,
* 5 different ways to upload any file to a certain directory on the server, including one that lets you overwrite the webserver's security configuration for that directory and then execute uploaded PHP code,
* a way to delete certain things the administrator has created in the backend,
* a way to overwrite other customers' uploaded files,
* a way to edit other customers' information, which lets you then XSS/XSRF those customers when they view that information.
I have reviewed other Magento extensions in the past, and I found many poor ones, but nothing as atrocious as this.
comment 9y ago · link · parent
comment 9y ago · link · parent
> V8 version 5.6, which will be in beta until it is released in coordination with Chrome 56 Stable in several weeks...
> Starting with 5.6, V8 can optimize the entirety of the JavaScript language.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent