diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-27 11:23:49 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-27 11:42:01 +0100 |
commit | d776d25a8e6763bfe8cc283a4693d7d417d50ddd (patch) | |
tree | 6b71c980c5c9083cd7648f3495ab014b0edc0091 /ext/xmlreader/php_xmlreader.c | |
parent | 76e4bf3068bc7f92a2ece604344a92fd4d6c683d (diff) | |
download | php-git-d776d25a8e6763bfe8cc283a4693d7d417d50ddd.tar.gz |
Don't throw for out of bounds offsets in strspn()
Make strspn($str1, $str2, $offset, $length) behaviorally
equivalent to strspn(substr($str1, $offset, $length), $str2)
by not throwing for out of bounds offset.
There have been two reports that this change cause issues,
including bug #80285.
Diffstat (limited to 'ext/xmlreader/php_xmlreader.c')
0 files changed, 0 insertions, 0 deletions