« first day (2591 days earlier)      last day (2343 days later) » 
00:00 - 12:0012:00 - 00:00

12:55 AM
@JoeWatkins Awesome! Where can I see it?
 
mornings o/
 
I took a long nap today so hopefully I can stay up and chat with you more about it, Joe.
I'll try to check back in every hour until I see you.
@Orangepill At the moment this is Traits-only.
This is for a variety of reasons:
1. There are definite declaration and instantiation points (use TraitName).
2. They cannot be type-checked against at runtime, simplifying the required minimum viable product.
3. They are already a compiler assisted form of copy-and-paste; altering it to add type substitution should not be too difficult (and thus far has not been; if I was really familiar with the engine internals it would probably be done already).
4. Unless declared abstract their prototypes can freely be overwritten without violating Liskov-Substitution-Principle.
Overall it's a really fantastic test-bed. If it succeeds traits will also be significantly more useful!
 
2:01 AM
.
 
2:18 AM
mmm, my aiming is getting better ^^
 
 
1 hour later…
3:31 AM
@LeviMorrison ping
 
Up so early Joe
 
yeah
I'm not that happy about it ...
 
go to sleep everybody
 
can't, waiting for levi
 
3:48 AM
@JoeWatkins Hello!
 
yay,so the modifications to the patch are only small, and I've noticed a few problems, I think we should start to write tests ... I heard discussion of syntax change, is that happening ?
 
Not majorly; keeping <> I think.
But need to change where <> are allowed a bit.
 
okay, shall I commit the diff then so you can play with the problems discovered ...
or I could just send you the diff on gist, whatever
zend is not good at having class entries that are not in the table
I'm not sure what we'll do about that ... possibly just insert it with a runtime defined name ?
 
@JoeWatkins Such as?
 
(the whole entry leaks)
 
3:51 AM
Can't we arena allocate it and everything it needs?
 
fine for the entry, can be arena alloc'd, but all of the members, ftable/props/consts ... not so much ...
 
If necessary we can do Trait<T1, T3, int>.
We need some way to cache it anyway.
So just a regular entry with regular caching would be fine.
 
yeah
 
You can send me a patch or diff or whatever.
So what other issues do we have?
 
I'm not exactly sure why yet, haven't debugged it, but when you have
<?php
trait Factory<I> {

        public function create() {
                return new I;
        }
}

class Implementation {}

class ImplementationFactory {
        use Factory<Implementation>;
}

class Other {}

class OtherFactory {
        use Factory<Other>;
}


$factory = new OtherFactory();

var_dump($factory->create());
?>
you get the first factory<implementation>
 
3:54 AM
Maybe we are caching it?
Unintentionally?
 
this was my first thought and removed CACHED_PTR in a couple of places, but that wasn't it ...
 
Then it's probably where the specialization is happening.
Not happening on the newly created and leaking trait?
 
I may have removed it in the wrong place ...
so for all of the members of the class entry, we need to perform some similar operation to the method routine, sometimes just addref will do ... when we do all of that it will leak even more, so I didn't ...
 
Hmm.
As in the opcodes or the signature part or..?
> type = zend_hash_find(specialized_ce->type_parameters, Z_STR(function->op_array.literals[var]));
I'm not familiar with this part; what is the business with these literals?
 
sig and opcodes are part of the same thing ... in that case (methods) we need a deep copy of the function table we can modify without affecting the original entry
 
4:02 AM
Right, was working through that in my #if 0 code.
 
but in other cases, we may get away with just addref ... depending on how that element is destroyed by destroy_zend_class - which will have to be executed to resolve all leaks, and will be when we insert the entry into class table ...
@LeviMorrison one sec
okay this is the very hacky bit, literals and vars store the names of compile time resolved literals and constants, which contain the names of classes
blindly just swapping them out is dumb, but works as a poc ... we need more information from the compiler about what literals or vars should be replaced ...
(try to think about strange stuff that would happen if we don't have that information)
 
Replaced because we are specializing or..?
 
yeah
 
Yeah, I'm not familiar with these parts.
 
you want niki or bob to give us some ideas about where to store information from compiler, I'm not sure what is being used and what isn't ...
 
4:11 AM
I was relying on the ability to pass in ZCE's an ops. I did an analysis and a bunch of existing opcodes will take ZCE or constants of the class names.
That was the goal of ZEND_FETCH_TYPE_PARAMETER; it grabs the concrete type and then passes in the ZCE.
The kink is that not all concrete types will be ZCEs.
 
why won't they ?
 
use Trait1<int>;
 
oh you're counting that as concrete
 
It bothers me we don't use ZCEs for all types, honestly.
It's trivial to check that the pointer is some known location for the primitive types.
Same as a constant, except we can have uniformity for other things.
 
I'm not sure how that would interact with some of the optimizations in ng on zval.u1 etc
 
4:15 AM
Such as?
 
could I start writing tests now if we're not changing syntax, I really dislike working without tests ? and can you hook me up with commit access please ...
 
Oh, definitely.
@JoeWatkins You should already have access to my repo.
 
@LeviMorrison tbh I don't understand exactly how it works, but we've got some strange union/struct hacks going on in zvals now so that we can read the types (and gc info) from the fastest memory, I'm not sure how putting pointers in that space may effect it ...
I mean the instructions would be more complicated for sure ...
 
oh, we don't have to use ZCEs everywhere
 
additional load or add at least
 
4:19 AM
Just that they should exist so we can use those in places it is beneficial.
 
oh I see
strange, I couldn't push that diff ...
said I couldn't use git://, then refused username and password over https
 
@JoeWatkins You've had push access for a long time; probably from return types or one of my other experiments.
 
I thought I did
 
I can remove it and add it back
Did it email you or anything? I just added you back.
 
I'll figure it out and push some tests at least today ... I hope to figure out some of the bigger issues ... whatever happens now we need all of the logic for duplicating the entry, so I can work on that and we can deconstruct it and reconstruct it into whatever we need after compiler changes ...
 
4:22 AM
Yeah that's the part I'd really like help with.
Since I have much less knowledge about it than you.
I can work out issuing opcodes and grammar improvements and such.
Properly copying ZCEs and MEs? Would take me ages and would still make mistakes.
 
okay cool ... parsers give me a headache and cause me to get stuck in a loop ...
 
Can you put these tests in their own folder?
 
I've done very similar things for a few extensions now, I'll probably make mistakes, but we'll get it to work ...
will do
can I call it templates ?
also, can you change the terminology used in the patch to templates, or something other than generics
 
I'm in the process of changing the name to parameterized traits.
 
sufficient ... a mouthful ... but sufficient ...
Zend/tests/traits/parameterized ?
 
4:25 AM
It adequately describes them without committing to generic and template terminology which is important because we don't follow either of those semantics yet.
@JoeWatkins Sounds good.
Oh, and a bit of terminology:
Type parameters are the <> in trait T1<Foo,Bar>.
 
@LeviMorrison true
 
Type arguments are the <> in use T1<int, string>.
 
When a type has such a list it's called parameterized.
 
makes sense
 
4:27 AM
I don't know if terminology is consistent in the repo yet.
I discovered it was important to distinguish them at various parts so thought about names.
 
 ! [remote rejected]       generic_traits -> generic_traits (permission denied)
 
Did you accept the invitation?
 
ah, missed that ... can push now :)
 
You supposedly had the permission before. I dropped it and added it back hoping it would work. Seems it did.
 
I'm unsure what happened there
@Levi master has a bunch of changes, could you pull those in so I can review the patch as a whole a bit easier please ?
I would do it, but I'll probably break everything for everyone ...
my git push has entirely too much influence ...
 
4:46 AM
How about this: I'll pull your changes, rebase on master, and squash our commits into 1 per author. Sound good?
 
yes
and I'll keep commits to a minimum
 
Oh, and push it as parameterized_traits instead of generic_traits.
 
and you can squash them any time going forward
if I do
git branch -m parameterized_traits
what will break ?
 
Not familiar with -m so dunno :D
 
just fyi, it broke
I'm so bad at git
I've got 0 intuition when it comes to what to do, for any task other than simple commit and push ...
Your configuration specifies to merge with the ref 'refs/heads/parameterized_traits'
from the remote, but no such ref was fetched.
(this is after I fixed what I initially broke)
I'm going to wait for you to create the branch and pull it fresh ...
 
4:56 AM
@JoeWatkins Hmm. I'm seemingly getting a conflict with your work and the previous commit?
    /* Build mapping from type parameter to concrete type */
    ZEND_HASH_FOREACH_NUM_KEY_VAL(trait->type_parameters, hash, value) {
      zval * type = zend_hash_index_find(type_parameters, hash);
      zend_hash_update(specialized_ce->type_parameters, Z_STR_P(value), type);
    } ZEND_HASH_FOREACH_END();
Do I need to keep this?
 
  {
    zend_ulong hash;
    zval * key;
    ZEND_HASH_FOREACH_NUM_KEY_VAL(trait->type_parameters, hash, key) {
      zval * value = zend_hash_index_find(type_parameters, hash);

      if (!zend_hash_update(specialized_ce->type_parameters, Z_STR_P(key), value)) {
        continue;
      }

      Z_ADDREF_P(value);

      ZVAL_STR(value, zend_string_tolower(Z_STR_P(value)));

      if (!zend_hash_update(specialized_ce->type_parameters, zend_string_tolower(Z_STR_P(key)), value)) {
        continue;
It looks weird with all that stuff gone; why continue if it's the last part of the loop..?
Just checking that's what you want. Conflicts are rough sometimes >.<
 
I think there should be another addref
but there are so many leaks already ... and the entries aren't being freed, so it's omitted, but there will be another addref if the update didn't fail ...
oh no there won't
 
Okay, I've pushed the new branch
From here on out let's not rebase until we're closer to the end.
 
okay, I'll try to keep commits to a minimum, I tend to be noisy ...
I was thinking maybe we could start compiler improvements by simplifying the way parameters are handled, zvals aren't the best thing to express a type ... we have zend_type now, so how about we make type_parameters a map of type => parameter where parameter is zend_type ?
 
5:05 AM
I need to do that anyway since we can't hand ZCE's everywhere.
Err, that's only related I guess.
 
I dunno if you want to do that bit ? need resolved names and compiled types ideally ..
 
But yeah, we can do a map from a zend_string representing the type parameter to a zend_type representing the type argument.
@JoeWatkins How do I compile an int?
I talked to Nikita a bit; preferably once we have generated opcodes they are not copied or altered.
 
ZEND_TYPE_ENCODE for simple types, ZEND_TYPE_ENCODE_CLASS for complex ...
 
mornings v2 o/
 
oh also, you have to think about how nullable will be handled
\o
 
5:09 AM
Yeah, at some point.
 
yeah not super important ... at the moment it's the template that determines nullability ...
maybe desirable, haven't thought about it that much ...
 
FETCH_TYPE_PARAMETER
NEW "T"
The idea is that instead of generating code with the constant we instead pass the result of FETCH_TYPE_PARAMETER into it.
We don't want to replace literals in the opcodes or anything like that.
 
yeah that would be nice ...
 
It should be doable.
I already checked a lot of the opcodes; I'll find the list eventually but nearly all the opcodes of interest will accept a ZCE instead of a constant.
However, how will that interact when we pass in a zend_type of int? I'm not sure how to handle that in the ZEND_NEW handler.
 
well even those that want to accept a constant will check a cache slot before doing the lookup, so you wouldn't need to change them, just put the zce in the right slot ...
 
5:13 AM
No, not cached.
Every time the code runs we need to look up the parameter from the concrete mapping.
 
wait, isn't that a compile time error ?
 
If we were copying the opcodes and altering the copy then caching would be fine.
@JoeWatkins Maybe, but not in the traditional sense.
 
if you have enough compile time information to know when to output a FETCH_TYPE_PARAMETER, you have enough information to know when ZEND_NEW is being called incorrectly, don't you ?
 
No.
FETCH_TYPE_PARAMETER knows it is a type parameter, but it doesn't know the eventual argument.
 
oh yeah
 
5:16 AM
And this is why it should not be cached.
 
I don't have a good model of how any of this will actually work ...
 
lol
We have one version of the opcodes which is generated at the trait definition time.
We need to instrument it with FETCH_TYPE_PARMETERs so that at runtime we grab the type arguments.
 
not sure why I didn't get that ... that's simple, I like ...
 
However, the zend_function's need to be different so we can replace the arg_infos with different things when we use Trait1<int>;
 
yeah
 
5:20 AM
If you look at my handler for FETCH_TYPE_PARMETER you can see I was having issue with the op2
 
okay, so to expand on that ... you could have ZEND_FETCH_TYPE_PARAMETER_FOR_* set of opcodes, they can determine if the resolved type is suitable for the target opcode (ZEND_FETCH_TYPE_PARAMETER_FOR_NEW)
 
At the moment I hope it is exactly one opcode.
 
okay, is there anywhere on the opline you can set the target ?
 
Not sure what you mean.
 
if you can set the target (the opcode you are fetching for) as extended_value or something, you can look forward and see you are fetching an int zend_type for ZEND_NEW target and raise an exception
 
5:22 AM
Ah, that would be nice; the work being done in ZEND_FETCH_TYPE_PARAMETER means existing code that doesn't use the feature won't be penalized.
Yes, I believe that should be doable.
At the point you emit ZEND_FETCH_TYPE_PARAMETER you know what you are emitting it for.
 
yeah, that must always be true ...
 
So this literals stuff; were you copying the opline?
 
Then I still don't get what that is about then :D
 
not modifying, or deep copying, it's set by memcpy
the oplines reference literals and vars by their index in those arrays (or pointers to the element directly later in execution) ...
 
5:26 AM
I think ZEND_FETCH_TYPE_PARAMETER should take only 1 arg; instead of setting extended_value should we pass that as op2?
 
so when you modify those, you are modifying the oplines where they use literals or constants, but without modifying the opline, you are modifying the stuff the oplines are pointing too ...
@LeviMorrison yeah can do
 
And then its return value is the zend_type of the concrete type, which we feed to the next opcode.
@JoeWatkins When do we modify these?
Since I don't know what they are used for exactly it's hard to know if we would modify them, you know?
 
public function add(K $k, V $v) {
		$this->collection[$k] = $v;
	}
K and V are vars, literal constant strings, their value is stored on the op array, the oplines that reference them have a pointer to the element in the vars array ...
new K <- literal
 
We have to teach whatever uses those literals that those types are not defined until runtime.
That is if we can't get rid of them to begin with.
We wouldn't emit a literal for the ZEND_NEW opcode; the literal would be in the FETCH_TYPE_PARAMETER so that shouldn't (?) break anything.
But what might break is if anything that analyzes $k or $v: it doesn't know that K or V are dependent on the concrete types.
Nothing stops you from doing this: trait Trait1<Iterator> . In this case Iterator has nothing to do with \Iterator.
 
I just made a little push, for some reason there was code missing ...
<?php
trait Factory<I> {
	public function create() : I {
		return new I;
	}
}

class Implementation {
	use Factory<stdClass>;
}

$i = new Implementation();

$i->create();
run that before and after you build with that change ...
 
5:40 AM
I did have to fix a conflict but it was the code I asked you about.
 
I realize it's not going to be necessary, but want to start writing tests ... and it gives your implementation of vm stuff something to aim for ...
 
But this is why I left the original generic_traits branch.
@JoeWatkins Oh, definitely. I was just going through the internals to work out the technical concepts.
 
oh I didn't mess it up did I ?
 
@JoeWatkins Dunno. Do you still have your local generic traits branch?
 
I'm not on it
 
5:41 AM
But do you still have it?
 
ffs, I didn't push
I just pushed ...
I do, shall I delete it ?
 
No, keep it.
 
   ffdc111f82..a426df2d41  parameterized_traits -> parameterized_traits
it looks okay, but it always looks okay to me ...
 
Looks fine, other than I still don't get the literals part. Are you basically fixing pointers..? Why do you need to do that? If we aren't modifying them they should still be valid..?
 
if we don't modify them, new I would result in new I :)
but your vm thing is going to fix the need to modify them whatever ...
it just makes it work for now ... it has obvious flaws as mentioned ...
<?php
trait Factory<I> {
	public function create() : I {
		echo "I";
		return new I;
	}
}

class Implementation {
	use Factory<stdClass>;
}

$i = new Implementation();

$i->create();
the unexpected is expected ...
 
5:47 AM
@JoeWatkins What do you mean? We never emit new I.
 
we could either solve that at compile time, by creating/marking the correct vars, or at runtime with fancy vm stuff ...
 
Well, we probably do now but we won't.
 
@LeviMorrison now is the problem, for writing tests and poc :)
 
The opcode with the literal I will be FETCH_TYPE_PARAMETER.
And that one we can fix like right now!
It's the one I was working on :D
 
yep, I got it ... it was hacky to make it work, never the final solution ... the vm stuff sounds nicest ..
 
5:48 AM
Anyway, so you shouldn't have to modify the literals, right?
And that modification is probably why you got the first trait specialization in your earlier example?
Or maybe a part of the puzzle?
 
the vm stuff will usurp that part ...
@LeviMorrison no, didn't modify the literals of the op array calling new ...
 
Alright; how good is your internet? you want to do some pair programming?
Or just work independently for a while?
 
well what are you intending to work on ?
or what do you want me to work on, if that's simpler to answer ?
 
We can write tests, fix up the FETCH_TYPE_PARAMETER opcode
 
you carry on with the opcode stuff, I'll do tests ...
 
5:52 AM
K
 
Wes
6:03 AM
morning
 
Uh, somethings not right :D
  type_parameter = RT_CONSTANT(opline, opline->op1);

  type_arg = zend_fetch_type_parameter(EX(func), type_parameter);
@JoeWatkins My op1 is supposed to have a string constant in it, but when I dump it I got "H\213"
I'm very sure I put the constant in there correctly; it's copied verbatim how ZEND_NEW does it.
Oh, doh, silly me. I put it in op2 >.<
 
Okay, so putting the target into the extended value: you know of an opcode that does that already?
 
6:23 AM
@JoeWatkins So I need to tie the method to the trait that provides it.
My thought was to use the prototype; however I realized that will not work in some cases.
 
one sec
 
If the trait is providing a method that will check against an interface then prototype will be set to the interface declaration.
@JoeWatkins How often do you think prototype is used at runtime?
I'm wondering if we can split some of these properties into a "cold" struct and then add a pointer to the trait that the method came from.
scope -> the class being executed
prototype -> the parent's method
trait -> the trait this method came
Altering the structure of this thing would be a huge pain, I know.
One alternative would be to add it to a ZCE somehow.
A hashtable of method names to traits that provide it.
It's not as simple as iterating over the traits because of adaptions.
I think making a ZCE bigger is probably better than altering the zend_function.
As far as I know we don't union the ZCE with any other type, right?
 
6:46 AM
@JoeWatkins hey, traits don't use constants, right?
> Traits cannot have constants
Perfect. I can repurpose that hashtable on traits to store method name -> type arguments.
 
sounds good
sorry, deep in thought
can't pass any tests till I solve leaks
first attempt is not working as expected, current status: frowning at screen
 
lol
That's definitely the kidn of thing yo should be working on instead of me though
Bleh, I can't do that.
It's the class using the trait that needs the lookup, and it definitely can have constants.
So I think I'm adding another entry into ZCE; hopefully doesn't break something...
 
7:15 AM
I pushed some changes to insert entry into table and not do a blind memcpy, because it made strange things happen ... and name the class (should be generated compile time, needs unique name by runtime)
still not all leaks are gone, I get strangeness when I try to dtor the type parameters table
the house is waking up, so I'm running out of time, I hope I can find some more time later on today ... I have started writing tests but they all fail right now with memleaks ...
could generate name compile time and set as op2 for ZEND_SPECIALIZE_TRAIT and use op data to pass type_parameters table ...
 
@JoeWatkins You mean a name like TraitName<int>?
 
yes
zend_specialize_trait_name
 
And use the extended_value for a constant literal offset or something?
 
you mean for short name ?
could insert null, keys are binary safe
 
I meant it already takes 2 parameters; how do you get the array of type parameters if using both ops for the names?
 
7:20 AM
op data
 
Didn't quite understand what you meant by using op data.
 
ZEND_ASSIGN_OBJ op1 = $object, op2 = $property, op data = $value
look at vm handler and the compiler for that opcode
opdata is how we have 3 operands, in effect ...
 
7:47 AM
@JoeWatkins So I changed type_parameters from a HashTable * to a HashTable. Then the class that uses the trait I need to add that type_parameters as the value in a different hashtable; I should go back to heap allocation, shouldn't I?
 
@LeviMorrison not necessary I don't think ...
(not exactly sure what your reasoning is ... all refcounted things are on the heap anyway)
 
8:22 AM
@JoeWatkins This assigns a zend_bool to the specialized_ce, which is a zce:
  if ((specialized_ce = zend_hash_exists(CG(class_table), specialized_name_lc))) {
    zend_string_release(specialized_name);
    zend_string_release(specialized_name_lc);
    return specialized_ce;
  }
We don't need to save the return value of zend_hash_exists there, do we ?
 
woops, meant to be zend_hash_find :)
 
Fixed. Compilers are great.
 
woah, you guys have been talking for almost 5 hours :P
 
That's 5 hours of Arabic to me.
 
8:32 AM
@JoeWatkins Do we have a destructor function for a hashtables of hashtables?
 
Hi Guys, is there any proper step by step guide that actually works to upload my laravel project to my server?
 
tried deploying anything before, that wasnt laravel?
 
yes, but this time laravel is my first time
 
Laravel is no different than deploying anything else
 
i basically created a new folder in root, and uploaded my project except the public folder
and inside public_html, i uploaded the contents from the public folder only
 
8:41 AM
sounds good
 
and edited the index.php file that points to the root/Myproject folder
is that all? or am i missing something?
 
@JoeWatkins To store a zend_type in a zval I imagine I have to detect int, array, etc, and then set infos accordingly..?
 
set Z_PTR
zend_hash_update_ptr and so on may also be useful ...
 
@JoeWatkins Oh, I guess they are the same size.
:D
 
9:03 AM
@JoeWatkins Ugh... permit static as a type argument?
 
posted on November 19, 2017

New Cyanide and Happiness Comic

 
@LeviMorrison /me runs away from the can of worms that @LeviMorrison just opened
 
close it ... CLOSE IT ...
 
/home/levijm/Projects/php-src/Zend/zend_types.h:834:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   Z_PTR_P(z) = (p);          \
              ^
/home/levijm/Projects/php-src/Zend/zend_compile.c:6376:4: note: in expansion of macro ‘ZVAL_PTR’
    ZVAL_PTR(&tmp, ZEND_TYPE_ENCODE_CLASS(class_name, 0));
@JoeWatkins Do we commonly cast these or just live with the warning?
 
9:17 AM
@LeviMorrison just cast to void*
 
K.
@JoeWatkins I'm propagating the ZEND_TYPE_ENCODE_CLASS stuff up to when the type arguments are first compiled; since it gets used in both the arginfo substitution and for other stuff may as well do it as early as possible.
 
9:40 AM
so, there is an end of world scheduled for tomorrow
 
Wes
why is everybody talking to be about the end of the world today
cc @crypticツ
 
Because the end is near... *dramatic music*
 
Wes
user image
3
 
@JoeWatkins My brain isn't working properly anymore.
I've got the hashtables goofed up; can't keep what's in it at any given point straight in my head.
 
@LeviMorrison then I propose you find a bed :-)
 
9:53 AM
Been like that for an hour so I need to go to bed, yeah.
 
Thanks for the RT's you guys <3
 
Unfortunately it's not in a good state for collaborators to pick up >.<
 
10:17 AM
@JoeWatkins Pushed! I left it in a bad state but it will at least give you an error you can work backwards from!
And I definitely made progress.
 
10:30 AM
Hello
can you explain me why going to timetracker shows me PRTG Network Monitor page?
I am using xampp
I have configured virtual host
<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:/other/xampp/htdocs/realus/timetracker_quick_admin_panel"
ServerName timetracker
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
and in hosts file there
is
127.0.0.1 timetracker
it does not make any sense why it should show wrong page
ok, now I have uninstalled prtg network monitor
and then it shows xampp page
XAMPP Apache + MariaDB + PHP + Perl
redirects to url: timetracker/dashboard
this is killing my productivity
oh, ok found one thing :(
after I installed new version of xampp, I it might be that there is again wrong path to htdocs
and it loads that wrong path
why they do not make it upgradable so that all configurations remain the same :(
but I checked httpd.conf
and I see settings are correct
DocumentRoot "E:/projektai/php projektai/htdocs"
<Directory "E:/projektai/php projektai/htdocs">
and I have restarted apache multiple times
this does not make any sense. Its like does not care about settings
 
Wes
10:45 AM
@PeeHaa update on the testing thing after i've used it for a while: it is really nice for testing logic that you are certain it makes sense. it is good for spotting programming mistakes. if you want to test code whose specs are not really known, then it's really bad, because you pretty much write tests that "validate wrong logic"... and that's not useful :B
 
checkng phpinfo() output and it clearly shows wrong document root :(
 
Wes
11:09 AM
 
Found that httpd-vhosts.conf was configured badly. But now getting

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.
Now there such code in httpd-vhosts.conf

<Directory "E:/projektai/php projektai/htdocs">
Require all granted
</Directory>
so there should not be such error.
 
11:47 AM
found what worked: in http.conf there was stupid Require all denied line
by default - I had not added it
changed to Require all granted
and it works. I hate apache!!!! I should not be made to spend few hours to run a page. Of course security matters but if I cannot run my own page for few hours, that is not they way to make software.
 
00:00 - 12:0012:00 - 00:00

« first day (2591 days earlier)      last day (2343 days later) »