php-general Digest 21 Oct 2011 09:17:37 -0000 Issue 7530
Topics (messages 315376 through 315377):
String is not zero-terminated in zend_execute_API.c
315376 by: Daniel Betz
315377 by: Carlos Medina
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hello List,
i am running PHP 5.3.8-FPM (with ondemand patch) in debug mode and got this
error every time I post an reply in vBulletin Board:
Warnung: String is not zero-terminated
(ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.ý4 ý4 ú}µóU) (source:
/usr/src/php-5.3.8/Zend/zend_execute_API.c:447) in
[path]/includes/functions_newpost.php(668) : eval()'d code (Zeile 34)
functions_newpost.php:
29 if (!$allowicons)
30 {
31 return false;
32 }
33
34 $membergroups = fetch_membergroupids_array($vbulletin->userinfo);
35 $infractiongroups = explode(',', str_replace(' ', '',
$vbulletin->userinfo['infractiongroupids']));
36
37 ($hook = vBulletinHook::fetch_hook('posticons_start')) ?
eval($hook) : false;
38
function fetch_membergroupids_array($user, $getprimary = true)
{
if (!empty($user['membergroupids']))
{
$membergroups = explode(',', str_replace(' ', '',
$user['membergroupids']));
}
else
{
$membergroups = array();
}
if ($getprimary)
{
$membergroups[] = $user['usergroupid'];
}
return array_unique($membergroups);
}
I hope you can help, or may i open an bugreport to bugs.php.net ?
Greetings,
Daniel
--- End Message ---
--- Begin Message ---
Am 21.10.2011 08:49, schrieb Daniel Betz:
> Hello List,
>
> i am running PHP 5.3.8-FPM (with ondemand patch) in debug mode and got this
> error every time I post an reply in vBulletin Board:
>
> Warnung: String is not zero-terminated
> (ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.ý4 ý4 ú}µóU) (source:
> /usr/src/php-5.3.8/Zend/zend_execute_API.c:447) in
> [path]/includes/functions_newpost.php(668) : eval()'d code (Zeile 34)
>
> functions_newpost.php:
> 29 if (!$allowicons)
> 30 {
> 31 return false;
> 32 }
> 33
> 34 $membergroups = fetch_membergroupids_array($vbulletin->userinfo);
> 35 $infractiongroups = explode(',', str_replace(' ', '',
> $vbulletin->userinfo['infractiongroupids']));
> 36
> 37 ($hook = vBulletinHook::fetch_hook('posticons_start')) ?
> eval($hook) : false;
> 38
>
>
> function fetch_membergroupids_array($user, $getprimary = true)
> {
> if (!empty($user['membergroupids']))
> {
> $membergroups = explode(',', str_replace(' ', '',
> $user['membergroupids']));
> }
> else
> {
> $membergroups = array();
> }
>
> if ($getprimary)
> {
> $membergroups[] = $user['usergroupid'];
> }
>
> return array_unique($membergroups);
> }
>
> I hope you can help, or may i open an bugreport to bugs.php.net ?
>
> Greetings,
> Daniel
>
Hi Daniel,
do you work with a self compiled or width a distributions one?. The
failure is in the function
zend_str_tolower(function_name_copy.value.str.val,
function_name_copy.value.str.len);
I think, if you have a self compiled or experimental version and you are
sure, that this is a bug, please place it into PHP Bugtracker. If you
are not sure, if this is a bug, becouse you change the source code or
use experimental code, use a distribution.
Greets
Carlos
--- End Message ---