Skip to content

Commit 5a6cb7a

Browse files
committed
Rebuild all files with trim and fix them all
1 parent 660ff46 commit 5a6cb7a

File tree

13 files changed

+4672
-15862
lines changed

13 files changed

+4672
-15862
lines changed

ext/types/strlen.php

Lines changed: 2 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
# This file is generated, changes you make will be lost.
4-
# Make your changes in /home/driusan/Code/php-compiler/ext/types/strlen.pre instead.
3+
// This file is generated and changes you make will be lost.
4+
// Change /compiler/ext/types/strlen.pre instead.
55

66
/*
77
* This file is part of PHP-Compiler, a PHP CFG Compiler for PHP code
@@ -43,82 +43,10 @@ public function call(Context $context, Variable ... $args): Value {
4343
$argValue = $context->helper->loadValue($args[0]);
4444
switch ($args[0]->type) {
4545
case Variable::TYPE_STRING:
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
58-
59-
60-
6146
$offset = $this->context->structFieldMap[$argValue->typeOf()->getElementType()->getName()]['length'];
6247
$result = $this->context->builder->load(
6348
$this->context->builder->structGep($argValue, $offset)
6449
);
65-
66-
67-
68-
69-
70-
71-
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
82-
83-
84-
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-
95-
96-
97-
98-
99-
100-
101-
102-
103-
104-
105-
106-
107-
108-
109-
110-
111-
112-
113-
114-
115-
116-
117-
118-
119-
120-
121-
12250

12351
return $result;
12452
}

0 commit comments

Comments
 (0)