Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/filter/JitFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1259,9 +1259,9 @@ private static function stringToInt64(Context $context, Value $strPtr): Value
$nullEnd = $context->getTypeFromString('int8*')->constNull();
$context->builder->store($nullEnd, $endPtrSlot);
$i32 = $context->getTypeFromString('int32');
$parsed = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$parsed = $context->builder->call(
$context->lookupFunction('strtol'),
$charPtr,
$endPtrSlot,
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/JitChr.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ private static function stringPtrToLong(Context $context, Value $strPtr): Value
$charPtr = $context->builder->structGep($strPtr, $map['value']);
$endPtrSlot = $context->builder->alloca($context->getTypeFromString('int8*'), 1, 'chr_strtol_end');
$context->builder->store($context->getTypeFromString('int8*')->constNull(), $endPtrSlot);
$raw = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$raw = $context->builder->call(
$context->lookupFunction('strtol'),
$charPtr,
$endPtrSlot,
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/JitImageTypeArg.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ private static function stringPtrToLong(Context $context, Value $strPtr): Value
$charPtr = $context->builder->structGep($strPtr, $map['value']);
$endPtrSlot = $context->builder->alloca($context->getTypeFromString('int8*'), 1, 'imgext_strtol_end');
$context->builder->store($context->getTypeFromString('int8*')->constNull(), $endPtrSlot);
$raw = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$raw = $context->builder->call(
$context->lookupFunction('strtol'),
$charPtr,
$endPtrSlot,
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/JitIntdiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ private static function stringPtrToLong(Context $context, Value $strPtr): Value
$charPtr = $context->builder->structGep($strPtr, $map['value']);
$endPtrSlot = $context->builder->alloca($context->getTypeFromString('int8*'), 1, 'intdiv_strtol_end');
$context->builder->store($context->getTypeFromString('int8*')->constNull(), $endPtrSlot);
$raw = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$raw = $context->builder->call(
$context->lookupFunction('strtol'),
$charPtr,
$endPtrSlot,
Expand Down
8 changes: 4 additions & 4 deletions ext/standard/JitSessionStorageKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ private static function emitSessionWireLoadFromPath(Context $context, Value $pat
$context->builder->positionAtEnd($bbSNum);
$numStart = $context->builder->inBoundsGEP($afterPipe, $i64->constInt(2, false));
$endPtr = $context->builder->alloca($i8p);
$valLen = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$valLen = $context->builder->call(
$context->lookupFunction('strtol'),
$numStart,
$endPtr,
Expand Down Expand Up @@ -431,9 +431,9 @@ private static function emitSessionWireLoadFromPath(Context $context, Value $pat
$context->builder->positionAtEnd($bbINum);
$iStart = $context->builder->inBoundsGEP($afterPipe, $i64->constInt(2, false));
$iEndPtr = $context->builder->alloca($i8p);
$iVal = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$iVal = $context->builder->call(
$context->lookupFunction('strtol'),
$iStart,
$iEndPtr,
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/JitSleep.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ private static function stringPtrToLong(Context $context, Value $strPtr): Value
$charPtr = $context->builder->structGep($strPtr, $map['value']);
$endPtrSlot = $context->builder->alloca($context->getTypeFromString('int8*'), 1, 'sleep_strtol_end');
$context->builder->store($context->getTypeFromString('int8*')->constNull(), $endPtrSlot);
$raw = // strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
// strtol(3) via LibcExtern::ensureStrtolDecl after always-on drop (#31988).
LibcExtern::ensureStrtolDecl($context);
$context->builder->call(
$raw = $context->builder->call(
$context->lookupFunction('strtol'),
$charPtr,
$endPtrSlot,
Expand Down
Loading
Loading